how to get route in stack navigator code example Example: get current screen name react navigation props.navigation.state.routeName