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 (