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
4.7 KiB

{"ast":null,"code":"import React from \"react\";\nimport View from \"react-native-web/dist/exports/View\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport Text from \"react-native-web/dist/exports/Text\";\nimport TouchableHighlight from \"react-native-web/dist/exports/TouchableHighlight\";\nimport Image from \"react-native-web/dist/exports/Image\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function VilleCompopo(props) {\n return _jsxs(View, {\n children: [_jsxs(View, {\n style: styles.container,\n children: [_jsxs(View, {\n style: styles.bothtext,\n children: [_jsx(Text, {\n style: styles.title,\n children: props.city.name\n }), _jsxs(Text, {\n children: [props.city.latitude, \" - \", props.city.longitude]\n })]\n }), _jsx(TouchableHighlight, {\n children: _jsx(Image, {\n source: {\n uri: \"http://simpleicon.com/wp-content/uploads/star.svg\"\n }\n })\n })]\n }), _jsx(View, {\n style: styles.separator\n })]\n });\n}\nvar styles = StyleSheet.create({\n container: {\n flex: 1,\n flexDirection: \"row\",\n marginHorizontal: \"5%\",\n backgroundColor: \"darksalmon\",\n margin: 5,\n borderRadius: 15,\n width: \"90%\"\n },\n separator: {\n marginVertical: 4,\n backgroundColor: \"rgba(255,255,255,0.3)\",\n height: 1,\n width: '90%'\n },\n teaserImage: {\n width: 50,\n height: 50\n },\n title: {\n fontWeight: \"bold\",\n fontSize: 18\n },\n bothtext: {\n width: \"80%\",\n margin: 10\n },\n button: {\n color: \"black\"\n }\n});","map":{"version":3,"names":["React","VilleCompopo","props","styles","container","bothtext","title","city","name","latitude","longitude","uri","separator","StyleSheet","create","flex","flexDirection","marginHorizontal","backgroundColor","margin","borderRadius","width","marginVertical","height","teaserImage","fontWeight","fontSize","button","color"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/components/VilleCompopo.tsx"],"sourcesContent":["import React from \"react\";\nimport { View, StyleSheet, Text, Button, TouchableHighlight, Image } from \"react-native\";\nimport { City } from \"../data/stub\";\n\n\ntype VilleProps = {\n city: City\n}\n\nexport function VilleCompopo(props: VilleProps){\n return (\n <View>\n <View style={styles.container}>\n <View style={styles.bothtext}>\n <Text style={styles.title}>{props.city.name}</Text>\n <Text>{props.city.latitude} - {props.city.longitude}</Text>\n </View>\n <TouchableHighlight>\n <Image source={{uri: \"http://simpleicon.com/wp-content/uploads/star.svg\"}}/>\n </TouchableHighlight>\n </View>\n <View style={styles.separator}/>\n </View>\n );\n}\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n flexDirection: \"row\",\n marginHorizontal: \"5%\",\n backgroundColor: \"darksalmon\",\n margin: 5,\n borderRadius: 15,\n width: \"90%\"\n },\n separator: {\n marginVertical: 4,\n backgroundColor: \"rgba(255,255,255,0.3)\",\n height: 1,\n width: '90%',\n },\n teaserImage: {\n width: 50,\n height: 50,\n },\n title: {\n fontWeight: \"bold\",\n fontSize: 18\n },\n bothtext: {\n width: \"80%\",\n margin: 10\n },\n button: {\n color: \"black\"\n }\n});"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS1B,OAAO,SAASC,YAAY,CAACC,KAAiB,EAAC;EAC3C,OACA,MAAC,IAAI;IAAA,WACH,MAAC,IAAI;MAAC,KAAK,EAAEC,MAAM,CAACC,SAAU;MAAA,WAC5B,MAAC,IAAI;QAAC,KAAK,EAAED,MAAM,CAACE,QAAS;QAAA,WAC3B,KAAC,IAAI;UAAC,KAAK,EAAEF,MAAM,CAACG,KAAM;UAAA,UAAEJ,KAAK,CAACK,IAAI,CAACC;QAAI,EAAQ,EACnD,MAAC,IAAI;UAAA,WAAEN,KAAK,CAACK,IAAI,CAACE,QAAQ,EAAC,KAAG,EAACP,KAAK,CAACK,IAAI,CAACG,SAAS;QAAA,EAAQ;MAAA,EACtD,EACP,KAAC,kBAAkB;QAAA,UACjB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