File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
13
13
NativeSyntheticEvent ,
14
14
Platform ,
15
15
ScrollView ,
16
+ ScrollViewProps ,
16
17
StyleSheet ,
17
18
Text ,
18
19
View ,
@@ -63,7 +64,7 @@ export type ScrollPickerProps<ItemT extends string | number> = {
63
64
// tried using ComponentType<ScrollViewProps & { ref: React.RefObject<ScrollView> }>
64
65
// but ScrollView component from react-native-gesture=handler is not compatible with this.
65
66
scrollViewComponent ?: any ;
66
- } ;
67
+ } & ScrollViewProps ;
67
68
68
69
export type ScrollPickerHandle = {
69
70
scrollToTargetIndex : ( val : number ) => void ;
@@ -256,6 +257,7 @@ const ScrollPicker: { <ItemT extends string | number>(props: ScrollPickerProps<I
256
257
onScrollEndDrag = { ( e : NativeSyntheticEvent < NativeScrollEvent > ) =>
257
258
onScrollEndDrag ( e )
258
259
}
260
+ { ...props }
259
261
>
260
262
{ header }
261
263
{ props . dataSource . map ( renderItem ) }
You can’t perform that action at this time.
0 commit comments