|
@@ -65,11 +65,13 @@ Navigation.startTabBasedApp({
|
65
|
65
|
drawer: { // optional, add this if you want a side menu drawer in your app
|
66
|
66
|
left: { // optional, define if you want a drawer from the left
|
67
|
67
|
screen: 'example.FirstSideMenu', // unique ID registered with Navigation.registerScreen
|
68
|
|
- passProps: {} // simple serializable object that will pass as props to all top screens (optional)
|
|
68
|
+ passProps: {} // simple serializable object that will pass as props to all top screens (optional),
|
|
69
|
+ fixedWidth: 500, // a fixed width you want your left drawer to have (optional)
|
69
|
70
|
},
|
70
|
71
|
right: { // optional, define if you want a drawer from the right
|
71
|
72
|
screen: 'example.SecondSideMenu', // unique ID registered with Navigation.registerScreen
|
72
|
73
|
passProps: {} // simple serializable object that will pass as props to all top screens (optional)
|
|
74
|
+ fixedWidth: 500, // a fixed width you want your right drawer to have (optional)
|
73
|
75
|
},
|
74
|
76
|
style: { // ( iOS only )
|
75
|
77
|
drawerShadow: true, // optional, add this if you want a side menu drawer shadow
|
|
@@ -105,11 +107,13 @@ Navigation.startSingleScreenApp({
|
105
|
107
|
screen: 'example.FirstSideMenu', // unique ID registered with Navigation.registerScreen
|
106
|
108
|
passProps: {}, // simple serializable object that will pass as props to all top screens (optional)
|
107
|
109
|
disableOpenGesture: false // can the drawer be opened with a swipe instead of button (optional, Android only)
|
|
110
|
+ fixedWidth: 500, // a fixed width you want your left drawer to have (optional)
|
108
|
111
|
},
|
109
|
112
|
right: { // optional, define if you want a drawer from the right
|
110
|
113
|
screen: 'example.SecondSideMenu', // unique ID registered with Navigation.registerScreen
|
111
|
114
|
passProps: {} // simple serializable object that will pass as props to all top screens (optional)
|
112
|
115
|
disableOpenGesture: false // can the drawer be opened with a swipe instead of button (optional, Android only)
|
|
116
|
+ fixedWidth: 500, // a fixed width you want your right drawer to have (optional)
|
113
|
117
|
},
|
114
|
118
|
style: { // ( iOS only )
|
115
|
119
|
drawerShadow: true, // optional, add this if you want a side menu drawer shadow
|