Q32.webp
soft_wind

Q32.webp

Kizspy Question: 32
(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

Thông tin

Category
MMA301
Thêm bởi
soft_wind
Ngày thêm
Lượt xem
2,406
Lượt bình luận
11
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom