MMA301_-_FA_2024_-_FE_2972.webp
Mahito95

MMA301_-_FA_2024_-_FE_2972.webp

  • Media owner Mahito95
  • Ngày thêm
(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
  • Like
Reactions: Quangdung

Thông tin

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

Image metadata

Filename
MMA301_-_FA_2024_-_FE_2972.webp
File size
225.9 KB
Dimensions
1920px x 1012px

Share this media

Back
Bên trên Bottom