Answers for "react native get route name"

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 native get route name"

Code answers related to "Javascript"

Browse Popular Code Answers by Language