Add router prop for the DrawerNavigator content component (#487)

This commit is contained in:
Igor Ovsiannikov
2017-02-26 14:19:08 -01:00
committed by Satyajit Sahoo
parent 49133c3dfe
commit 1ca18dee13
2 changed files with 3 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ import type {
NavigationState,
NavigationRoute,
NavigationAction,
NavigationRouter,
Style,
} from '../../TypeDefinition';
import type {
@@ -29,6 +30,7 @@ type Props = {
getLabel: (scene: DrawerScene) => ?(React.Element<*> | string);
renderIcon: (scene: DrawerScene) => ?React.Element<*>;
style?: Style;
router: NavigationRouter;
};
/**

View File

@@ -81,6 +81,7 @@ class DrawerSidebar extends PureComponent<void, Props, void> {
navigation={this.props.navigation}
getLabel={this._getLabel}
renderIcon={this._renderIcon}
rotuer={this.props.router}
/>
</View>
);