Jak uzyskać bieżącą nazwę ekranu w React Native
import {useRoute} from '@react-navigation/native';
const route = useRoute();
console.log(route.name);
Wicked Walrus
import {useRoute} from '@react-navigation/native';
const route = useRoute();
console.log(route.name);
props.navigation.state.routeName