React nativo obtenha o nome da rota
import { useNavigation, useRoute } from '@react-navigation/native';
const Route = useRoute();
console.log(Route);
// Object {
// "key": "Home-rRl8EIxLOOm9rqd2N6RSZ",
// "name": "Home",
// "params": undefined,
// }
Lucas Juan