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

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

@ -1,19 +1,22 @@
import React from "react"; import React from "react";
import { createStackNavigator } from "@react-navigation/stack"; import { createStackNavigator } from "@react-navigation/stack";
import OfficialMessagesScreen from "../screens/OfficialMessagesScreen";
import ForecastScreen from "../screens/ForecastScreen";
const Stack = createStackNavigator(); const Stack = createStackNavigator();
const OfficialMessagesNavigator = () => (
const ForecastNavigator = () => (
<Stack.Navigator> <Stack.Navigator>
<Stack.Screen name="Previsão do Tempo" component={OfficialMessagesScreen}
<Stack.Screen
name="Previsão do Tempo"
component={ForecastScreen}
options={{ options={{
title: "Previsão do Tempo", title: "Previsão do Tempo",
headerStyle: { headerStyle: {
backgroundColor: "white", backgroundColor: "white",
}, },
}} />
}}
/>
</Stack.Navigator> </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 Screen from "../components/Screen";
import InDevelopment from "../components/InDevelopment"; import InDevelopment from "../components/InDevelopment";
function OfficialMessagesScreen(props) {
function ForecastScreen(props) {
return ( return (
<Screen> <Screen>
<InDevelopment /> <InDevelopment />
@ -10,4 +10,4 @@ function OfficialMessagesScreen(props) {
); );
} }
export default OfficialMessagesScreen;
export default ForecastScreen;
Loading…
Cancel
Save