You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to setup the boilerplate with a drawer having tabs as well as stacks, but unfortunately failed it and looking for some help.
I'm not able to open the drawer by sliding to the right and I do not get the drawer icon which is usually on the top left.
It shows the tabs though.
My code of the RootScreen looks like:
/*
* TABS
*/
const TabsNavigator = createMaterialTopTabNavigator(
{
Welcome: {
screen: ExampleScreen
},
Story: {
screen: ExampleScreen
}
}
);
/*
* DRAWER
*/
const DrawerNavigator = createDrawerNavigator(
{
Home: {
screen: TabsNavigator
},
Links: {
screen: ExampleScreen
},
Settings: {
screen: SettingsScreen
}
}
);
/*
* STARTSCREEN
*/
const AppNav = createStackNavigator(
{
// Create the application routes here (the key is the route name, the value is the target screen)
// See https://reactnavigation.org/docs/en/stack-navigator.html#routeconfigs
SplashScreen: SplashScreen,
// The main application screen is our "ExampleScreen". Feel free to replace it with your
// own screen and remove the example.
MainScreen: DrawerNavigator,
},
{
// By default the application will show the splash screen
initialRouteName: 'SplashScreen',
// See https://reactnavigation.org/docs/en/stack-navigator.html#stacknavigatorconfig
headerMode: 'none',
}
)
const App = createAppContainer(AppNav)
class RootScreen extends Component {
componentDidMount() {
// Run the startup saga when the application is starting
this.props.startup()
}
render() {
return (
<View style={styles.container}>
<App
// Initialize the NavigationService (see https://reactnavigation.org/docs/en/navigating-without-navigation-prop.html)
ref={(navigatorRef) => {
NavigationService.setTopLevelNavigator(navigatorRef)
}}
/>
</View>
)
}
}
Any ideas?
I would also much appreciate if this is standard part of the boilerplate.
Thanks,
Zefau
The text was updated successfully, but these errors were encountered:
Zefau
changed the title
Configuration of Drawer. Tabs and Stacks
Configuration of Drawer, Tabs and Stacks
Mar 4, 2019
I've been trying to setup the boilerplate with a drawer having tabs as well as stacks, but unfortunately failed it and looking for some help.
I'm not able to open the drawer by sliding to the right and I do not get the drawer icon which is usually on the top left.
It shows the tabs though.
My code of the
RootScreen
looks like:Any ideas?
I would also much appreciate if this is standard part of the boilerplate.
Thanks,
Zefau
The text was updated successfully, but these errors were encountered: