mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 22:47:02 +08:00
Fix drawer rendering wrong route (#46)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user