Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/top-level-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ Navigation.startTabBasedApp({
screen: 'example.SecondSideMenu', // unique ID registered with Navigation.registerScreen
passProps: {} // simple serializable object that will pass as props to all top screens (optional)
},
style: { // ( iOS only )
     drawerShadow: true, // optional, add this if you want a side menu drawer shadow
     contentOverlayColor: 'rgba(0,0,0,0.25)', // optional, add this if you want a overlay color when drawer is open
leftDrawerWidth: 50 // optional, add this if you want a define left drawer width (50=percent)
rightDrawerWidth: 50 // optional, add this if you want a define right drawer width (50=percent)
},
disableOpenGesture: false // optional, can the drawer be opened with a swipe instead of button
},
passProps: {}, // simple serializable object that will pass as props to all top screens (optional)
Expand Down Expand Up @@ -94,6 +100,12 @@ Navigation.startSingleScreenApp({
screen: 'example.SecondSideMenu', // unique ID registered with Navigation.registerScreen
passProps: {} // simple serializable object that will pass as props to all top screens (optional)
},
style: { // ( iOS only )
     drawerShadow: true, // optional, add this if you want a side menu drawer shadow
     contentOverlayColor: 'rgba(0,0,0,0.25)', // optional, add this if you want a overlay color when drawer is open
leftDrawerWidth: 50 // optional, add this if you want a define left drawer width (50=percent)
rightDrawerWidth: 50 // optional, add this if you want a define right drawer width (50=percent)
},
disableOpenGesture: false // optional, can the drawer be opened with a swipe instead of button
},
passProps: {}, // simple serializable object that will pass as props to all top screens (optional)
Expand Down