import { View, Text, StyleSheet } from "react-native"
import { FlatList } from "react-native-gesture-handler"
import { CITIES_DATA, City, 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 Home(){
    const insets = useSafeAreaInsets();
    const statusBarHeight = insets.top;
    const favoriteCity = FAVORITE_CITY_DATA;

    return (
        <View style={{alignItems: "center", marginTop: statusBarHeight}}>
            <TopBar/>
        </View>
    )
}


const leStyle = StyleSheet.create({
    container: {
        alignItems: 'center',
    },
});