MMA301_-_SU_2024_-_RE_2417.webp
V

MMA301_-_SU_2024_-_RE_2417.webp

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

Thông tin

Category
MMA301
Thêm bởi
Văn Đức1
Ngày thêm
Lượt xem
3,447
Lượt bình luận
19
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom