I am trying to put both a tab-based menu and sidebar menu on one page for a react-native application. For now only one of them shows up, either a tab-based menu or a sidebar menu. Here is my navigation code. I have used wix react-native-navigation. The goal is to make both menus work on single screen. Kindly Help.
Navigation.setRoot({
root: {
bottomTabs: {
id: 'BottomTabsId',
children: [
{
component: {
name: 'SignIn',
options: {
bottomTab: {
fontSize: 12,
text: 'Sign In',
icon: require('./signin.png')
}
}
},
},
{
component: {
name: 'SignUp',
options: {
bottomTab: {
text: 'Sign Up',
fontSize: 12,
icon: require('./signup.png')
}
}
},
},
],
},
sideMenu: {
left: {
component: {
name: 'reactNativeInit.SideDrawer',
passProps: {
side: 'left'
}
}
},
center: {
stack: {
id: "stack1",
children: [
{
component: {
name: 'reactNativeInit.main'
}
}
]
}
},
leftButtons: [
{
id: 'sideMenu'
}
]
}
}
});