I use native base to change back button in stack navigator pages,
but I don't know how to change back button icon in drawer navigator
Related
In React Native bottom tab navigation, how can I create my own custom btn that on press makes action in the current screen and not navigate in other screens?
*I know how to create custom btn
I have a bottom tab inside drawer navigation. When I switch the tab,lets say from "Home" tab screen to "Profile" tab screen, I want to hide the drawer header, it is hiding via navigtion.setOptions inside componentDidMount but it is hiding after the components inside "Profile" screen are rendered. How can I make sure the drawer header will hide before rendering of components inside "Profile" tab screen?
I have the following structure inside my main screen:
DrawerNavigator
drawer with a list of screens to navigate
Drawer.Screen
MaterialTopTabNavigator
TopTab.Screen
TopTab.Screen
TopTab.Screen
I need when I click at an item inside the drawer, navigate to a new rote without the drawer, what's the best approach to do it?
I tried with a StackNavigator inside the Drawer to prevent the error of the navigate without an handled navigator not found, but it's navigate with the drawer presents.
Solved with changes on the navigation level:
Stack Navigator
DrawerNavigator
drawer with a list of screens to navigate
Drawer.Screen
MaterialTopTabNavigator
TopTab.Screen
TopTab.Screen
TopTab.Screen
Stack.Screen (the screens on the drawer that I want to navigate)
Special thanks to expo discord community! Hope this helps someone with the same problem.
The Icons (Home, Search, Notification etc.) in the TabNavigator and the StackNavigator hides for a while when navigating.
I posted when it happens in the TabNavigator.
Any idea what could be wrong?
I have a TabNavigator with 5 Tabs and one of the Tab shows a screen from a StackNavigator with a BackButton because this Screen don't show the Tabs actually.
The StackNavigator is nested in the TabNavigator but where can I go back from the Screen with the backButton? Can I pass a specific route/tab to go back?