|
|
|
|
104
|
left: { // optional, define if you want a drawer from the left
|
104
|
left: { // optional, define if you want a drawer from the left
|
105
|
screen: 'example.FirstSideMenu', // unique ID registered with Navigation.registerScreen
|
105
|
screen: 'example.FirstSideMenu', // unique ID registered with Navigation.registerScreen
|
106
|
passProps: {}, // simple serializable object that will pass as props to all top screens (optional)
|
106
|
passProps: {}, // simple serializable object that will pass as props to all top screens (optional)
|
|
|
107
|
+ disableOpenGesture: false // optional, can the drawer be opened with a swipe instead of button
|
107
|
},
|
108
|
},
|
108
|
right: { // optional, define if you want a drawer from the right
|
109
|
right: { // optional, define if you want a drawer from the right
|
109
|
screen: 'example.SecondSideMenu', // unique ID registered with Navigation.registerScreen
|
110
|
screen: 'example.SecondSideMenu', // unique ID registered with Navigation.registerScreen
|
110
|
passProps: {} // simple serializable object that will pass as props to all top screens (optional)
|
111
|
passProps: {} // simple serializable object that will pass as props to all top screens (optional)
|
|
|
112
|
+ disableOpenGesture: false // optional, can the drawer be opened with a swipe instead of button
|
111
|
},
|
113
|
},
|
112
|
style: { // ( iOS only )
|
114
|
style: { // ( iOS only )
|
113
|
drawerShadow: true, // optional, add this if you want a side menu drawer shadow
|
115
|
drawerShadow: true, // optional, add this if you want a side menu drawer shadow
|
|
|
|
|
118
|
type: 'MMDrawer', // optional, iOS only, types: 'TheSideBar', 'MMDrawer' default: 'MMDrawer'
|
120
|
type: 'MMDrawer', // optional, iOS only, types: 'TheSideBar', 'MMDrawer' default: 'MMDrawer'
|
119
|
animationType: 'door', //optional, iOS only, for MMDrawer: 'door', 'parallax', 'slide', 'slide-and-scale'
|
121
|
animationType: 'door', //optional, iOS only, for MMDrawer: 'door', 'parallax', 'slide', 'slide-and-scale'
|
120
|
// for TheSideBar: 'airbnb', 'facebook', 'luvocracy','wunder-list'
|
122
|
// for TheSideBar: 'airbnb', 'facebook', 'luvocracy','wunder-list'
|
121
|
- disableOpenGesture: false // optional, can the drawer be opened with a swipe instead of button
|
|
|
|
|
123
|
+ disableOpenGesture: false // optional, can the drawer, both right and left, be opened with a swipe instead of button
|
122
|
},
|
124
|
},
|
123
|
passProps: {}, // simple serializable object that will pass as props to all top screens (optional)
|
125
|
passProps: {}, // simple serializable object that will pass as props to all top screens (optional)
|
124
|
animationType: 'slide-down' // optional, add transition animation to root change: 'none', 'slide-down', 'fade'
|
126
|
animationType: 'slide-down' // optional, add transition animation to root change: 'none', 'slide-down', 'fade'
|