Evaluate the best navigator for an app with settings, profile, and help center accessible from any screen.
4 phương ánCó giải thích
Các phương án trả lời
Chọn một phương ánLời giảiChọn phương án để mở
Đáp án đúng: "Drawer Navigator". Cài đặt, hồ sơ và trung tâm trợ giúp là những khu vực toàn cục, ít dùng nhưng phải với tới được từ bất kỳ màn hình nào; Drawer Navigator đặt chúng trong một menu trượt từ cạnh màn hình, luôn mở được bằng thao tác vuốt hoặc nút menu mà không chiếm chỗ cố định. "Bottom Tab Navigator" hợp với vài khu vực chính dùng thường xuyên, thanh tab chiếm chỗ cố định ở đáy và không hợp cho các mục phụ như trợ giúp. "Stack Navigator" chỉ quản lý chuỗi màn hình đi tới và quay lại, không cho truy cập trực tiếp từ mọi nơi. "Inline Navigator" không phải navigator có trong React Navigation.
Cùng chương 5
Consider the following component using useIsFocused and useEffect. What will be the behavior if the component is initially unfocused and then gets focused?
import React, { useEffect } from 'react';
import { Text } from 'react-native';
import { useIsFocused } from '@react-navigation/native';
function ProfileScreen() {
const isFocused = useIsFocused();
useEffect(() => {
if (isFocused) {
console.log('ProfileScreen is now focused');
}
}, [isFocused]);
return <Text>Profile Screen</Text>;
}Có lời giảiCâu hỏiWith hook in React Navigation, what will happen if you call useFocusEffect inside a functional component but provide an empty dependency array?Có lời giảiCâu hỏiIn React Navigation, which hook should you use to get access to route parameters inside a functional component?Có lời giảiCâu hỏiCả 24 câu của chủ đề24 câu