Answers for "react native navigation 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
1

react native navigation current screen

navigation.getState().routeNames[0] !== 'Rooms'
Posted by: Guest on April-11-2022

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language