Choose the correct statements about how the DrawerLayoutAndroid component works in React Native:
4 phương ánCó giải thíchTrung bình
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 gồm hai ý: "The position where the drawer appears (e.g., from the left or right side of the screen) is determined by the drawerPosition prop." và "The content of the drawer (navigation drawer) is displayed using the renderNavigationView prop, which accepts a function to render the drawer content.". DrawerLayoutAndroid là component chỉ dùng trên Android, bọc nội dung chính của màn hình và cho phép kéo ra một ngăn kéo điều hướng từ mép màn hình; drawerPosition nhận giá trị left hoặc right để chọn mép xuất hiện, còn renderNavigationView là hàm trả về giao diện bên trong ngăn kéo. Phát biểu "always displayed by default on the screen" sai vì ngăn kéo mặc định đóng, chỉ hiện khi người dùng vuốt hoặc khi gọi openDrawer() qua ref. Phát biểu "The main content of the application is placed in the navigationView prop" sai vì nội dung chính phải là children trực tiếp của DrawerLayoutAndroid, còn nội dung ngăn kéo mới đi qua renderNavigationView.
Cùng chương 2
A View component can be nested inside other views. Select the correct option.Có lời giảiCâu hỏiWhich component is the foundation for all React Native components and provides the base functionality for rendering elements to the screen?Có lời giảiCâu hỏiWhich keyword is used to extend a component from a base component?Có lời giảiCâu hỏiCả 54 câu của chủ đề54 câu