Browse Source

update docs for iOS drawer animations in top-level-api section (#1619)

* update docs for ios drawer animations in top-level-api section

* update docs for ios drawer animations in top-level-api section
Aishwary Raj 7 years ago
parent
commit
952b066812
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      docs/top-level-api.md

+ 6
- 0
docs/top-level-api.md View File

@@ -72,6 +72,9 @@ Navigation.startTabBasedApp({
72 72
       leftDrawerWidth: 50 // optional, add this if you want a define left drawer width (50=percent)
73 73
       rightDrawerWidth: 50 // optional, add this if you want a define right drawer width (50=percent)
74 74
     },
75
+    type: 'MMDrawer', // optional, iOS only, types: 'TheSideBar', 'MMDrawer' default: 'MMDrawer'
76
+    animationType: 'door', //optional, iOS only, for MMDrawer: 'door', 'parallax', 'slide', 'slide-and-scale'
77
+                                        // for TheSideBar: 'airbnb', 'facebook', 'luvocracy','wunder-list'
75 78
     disableOpenGesture: false // optional, can the drawer be opened with a swipe instead of button
76 79
   },
77 80
   passProps: {}, // simple serializable object that will pass as props to all top screens (optional)
@@ -106,6 +109,9 @@ Navigation.startSingleScreenApp({
106 109
       leftDrawerWidth: 50 // optional, add this if you want a define left drawer width (50=percent)
107 110
       rightDrawerWidth: 50 // optional, add this if you want a define right drawer width (50=percent)
108 111
     },
112
+    type: 'MMDrawer', // optional, iOS only, types: 'TheSideBar', 'MMDrawer' default: 'MMDrawer'
113
+    animationType: 'door', //optional, iOS only, for MMDrawer: 'door', 'parallax', 'slide', 'slide-and-scale'
114
+                                        // for TheSideBar: 'airbnb', 'facebook', 'luvocracy','wunder-list'
109 115
     disableOpenGesture: false // optional, can the drawer be opened with a swipe instead of button
110 116
   },
111 117
   passProps: {}, // simple serializable object that will pass as props to all top screens (optional)