Как получить текущее имя экрана в RACET 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