@@ -13,7 +13,11 @@ type renderItemProps('item) = {
1313 "item": 'item,
1414 "index": int,
1515 "section": section('item),
16- // "separators": TODO
16+ "separators": {
17+ .
18+ "highlight": unit => unit,
19+ "unhighlight": unit => unit,
20+ },
1721}
1822and section('item) = {
1923 .
@@ -26,26 +30,36 @@ and section('item) = {
2630and renderItemCallback('item) = renderItemProps('item) => React.element
2731and renderSectionHeaderProps('item) = {. "section": section('item)}
2832and renderSectionHeaderCallback('item) =
29- renderSectionHeaderProps('item) => React.element;
33+ renderSectionHeaderProps('item) => React.element
34+ and separatorProps('item) = {
35+ .
36+ "highlighted": bool,
37+ "leadingItem": option('item),
38+ "leadingSection": option(section('item)),
39+ "section": section('item),
40+ "trailingItem": option('item),
41+ "trailingSection": option(section('item)),
42+ };
3043
3144[@react.component] [@bs.module "react-native"]
3245external make:
3346 (
3447 ~ref: ref=?,
3548 // VirtualizedSectionList props
36- ~sections: array(section( 'item)) ,
37- ~stickySectionHeadersEnabled: bool =?,
49+ ~_ItemSeparatorComponent: separatorProps( 'item) => React.element=? ,
50+ ~_SectionSeparatorComponent: separatorProps('item) => React.element =?,
3851 ~renderItem: renderItemCallback('item),
39- ~renderSectionHeader: renderSectionHeaderCallback('item)=?,
4052 ~renderSectionFooter: renderSectionHeaderCallback('item)=?,
41- // @todo support components too (only?)
42- ~_SectionSeparatorComponent: React.element=? ,
43- ~_ItemSeparatorComponent: React.element =?,
53+ ~renderSectionHeader: renderSectionHeaderCallback('item)=?,
54+ ~sections: array(section('item)) ,
55+ ~stickySectionHeadersEnabled: bool =?,
4456 // VirtualizedList props
4557 ~_CellRendererComponent: VirtualizedList.cellRendererComponent('item)=?,
46- ~_ListEmptyComponent: React.element=?,
47- ~_ListFooterComponent: React.element=?,
48- ~_ListHeaderComponent: React.element=?,
58+ ~_ListEmptyComponent: unit => React.element=?,
59+ ~_ListFooterComponent: unit => React.element=?,
60+ ~_ListFooterComponentStyle: Style.t=?,
61+ ~_ListHeaderComponent: unit => React.element=?,
62+ ~_ListHeaderComponentStyle: Style.t=?,
4963 ~debug: bool=?,
5064 // ~enableVirtualization: bool=?, // not working, disableVirtualization?
5165 // ~data: 'data, // any collection of 'item
@@ -133,7 +147,7 @@ external make:
133147 ~snapToInterval: float=?,
134148 ~snapToOffsets: array(float)=?,
135149 ~snapToStart: bool=?,
136- ~stickyHeaderIndices: list (int)=?,
150+ ~stickyHeaderIndices: array (int)=?,
137151 ~zoomScale: float=?,
138152 // View props
139153 ~accessibilityComponentType: [@bs.string] [
0 commit comments