Q30.webp
Kechizu76

Q30.webp

Kizspy Question: 30
(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 isFocused = usels Focused();
const routeName = isFocused? navigation.routeName : ";
  • Like
Reactions: Kiru

Thông tin

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

Share this media

Back
Bên trên Bottom