Version: 5.1
List Modes
You have 3 options when choosing the list mode.
DEFAULT
FLATLIST
SCROLLVIEW
MODAL
Type | Default |
---|---|
string | FLATLIST |
#
NotesThe 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 modeYou change the default list mode of the package globally.
#
PropsflatListProps
#
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 |