diff --git a/iut-expo-starter/.expo/packager-info.json b/iut-expo-starter/.expo/packager-info.json index f76bd557..36cff4cb 100644 --- a/iut-expo-starter/.expo/packager-info.json +++ b/iut-expo-starter/.expo/packager-info.json @@ -1,6 +1,6 @@ { - "expoServerPort": 19000, - "packagerPort": 19000, + "expoServerPort": null, + "packagerPort": null, "packagerPid": null, "expoServerNgrokUrl": null, "packagerNgrokUrl": null, diff --git a/iut-expo-starter/assets/pressure.png b/iut-expo-starter/assets/pressure.png new file mode 100644 index 00000000..0cc5faf8 Binary files /dev/null and b/iut-expo-starter/assets/pressure.png differ diff --git a/iut-expo-starter/assets/visibility.png b/iut-expo-starter/assets/visibility.png new file mode 100644 index 00000000..89147f7c Binary files /dev/null and b/iut-expo-starter/assets/visibility.png differ diff --git a/iut-expo-starter/assets/wind.png b/iut-expo-starter/assets/wind.png new file mode 100644 index 00000000..29a21451 Binary files /dev/null and b/iut-expo-starter/assets/wind.png differ diff --git a/iut-expo-starter/screens/CityDetails.tsx b/iut-expo-starter/screens/CityDetails.tsx index b1844b0d..53b694ba 100644 --- a/iut-expo-starter/screens/CityDetails.tsx +++ b/iut-expo-starter/screens/CityDetails.tsx @@ -31,13 +31,38 @@ export default function CityDetails({route}){ Ressenti {meteo?.temperatureFeelsLike}°C - {meteo?.at} - {meteo?.humidity} - {meteo?.pressure} - {meteo?.visibility} - {meteo?.visibility} - {meteo?.weatherDescription} - {meteo?.windSpeed} + + + + + HUMIDITY + + {meteo?.humidity}% + + + + + WIND SPEED + + {meteo?.windSpeed} km/h + + + + + + + PRESSURE + + {meteo?.pressure} hPa + + + + + VISIBILITY + + {meteo?.visibility} km + + ) } @@ -93,5 +118,52 @@ const styles = StyleSheet.create({ width: 40, marginRight: 7, marginTop: 15 + }, + imageHumidity: { + height: 20, + width: 20, + marginLeft: 10 + }, + leftBox: { + alignSelf: "flex-start", + margin: 25, + marginTop: 10, + marginBottom: 5, + height: 90, + width: 150, + flexDirection: "column", + backgroundColor: "powderblue", + borderRadius: 20 + }, + rightBox: { + alignSelf: "flex-start", + marginRight: 25, + marginTop: 10, + marginBottom: 5, + height: 90, + width: 150, + flexDirection: "column", + backgroundColor: "powderblue", + borderRadius: 20 + }, + humidityText: { + marginTop: 13, + fontWeight: "bold", + fontSize: 20, + alignSelf: "center" + }, + text: { + fontWeight: "normal", + fontStyle: 'italic', + fontSize: 10, + alignSelf: "center", + marginLeft: 7 + }, + imageEtTexte: { + flexDirection: "row", + marginTop: 13 + }, + boxes: { + flexDirection: "row" } }); \ No newline at end of file