Fix ActiveScreen in custom navigation (#2354)

This commit is contained in:
Jan Peer Stöcklmair
2017-08-29 04:35:48 +02:00
parent 50d31fe73d
commit 38d75ef1fa

View File

@@ -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 (
<View style={styles.container}>
<CustomTabBar navigation={navigation} />