Kizspy | Question: 45
(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 is Focused = uselsFocused();
const routeName = isFocused? navigation.routeName: ";