Version: 5.1
List Modes
You have 3 options when choosing the list mode.
DEFAULTFLATLISTSCROLLVIEWMODAL
| Type | Default |
|---|---|
| string | FLATLIST |
Notes#
The FlatList component shouldn't be nested inside ScrollView or you'll come across the VirtualizedLists should never be nested inside plain ScrollViews warning.
If this happens to you and you only have a few items, consider using the SCROLLVIEW mode.
Otherwise you have to use the MODAL mode.
Change the default list mode#
You change the default list mode of the package globally.
Props#
flatListProps#
Adds native props for the FlatList.
| Type |
|---|
| FlatListProps |
scrollViewProps#
Adds native props for the ScrollView.
| Type |
|---|
| ScrollViewProps |
modalProps#
Adds native props for the Modal.
| Type |
|---|
| ModalProps |