You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The route configs object is a mapping from route name to a route config, which tells the navigator what to present for that route, see [example](stack-navigator.html#routeconfigs) from `createStackNavigator`.
14
14
15
-
16
15
### DrawerNavigatorConfig
17
16
18
17
-`drawerWidth` - Width of the drawer or a function returning it.
19
18
-`drawerPosition` - Options are `left` or `right`. Default is `left` position.
20
-
-`contentComponent` - Component used to render the content of the drawer, for example, navigation items. Receives the `navigation` prop for the drawer. Defaults to `DrawerItems`. For more information, see below.
19
+
-`contentComponent` - Component used to render the content of the drawer, for example, navigation items. Receives the `navigation` prop and `drawerOpenProgress`for the drawer. Defaults to `DrawerItems`. For more information, see below.
21
20
-`contentOptions` - Configure the drawer content, see below.
22
21
-`useNativeAnimations` - Enable native animations. Default is `true`.
23
22
-`drawerBackgroundColor` - Use the Drawer background for some color. The Default is `white`.
@@ -37,7 +36,7 @@ The default component for the drawer is scrollable and only contains links for t
`contentComponent` also received a prop called `drawerOpenProgress` which is an [animated value](https://facebook.github.io/react-native/docs/animated#value) that represents the animated position of the drawer (0 is closed; 1 is open). This allows you to do interesting animations in your `contentComponent`, such as parallax motion of the drawer contents:
-`items` - the array of routes, can be modified or overridden
@@ -100,6 +112,6 @@ React Element or a function, that given `{ focused: boolean, tintColor: string }
100
112
101
113
Specifies the [lock mode](https://facebook.github.io/react-native/docs/drawerlayoutandroid.html#drawerlockmode) of the drawer. This can also update dynamically by using screenProps.drawerLockMode on your top level router.
102
114
103
-
### Nesting drawer navigators inside others
115
+
### Nesting drawer navigators inside others
104
116
105
-
If a drawer navigator is nested inside of another navigator that provides some UI, for example a tab navigator or stack navigator, then the drawer will be rendered below the UI from those navigators. The drawer will appear below the tab bar and below the header of the stack. You will need to make the drawer navigator the parent of any navigator where the drawer should be rendered on top of its UI.
117
+
If a drawer navigator is nested inside of another navigator that provides some UI, for example a tab navigator or stack navigator, then the drawer will be rendered below the UI from those navigators. The drawer will appear below the tab bar and below the header of the stack. You will need to make the drawer navigator the parent of any navigator where the drawer should be rendered on top of its UI.
The route configs object is a mapping from route name to a route config, which tells the navigator what to present for that route, see [example](stack-navigator.html#routeconfigs) from `createStackNavigator`.
15
15
16
-
17
16
### DrawerNavigatorConfig
18
17
19
18
-`drawerWidth` - Width of the drawer or a function returning it.
@@ -38,7 +37,7 @@ The default component for the drawer is scrollable and only contains links for t
`contentComponent` also received a prop called `drawerOpenProgress` which is an [animated value](https://facebook.github.io/react-native/docs/animated#value) that represents the animated position of the drawer (0 is closed; 1 is open). This allows you to do interesting animations in your `contentComponent`, such as parallax motion of the drawer contents:
-`items` - the array of routes, can be modified or overridden
@@ -101,6 +113,6 @@ React Element or a function, that given `{ focused: boolean, tintColor: string }
101
113
102
114
Specifies the [lock mode](https://facebook.github.io/react-native/docs/drawerlayoutandroid.html#drawerlockmode) of the drawer. This can also update dynamically by using screenProps.drawerLockMode on your top level router.
103
115
104
-
### Nesting drawer navigators inside others
116
+
### Nesting drawer navigators inside others
105
117
106
-
If a drawer navigator is nested inside of another navigator that provides some UI, for example a tab navigator or stack navigator, then the drawer will be rendered below the UI from those navigators. The drawer will appear below the tab bar and below the header of the stack. You will need to make the drawer navigator the parent of any navigator where the drawer should be rendered on top of its UI.
118
+
If a drawer navigator is nested inside of another navigator that provides some UI, for example a tab navigator or stack navigator, then the drawer will be rendered below the UI from those navigators. The drawer will appear below the tab bar and below the header of the stack. You will need to make the drawer navigator the parent of any navigator where the drawer should be rendered on top of its UI.
0 commit comments