Hi,
I wanted to use Icon (react-native-vector-icons) instead of image in Navigation bar backButtonImage , has anyone tried this, or any alternate way to do this with the same behavior.
Thanks in advance.
const ionicon = (icon) => Platform.OS == 'ios' ? `ios-${icon}` : `md-${icon}`;
renderBackButton={(nav) => {
return nav.navigationState.index ? (
<TouchableOpacity onPress={Actions.pop}>
<Icon name={ionicon('arrow-back')} size={26} color='#FFFFFF' />
</TouchableOpacity>
) : null;
}}
https://github.com/oblador/react-native-vector-icons
<Icon.ToolbarAndroid />
It didn't work for me when i had the renderBackButton
in the root Scene.
But when i put it inside individual scenes, it works smoothly.
Most helpful comment