File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ import type {
28
28
} from 'ViewabilityHelper' ;
29
29
import type { Props as VirtualizedListProps } from 'VirtualizedList' ;
30
30
31
+ export type SeparatorsObj = {
32
+ highlight : ( ) => void ,
33
+ unhighlight : ( ) => void ,
34
+ updateProps : ( select : 'leading' | 'trailing' , newProps : Object ) => void ,
35
+ } ;
36
+
31
37
type RequiredProps < ItemT > = {
32
38
/**
33
39
* Takes an item from `data` and renders it into the list. Example usage:
@@ -58,11 +64,7 @@ type RequiredProps<ItemT> = {
58
64
renderItem : ( info : {
59
65
item : ItemT ,
60
66
index : number ,
61
- separators : {
62
- highlight : ( ) => void ,
63
- unhighlight : ( ) => void ,
64
- updateProps : ( select : 'leading' | 'trailing' , newProps : Object ) => void ,
65
- } ,
67
+ separators : SeparatorsObj ,
66
68
} ) => ?React . Element < any > ,
67
69
/**
68
70
* For simplicity, data is just a plain array. If you want to use something else, like an
You can’t perform that action at this time.
0 commit comments