|
|
@ -3,11 +3,10 @@ import Screen from "../components/Screen"; |
|
|
|
import { StyleSheet, View, Text, TouchableNativeFeedback } from "react-native"; |
|
|
|
import { dimensions, screen_width } from "../config/dimensions"; |
|
|
|
import colors from "../config/colors"; |
|
|
|
import { EventLocationContext } from "../context/EventLocationContext"; |
|
|
|
import getWeatherForecast from "../api/weather_forecast"; |
|
|
|
import assets from "../config/assets"; |
|
|
|
import { ScrollView } from "react-native-gesture-handler"; |
|
|
|
import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view"; |
|
|
|
import HeaderBarMenu from "../components/HeaderBarMenu"; |
|
|
|
|
|
|
|
function forecastDay(day, setDay) { |
|
|
|
return ( |
|
|
@ -245,6 +244,7 @@ function renderErrorScreen() { |
|
|
|
function ForecastScreen(props) { |
|
|
|
const forecast = getWeatherForecast(); |
|
|
|
|
|
|
|
HeaderBarMenu(props.navigation); |
|
|
|
return ( |
|
|
|
<Screen>{forecast ? renderScreen(forecast) : renderErrorScreen()}</Screen> |
|
|
|
); |
|
|
|