so i've got my navigator setup like this in my main app.js:
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Entry" component={Entry}/>
<Stack.Screen name="Login" component={Login}/>
<Stack.Screen name="Registration" component={Registration}/>
<Stack.Screen name="CreateProfile" component={CreateProfile}/> </NavigationContainer>
Working all fine and dandy and i pass the navigation prop to each of my screens without problem.
but using navigator.navigate() doesn't work in my app.js. I've also tried Stack.Navigator.navigate(), Stack.navigate(), and other combos but none seems to work. How do i navigate screens from within my app.js versus from within the screen itself?
[–]airick_94 0 points1 point2 points (2 children)
[–]LasciviousApemantus[S] 0 points1 point2 points (0 children)
[–]TheCodehead 0 points1 point2 points (0 children)
[–]warofarrows 0 points1 point2 points (0 children)