Answers for "react native get current screen name"

1

how to get current screen name in react native

import {useRoute} from '@react-navigation/native';

const route = useRoute();
console.log(route.name);
Posted by: Guest on June-25-2021
2

get current screen name react navigation

props.navigation.state.routeName
Posted by: Guest on May-21-2020

Code answers related to "react native get current screen name"

Code answers related to "Javascript"

Browse Popular Code Answers by Language