From 1053f898285be19bd25c9c97605bfb2c7ed731bd Mon Sep 17 00:00:00 2001 From: GabrielTrettel Date: Fri, 3 Sep 2021 15:09:08 -0300 Subject: [PATCH] Fixing navigation to Profile screen --- src/app/navigation/AppNavigator.js | 161 ++++++++++++++++------------- 1 file changed, 92 insertions(+), 69 deletions(-) diff --git a/src/app/navigation/AppNavigator.js b/src/app/navigation/AppNavigator.js index 0a77ec9..b820582 100644 --- a/src/app/navigation/AppNavigator.js +++ b/src/app/navigation/AppNavigator.js @@ -8,81 +8,104 @@ import MessagesNavigator from "./MessagesNavigator"; import ForecastNavigator from "./ForecastNavigator"; import NewListingButton from "./NewListingButton"; import SharingDataOptionsNavigator from "./SharingDataOptionsNavigator"; +import { NavigationContainer } from "@react-navigation/native"; +import {createStackNavigator} from "@react-navigation/stack"; const Tab = createBottomTabNavigator(); +const Stack = createStackNavigator(); + +function tabScreens() { + return ( + + ( + + ), + }} + /> + ({ + tabBarButton: () => ( + + navigation.navigate("SharingData", { + screen: "Voltar", + initial: false, + }) + } + /> + ), + tabBarIcon: ({ color, size }) => ( + + ), + })} + /> + ( + + ), + }} + /> + + {/* ( */} + {/* */} + {/* ), */} + {/* }} */} + {/* /> */} + + + ); +} const AppNavigator = () => ( - - ( - - ), - }} - /> - ({ - tabBarButton: () => ( - - navigation.navigate("SharingData", { - screen: "Voltar", - initial: false, - }) - } - /> - ), - tabBarIcon: ({ color, size }) => ( - - ), - })} - /> - ( - - ), - }} - /> + + + + + ( + + ), + }} + /> - {/* ( */} - {/* */} - {/* ), */} - {/* }} */} - {/* /> */} - {/* ( */} - {/* */} - {/* ), */} - {/* }} */} - {/* /> */} - + + ); export default AppNavigator;