Answers for "react navigation get route name"

2

get current screen name react navigation

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

react native get route name

import { useNavigation, useRoute } from '@react-navigation/native';
const Route = useRoute();

console.log(Route);
// Object {
//  "key": "Home-rRl8EIxLOOm9rqd2N6RSZ",
//  "name": "Home",
//  "params": undefined,
// }
Posted by: Guest on August-09-2021

Code answers related to "react navigation get route name"

Code answers related to "Javascript"

Browse Popular Code Answers by Language