Browse Source

updating headers pattern

master
analuizaff 4 years ago
parent
commit
996dfe9f16
  1. 8
      src/app/navigation/AccountNavigator.js
  2. 8
      src/app/navigation/FeedNavigator.js
  3. 8
      src/app/navigation/MessagesNavigator.js
  4. 8
      src/app/navigation/OfficialMessagesNavigator.js

8
src/app/navigation/AccountNavigator.js

@ -7,7 +7,13 @@ const Stack = createStackNavigator();
const AccountNavigator = () => (
<Stack.Navigator>
<Stack.Screen name="Perfil" component={AccountScreen} />
<Stack.Screen name="Perfil" component={AccountScreen}
options={{
title: "Perfil",
headerStyle: {
backgroundColor: "lightgray",
},
}}/>
</Stack.Navigator>
);

8
src/app/navigation/FeedNavigator.js

@ -6,7 +6,13 @@ const Stack = createStackNavigator();
const FeedNavigator = () => (
<Stack.Navigator>
<Stack.Screen name="Home" component={MapFeedScreen} />
<Stack.Screen name="Home" component={MapFeedScreen}
options={{
title: "Home",
headerStyle: {
backgroundColor: "lightgray",
},
}} />
</Stack.Navigator>
);

8
src/app/navigation/MessagesNavigator.js

@ -6,7 +6,13 @@ const Stack = createStackNavigator();
const MessagesNavigator = () => (
<Stack.Navigator>
<Stack.Screen name="Notificação" component={MessagesScreen} />
<Stack.Screen name="Notificação" component={MessagesScreen}
options={{
title: "Notificação",
headerStyle: {
backgroundColor: "lightgray",
},
}} />
</Stack.Navigator>
);

8
src/app/navigation/OfficialMessagesNavigator.js

@ -6,7 +6,13 @@ const Stack = createStackNavigator();
const OfficialMessagesNavigator = () => (
<Stack.Navigator>
<Stack.Screen name="Previsão do Tempo" component={OfficialMessagesScreen} />
<Stack.Screen name="Previsão do Tempo" component={OfficialMessagesScreen}
options={{
title: "Previsão do Tempo",
headerStyle: {
backgroundColor: "lightgray",
},
}} />
</Stack.Navigator>
);

Loading…
Cancel
Save