mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-24 17:18:09 +00:00
added drawerBackgroundColor for documentation (#2723)
* added property inside drawerConfig to backgroundColor (drawerBackgroundColor) * Adjusting documentation for PR deployment (# 2698) * add example in the doc
This commit is contained in:
parent
2dca5b2135
commit
09e396002f
@ -87,11 +87,12 @@ The route configs object is a mapping from route name to a route config, which t
|
||||
|
||||
|
||||
### DrawerNavigatorConfig
|
||||
- `drawerWidth` - Width of the drawer
|
||||
- `drawerWidth` - Width of the drawer.
|
||||
- `drawerPosition` - Options are `left` or `right`. Default is `left` position.
|
||||
- `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.
|
||||
- `contentOptions` - Configure the drawer content, see below.
|
||||
- `useNativeAnimations` - Enable native animations. Default is `true`.
|
||||
- `drawerBackgroundColor` - Use the Drawer background for some color. The Default is `white`.
|
||||
|
||||
#### Example:
|
||||
|
||||
@ -103,7 +104,8 @@ as you can see in the example below.
|
||||
{
|
||||
drawerWidth: 200,
|
||||
drawerPosition: 'right',
|
||||
contentComponent: props => <ScrollView><DrawerItems {...props} /></ScrollView>
|
||||
contentComponent: props => <ScrollView><DrawerItems {...props} /></ScrollView>,
|
||||
drawerBackgroundColor: 'transparent'
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user