Browse Source

Removing "Perfil" and "Messages screens from app navigator"

master
GabrielTrettel 3 years ago
parent
commit
46b97f1237
  1. 58
      src/app/navigation/AppNavigator.js
  2. 1
      src/app/navigation/NewListingButton.js

58
src/app/navigation/AppNavigator.js

@ -22,20 +22,6 @@ const AppNavigator = () => (
),
}}
/>
<Tab.Screen
name="Previsão"
component={ForecastNavigator}
options={{
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons
name="check-circle"
color={color}
size={size}
/>
),
}}
/>
<Tab.Screen
name="SharingData"
component={SharingDataOptionsNavigator}
@ -43,8 +29,8 @@ const AppNavigator = () => (
tabBarButton: () => (
<NewListingButton
onPress={() =>
navigation.navigate("SharingData",{
screen:"Voltar",
navigation.navigate("SharingData", {
screen: "Voltar",
initial: false,
})
}
@ -59,29 +45,43 @@ const AppNavigator = () => (
),
})}
/>
<Tab.Screen
name="Notificação"
component={MessagesNavigator}
name="Previsão"
component={ForecastNavigator}
options={{
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons
name="bell"
name="check-circle"
color={color}
size={size}
/>
),
}}
/>
<Tab.Screen
name="Perfil"
component={AccountNavigator}
options={{
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons name="account" color={color} size={size} />
),
}}
/>
{/* <Tab.Screen */}
{/* name="Notificação" */}
{/* component={MessagesNavigator} */}
{/* options={{ */}
{/* tabBarIcon: ({ color, size }) => ( */}
{/* <MaterialCommunityIcons */}
{/* name="bell" */}
{/* color={color} */}
{/* size={size} */}
{/* /> */}
{/* ), */}
{/* }} */}
{/* /> */}
{/* <Tab.Screen */}
{/* name="Perfil" */}
{/* component={AccountNavigator} */}
{/* options={{ */}
{/* tabBarIcon: ({ color, size }) => ( */}
{/* <MaterialCommunityIcons name="account" color={color} size={size} /> */}
{/* ), */}
{/* }} */}
{/* /> */}
</Tab.Navigator>
);

1
src/app/navigation/NewListingButton.js

@ -22,6 +22,7 @@ const styles = StyleSheet.create({
container: {
alignItems: "center",
backgroundColor: colors.primary,
marginHorizontal: 60,
borderColor: colors.white,
borderRadius: 50,
borderWidth: 0,

Loading…
Cancel
Save