You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
756 B
26 lines
756 B
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(props: any){
|
|
const insets = useSafeAreaInsets();
|
|
const statusBarHeight = insets.top;
|
|
|
|
return (
|
|
<View style={{alignItems: "center", marginTop: statusBarHeight}}>
|
|
<TopBar/>
|
|
<CityDetails city={FAVORITE_CITY_DATA}/>
|
|
</View>
|
|
)
|
|
}
|
|
|
|
|
|
const leStyle = StyleSheet.create({
|
|
container: {
|
|
alignItems: 'center',
|
|
},
|
|
}); |