Hello every one, am trying to display some info in the headers but actually idk how to get the current screen name, if i call this.props.navigation.state.routeName it will show the route name used in my router and not the transitioned view.
my Router where i placed my FluidNavigator is Offers, and my FluidNavigator is:
const Navigator = FluidNavigator({
OffersList: { screen: OffersList },
OfferDetails: { screen: OfferDetails },
OfferImage: { screen: OfferImage },
}, {
style: {
minHeight: height,
width: width
},
defaultNavigationOptions: {
gesturesEnabled: true,
},
})
used as docs
<Navigator navigation={this.props.navigation} />
so i want to know how do i get the routeName inside my Navigator, ie OfferImage
Hello every one, am trying to display some info in the headers but actually idk how to get the current screen name, if i call this.props.navigation.state.routeName it will show the route name used in my router and not the transitioned view.
my Router where i placed my FluidNavigator is Offers, and my FluidNavigator is:
used as docs
so i want to know how do i get the routeName inside my Navigator, ie OfferImage