import { View, Text, StyleSheet, TouchableHighlight } from "react-native" import { FlatList } from "react-native-gesture-handler" import { CITIES_DATA, City, getCurrentWeather, FAVORITE_CITY_DATA } from "../data/stub" import { useSafeAreaInsets } from 'react-native-safe-area-context'; import { VilleCompopo } from "../components/VilleCompopo"; import { TopBar } from "../components/TopBar"; export default function CityList({navigation}){ const insets = useSafeAreaInsets(); const statusBarHeight = insets.top; return ( item.name} renderItem={({item}) => navigation.navigate("CityDetails", {"city": item})}>} style={leStyle.container} /> ) } const leStyle = StyleSheet.create({ container: { flex: 1, alignContent: 'center', width: '100%' }, });