(Choose 1 answer)
Given the following component using useNavigationState, what does currentRoute contain?
import { useNavigationState } from '@react-navigation/native';
function CurrentRouteComponent() {
const currentRoute = useNavigationState(state => state.routes[state.index].name);
return ( <Text>Current Route: {currentRoute}</Text>);
}
A. The index of the current route in the navigation stack
B. The parameters of the current route
C. The name of the current route
D. The state object of the current route
32