Issue
I want the name of the current route or screen in react-navigation which I want to use inside if condition to make some changes.
Solution
You can catch it as the following code:
this.props.navigation.state.routeName
Answered By - Hussam Kurd
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.