Closed
Description
Version
Tell us which versions you are using:
- react-native-router-flux [email protected]
- react-native v0.31.0
How can I set my custom backButton only one time? I'm using react-native-vector-icons and this is my custom backButton.
const BackButton =
<TouchableHighlight onPress={()=> Actions.pop()} style={{ width: 45, height: 45, position: 'absolute', top: 0, left: 0, justifyContent: 'center', alignItems: 'center'}} underlayColor="transparent" activeOpacity={0.3}>
<Icon name="arrow-back" size={30} color="white" />
</TouchableHighlight>;
I tried to apply renderBackButton to root scene, but doesn't work. Ex. navigationBarStyle and titleStyle work on root scene. If I have 100 scenes, adding renderBackButton method for each scene is very repetitive.
Thanks,
Alessandro.
Metadata
Metadata
Assignees
Labels
No labels