Professional Documents
Culture Documents
‣ FlatList
‣SectionList
‣ ScrollView
renderItem - Function - Nhận vào 1 hàm(callBackF) render giống hàm .map([callbackF]) es6.
keyExtractor - keyExtractor - Key để xác định khóa duy nhất cho mỗi phần tử.
horizontal - true, false - Sắp xếp phần tử theo chiều ngang (nếu true).
renderSectionFooter - callBackFunc({section}) - Key để xác định khóa duy nhất cho mỗi phần tử.
],
},
]
✦ Sử dụng icon
• Tham khảo document: https://github.com/oblador/react-native-vector-icons
• Sau khi cài đặt ta import 1 trong các thư viện font icon sau và sử dụng như
đoạn lệnh bên dưới
<Icon name='stepbackward' size={30} />
https://oblador.github.io/react-native-vector-icons/
pagingEnabled - true, false - Cho phép lật trang (theo chiều ngang).