From 38d75ef1fa5ebd908b8f9a19e8b75233325bb03e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Peer=20St=C3=B6cklmair?= Date: Tue, 29 Aug 2017 04:35:48 +0200 Subject: [PATCH] Fix ActiveScreen in custom navigation (#2354) --- .../examples/NavigationPlayground/js/CustomTabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-navigation/examples/NavigationPlayground/js/CustomTabs.js b/packages/react-navigation/examples/NavigationPlayground/js/CustomTabs.js index 86b96d1c..af432fec 100644 --- a/packages/react-navigation/examples/NavigationPlayground/js/CustomTabs.js +++ b/packages/react-navigation/examples/NavigationPlayground/js/CustomTabs.js @@ -63,7 +63,7 @@ const CustomTabBar = ({ navigation }) => { const CustomTabView = ({ router, navigation }) => { const { routes, index } = navigation.state; - const ActiveScreen = router.getComponentForState(navigation.state); + const ActiveScreen = router.getComponentForRouteName(routes[index].routeName); return (