how to know current screen using navigator react native code example Example: get current screen name react navigation props.navigation.state.routeName