Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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,
// }
 
PREVIOUS NEXT
Tagged: #react #native #route
ADD COMMENT
Topic
Name
6+4 =