Quellcode durchsuchen

Update top-level-api.md (Added forgotten styles) (#1600)

* Update top-level-api.md (Added forgotten styles)

Added forgotten drawer style props.

* Added iOS only words to style objects
Berkay Beyaz vor 7 Jahren
Ursprung
Commit
87f64a6ed7
1 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen
  1. 12
    0
      docs/top-level-api.md

+ 12
- 0
docs/top-level-api.md Datei anzeigen

@@ -66,6 +66,12 @@ Navigation.startTabBasedApp({
66 66
       screen: 'example.SecondSideMenu', // unique ID registered with Navigation.registerScreen
67 67
       passProps: {} // simple serializable object that will pass as props to all top screens (optional)
68 68
     },
69
+    style: { // ( iOS only )
70
+      drawerShadow: true, // optional, add this if you want a side menu drawer shadow
71
+      contentOverlayColor: 'rgba(0,0,0,0.25)', // optional, add this if you want a overlay color when drawer is open
72
+      leftDrawerWidth: 50 // optional, add this if you want a define left drawer width (50=percent)
73
+      rightDrawerWidth: 50 // optional, add this if you want a define right drawer width (50=percent)
74
+    },
69 75
     disableOpenGesture: false // optional, can the drawer be opened with a swipe instead of button
70 76
   },
71 77
   passProps: {}, // simple serializable object that will pass as props to all top screens (optional)
@@ -94,6 +100,12 @@ Navigation.startSingleScreenApp({
94 100
       screen: 'example.SecondSideMenu', // unique ID registered with Navigation.registerScreen
95 101
       passProps: {} // simple serializable object that will pass as props to all top screens (optional)
96 102
     },
103
+    style: { // ( iOS only )
104
+      drawerShadow: true, // optional, add this if you want a side menu drawer shadow
105
+      contentOverlayColor: 'rgba(0,0,0,0.25)', // optional, add this if you want a overlay color when drawer is open
106
+      leftDrawerWidth: 50 // optional, add this if you want a define left drawer width (50=percent)
107
+      rightDrawerWidth: 50 // optional, add this if you want a define right drawer width (50=percent)
108
+    },
97 109
     disableOpenGesture: false // optional, can the drawer be opened with a swipe instead of button
98 110
   },
99 111
   passProps: {}, // simple serializable object that will pass as props to all top screens (optional)