react navigation get current route name from ref code example Example: get current screen name react navigation props.navigation.state.routeName