Kizspy Question: 30
(Choose 1 answer)
How can you retrieve the name of the current route using hooks in React Navigation?
A. const route = useRoute();
const routeName = route.name;
B. const navigation = useNavigation();
const routeName = navigation.state.routeName;
C. const navigationState = useNavigationState(state => state.routes[state.index].name);
D. const isFocused = usels Focused();
const routeName = isFocused? navigation.routeName : ";