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](/docs/api/navigators/StackNavigator.md#routeconfigs) from `StackNavigator`.
-`contentComponent` - Component used to render the content of the drawer, for example, navigation items. Receives the `navigation` prop for the drawer. Defaults to `DrawerView.Items`. For more information, see below.
-`contentOptions` - Configure the drawer content, see below.
Several options get passed to the underlying router to modify navigation logic:
-`initialRouteName` - The routeName for the initial route.
-`order` - Array of routeNames which defines the order of the drawer items.
-`paths` - Provide a mapping of routeName to path config, which overrides the paths set in the routeConfigs.
-`backBehavior` - Should the back button cause switch to the initial route? If yes, set to `initialRoute`, otherwise `none`. Defaults to `initialRoute` behavior.
Usually you define static `navigationOptions` on your screen component. For example:
```jsx
class ProfileScreen extends React.Component {
static navigationOptions = {
title: ({ state }) => `${state.params.name}'s Profile!`,
drawer: {
icon: (
<Imagesrc={require('./my-icon.png')}/>
),
},
};
...
```
All `navigationOptions` for the `DrawerNavigator`:
-`title` - a title (string) of the scene
-`drawer` - a config object for the drawer:
-`label` - String, React Element or a function that given `{ focused: boolean, tintColor: string }` returns a React.Element, to display in drawer sidebar. When undefined, scene `title` is used
-`icon` - React Element or a function, that given `{ focused: boolean, tintColor: string }` returns a React.Element, to display in drawer sidebar