Skip to content

Commit 9327dd5

Browse files
sgnyMoOx
authored andcommitted
Add comment for VirtualizedList props not supported by FlatList (#500)
1 parent b364f2e commit 9327dd5

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎reason-react-native/src/components/FlatList.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ wip: true
55
---
66

77
```reason
8+
// VirtualizedList props data, getItem, getItemCount and getItemLayout
9+
// are not supported on FlatList
10+
// FlatList has its own data prop, specified as array(item)
11+
812
include VirtualizedListElement;
913
1014
type separatorComponentProps('item) = {

‎reason-react-native/src/components/FlatList.re‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// VirtualizedList props data, getItem, getItemCount and getItemLayout
2+
// are not supported on FlatList
3+
// FlatList has its own data prop, specified as array(item)
4+
15
include VirtualizedListElement;
26

37
type separatorComponentProps('item) = {

0 commit comments

Comments
 (0)