File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/incubator/WheelPicker Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ export interface WheelPickerProps {
92
92
* Change the default (white) tint color of the fade view.
93
93
*/
94
94
faderProps ?: Omit < FaderProps , 'visible' | 'position' > ;
95
+ /**
96
+ * Props to be sent to the FlatList
97
+ */
98
+ flatListProps ?: Partial < FlatListProps < ItemProps > > ;
95
99
}
96
100
97
101
const WheelPicker = ( {
@@ -112,7 +116,8 @@ const WheelPicker = ({
112
116
initialValue = 0 ,
113
117
separatorsStyle,
114
118
testID,
115
- faderProps
119
+ faderProps,
120
+ flatListProps
116
121
} : WheelPickerProps ) => {
117
122
const scrollView = useRef < Animated . ScrollView > ( ) ;
118
123
const offset = useSharedValue ( 0 ) ;
@@ -317,6 +322,7 @@ const WheelPicker = ({
317
322
< View row centerH >
318
323
< View flexG >
319
324
< AnimatedFlatList
325
+ { ...flatListProps }
320
326
testID = { `${ testID } .list` }
321
327
listKey = { `${ testID } .flatList` }
322
328
height = { height }
You can’t perform that action at this time.
0 commit comments