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:
Lucas Padilha 2017-10-11 10:04:22 -03:00 committed by Lorenzo Sciandra
parent 2dca5b2135
commit 09e396002f

View File

@ -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'
}
```