react-native icon indicating copy to clipboard operation
react-native copied to clipboard

How to pass property id from Navigator.NavigationBar and how to access in RightButton of NavigationBarRouteMapper

Open prashanthmerugucs opened this issue 11 years ago • 1 comments

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}
); },

prashanthmerugucs avatar Sep 22 '15 08:09 prashanthmerugucs

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.

mkonicek avatar Sep 22 '15 10:09 mkonicek