I called the Api in component Home
const apiKey = 'i can't show it to you';const apiPath = `https://api.themoviedb.org/3/movie/popular?api_key=${apiKey}`;export default function Home() {const [movies,setMovies]=useState<any[]>([]);useEffect(()=>{fetch(apiPath).then(response=>response.json()).then(res=> setMovies(res.results)).catch(err=> console.log(err));},[]);return (<View >{movies.map((movie,index)=>(<MovieBoxkey={index}{...movie}/>))}</View>)}
then pass props to a child componet MovieBox
import { Text ,Image,StyleSheet,View,FlatList} from 'react-native'import React from 'react'const MovieBox = ({movies,title, poster_path,vote_average,release_date,overview}:any) => {return (<FlatList data={movies}keyExtractor={(item) => item.id}renderItem={({ item }) => (<><Text>{item.title}</Text><Text>{item.release_date}</Text><Image source={{ uri: `https://image.tmdb.org/t/p/w500/${poster_path}`, }}/> </> )}></FlatList>)}export default MovieBox
it doesn't work and i don't know hot to fix it becease it didn't give me any errors it just won't show nothing.