Fix ActiveScreen in custom navigation (#2354)

This commit is contained in:
Jan Peer Stöcklmair
2017-08-29 04:35:48 +02:00
committed by Matt Hamil
parent 8cd77cfad4
commit aa92bcb0dd

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} />