Browse Source

Changing names from "Official" to "Forecast" in all weather forecast

related.
master
GabrielTrettel 4 years ago
parent
commit
0482c499aa
  1. 12
      src/app/navigation/AppNavigator.js
  2. 13
      src/app/navigation/ForecastNavigator.js
  3. 4
      src/app/screens/ForecastScreen.js

12
src/app/navigation/AppNavigator.js

@ -5,13 +5,12 @@ import { MaterialCommunityIcons } from "@expo/vector-icons";
import AccountNavigator from "./AccountNavigator";
import FeedNavigator from "./FeedNavigator";
import MessagesNavigator from "./MessagesNavigator";
import OfficialMessagesNavigator from "./OfficialMessagesNavigator";
import ForecastNavigator from "./ForecastNavigator";
import NewListingButton from "./NewListingButton";
import SharingDataOptionsNavigator from "./SharingDataOptionsNavigator";
const Tab = createBottomTabNavigator();
const AppNavigator = () => (
<Tab.Navigator style={{ backgroundColor: "white" }}>
<Tab.Screen
@ -19,13 +18,13 @@ const AppNavigator = () => (
component={FeedNavigator}
options={{
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons name="home" color={color} size={size}/>
<MaterialCommunityIcons name="home" color={color} size={size} />
),
}}
/>
<Tab.Screen
name="Oficial"
component={OfficialMessagesNavigator}
name="Previsão"
component={ForecastNavigator}
options={{
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons
@ -47,7 +46,8 @@ const AppNavigator = () => (
navigation.reset({
index: 0,
routes: [{ name: "SharingData" }],
})}
})
}
/>
),
tabBarIcon: ({ color, size }) => (

13
src/app/navigation/OfficialMessagesNavigator.js → src/app/navigation/ForecastNavigator.js

@ -1,19 +1,22 @@
import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import OfficialMessagesScreen from "../screens/OfficialMessagesScreen";
import ForecastScreen from "../screens/ForecastScreen";
const Stack = createStackNavigator();
const OfficialMessagesNavigator = () => (
const ForecastNavigator = () => (
<Stack.Navigator>
<Stack.Screen name="Previsão do Tempo" component={OfficialMessagesScreen}
<Stack.Screen
name="Previsão do Tempo"
component={ForecastScreen}
options={{
title: "Previsão do Tempo",
headerStyle: {
backgroundColor: "white",
},
}} />
}}
/>
</Stack.Navigator>
);
export default OfficialMessagesNavigator;
export default ForecastNavigator;

4
src/app/screens/OfficialMessagesScreen.js → src/app/screens/ForecastScreen.js

@ -2,7 +2,7 @@ import React from "react";
import Screen from "../components/Screen";
import InDevelopment from "../components/InDevelopment";
function OfficialMessagesScreen(props) {
function ForecastScreen(props) {
return (
<Screen>
<InDevelopment />
@ -10,4 +10,4 @@ function OfficialMessagesScreen(props) {
);
}
export default OfficialMessagesScreen;
export default ForecastScreen;
Loading…
Cancel
Save