How to pass property id from Navigator.NavigationBar and how to access in RightButton of NavigationBarRouteMapper
How to pass property id from Navigator.NavigationBar and how to access in RightButton of NavigationBarRouteMapper
<Navigator.NavigationBar id={name} style={{backgroundColor: '#246dd5'}} routeMapper={NavigationBarRouteMapper} />
RightButton(route, navigator, index, nextState) {
return (
<TouchableOpacity style={{flex: 1, justifyContent: 'center'}}
onPress={() => navigator.parentNavigator.push({id: route.id})}>
<Text style={{color: 'white', margin: 10,}}>
{route.title}
);
},
I'm not familiar with the Navigator myself but I'd recommend asking a question on Stack Overflow and tag it with react-native: http://stackoverflow.com/questions/tagged/react-native
Many people from the community hang out on Stack Overflow and will be able to see your question. Using Stack Overflow for questions also helps us use Github issues to keep track of bugs that need to be fixed.