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.
1 line
3.3 KiB
1 line
3.3 KiB
{"ast":null,"code":"import View from \"react-native-web/dist/exports/View\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport { FlatList } from \"react-native-gesture-handler\";\nimport { CITIES_DATA } from \"../data/stub\";\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { VilleCompopo } from \"../components/VilleCompopo\";\nimport { TopBar } from \"../components/TopBar\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport default function Home() {\n var insets = useSafeAreaInsets();\n var statusBarHeight = insets.top;\n return _jsxs(View, {\n style: {\n alignItems: \"center\",\n marginTop: statusBarHeight\n },\n children: [_jsx(TopBar, {}), _jsx(FlatList, {\n data: CITIES_DATA,\n keyExtractor: function keyExtractor(item) {\n return item.name;\n },\n renderItem: function renderItem(_ref) {\n var item = _ref.item;\n return _jsx(VilleCompopo, {\n city: item\n });\n },\n style: {\n width: \"100%\",\n alignSelf: \"center\"\n }\n })]\n });\n}\nvar leStyle = StyleSheet.create({\n container: {\n alignItems: 'center'\n }\n});","map":{"version":3,"names":["FlatList","CITIES_DATA","useSafeAreaInsets","VilleCompopo","TopBar","Home","insets","statusBarHeight","top","alignItems","marginTop","item","name","width","alignSelf","leStyle","StyleSheet","create","container"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/screens/Home.tsx"],"sourcesContent":["import { View, Text, StyleSheet } from \"react-native\"\nimport { FlatList } from \"react-native-gesture-handler\"\nimport { CITIES_DATA, City, FAVORITE_CITY_DATA } from \"../data/stub\"\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { VilleCompopo } from \"../components/VilleCompopo\";\nimport { TopBar } from \"../components/TopBar\";\n\n\nexport default function Home(){\n const insets = useSafeAreaInsets();\n const statusBarHeight = insets.top;\n\n return (\n <View style={{alignItems: \"center\", marginTop: statusBarHeight}}>\n <TopBar/>\n <FlatList\n data={CITIES_DATA}\n keyExtractor={item =>item.name}\n renderItem={({item}) => <VilleCompopo city={item}/>}\n style={{width: \"100%\", alignSelf: \"center\"}} \n />\n </View>\n )\n}\n\n\nconst leStyle = StyleSheet.create({\n container: {\n alignItems: 'center',\n },\n});"],"mappings":";;AACA,SAASA,QAAQ,QAAQ,8BAA8B;AACvD,SAASC,WAAW;AACpB,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,YAAY;AACrB,SAASC,MAAM;AAA+B;AAAA;AAG9C,eAAe,SAASC,IAAI,GAAE;EAC1B,IAAMC,MAAM,GAAGJ,iBAAiB,EAAE;EAClC,IAAMK,eAAe,GAAGD,MAAM,CAACE,GAAG;EAElC,OACI,MAAC,IAAI;IAAC,KAAK,EAAE;MAACC,UAAU,EAAE,QAAQ;MAAEC,SAAS,EAAEH;IAAe,CAAE;IAAA,WAC5D,KAAC,MAAM,KAAE,EACT,KAAC,QAAQ;MACT,IAAI,EAAEN,WAAY;MAClB,YAAY,EAAE,sBAAAU,IAAI;QAAA,OAAGA,IAAI,CAACC,IAAI;MAAA,CAAC;MAC/B,UAAU,EAAE;QAAA,IAAED,IAAI,QAAJA,IAAI;QAAA,OAAM,KAAC,YAAY;UAAC,IAAI,EAAEA;QAAK,EAAE;MAAA,CAAC;MACpD,KAAK,EAAE;QAACE,KAAK,EAAE,MAAM;QAAEC,SAAS,EAAE;MAAQ;IAAE,EAC1C;EAAA,EACC;AAEf;AAGA,IAAMC,OAAO,GAAGC,UAAU,CAACC,MAAM,CAAC;EAC9BC,SAAS,EAAE;IACPT,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC"},"metadata":{},"sourceType":"module"} |