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