Skip to content

Commit 1fa38c2

Browse files
authored
Fix drawer rendering wrong route (react-navigation#46)
1 parent 11cb99d commit 1fa38c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/Drawer/DrawerScreen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DrawerScreen extends PureComponent<void, Props, void> {
3030
const { router, navigation, childNavigationProps } = this.props;
3131
const { routes, index } = navigation.state;
3232
const childNavigation = childNavigationProps[routes[index].key];
33-
const Content = router.getComponentForState(navigation.state);
33+
const Content = router.getComponentForRouteName(routes[index].routeName);
3434
return (
3535
<SceneView
3636
screenProps={this.props.screenProps}

0 commit comments

Comments
 (0)