MMA301_-_SU_2024_-_RE_2417.webp
V

MMA301_-_SU_2024_-_RE_2417.webp

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: ";
  • Like
Reactions: Quangdung

Thông tin

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

Share this media

Back
Bên trên Bottom