From 1fa38c2af85d27783549f01c8fec4e5ae32769ef Mon Sep 17 00:00:00 2001 From: Satyajit Sahoo Date: Sat, 28 Jan 2017 00:44:43 +0530 Subject: [PATCH] Fix drawer rendering wrong route (#46) --- src/views/Drawer/DrawerScreen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Drawer/DrawerScreen.js b/src/views/Drawer/DrawerScreen.js index d67c3e51..e79e05f3 100644 --- a/src/views/Drawer/DrawerScreen.js +++ b/src/views/Drawer/DrawerScreen.js @@ -30,7 +30,7 @@ class DrawerScreen extends PureComponent { 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 (