Fix drawer rendering wrong route (#46)

This commit is contained in:
Satyajit Sahoo
2017-01-28 00:44:43 +05:30
committed by GitHub
parent 11cb99d8f6
commit 1fa38c2af8

View File

@@ -30,7 +30,7 @@ class DrawerScreen extends PureComponent<void, Props, void> {
const { router, navigation, childNavigationProps } = this.props;
const { routes, index } = navigation.state;
const childNavigation = childNavigationProps[routes[index].key];
const Content = router.getComponentForState(navigation.state);
const Content = router.getComponentForRouteName(routes[index].routeName);
return (
<SceneView
screenProps={this.props.screenProps}