File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,10 @@ const Picker = (props: PropsWithChildren<PickerProps> & ForwardRefInjectedProps
93
93
placeholder : props . placeholder
94
94
} ) ;
95
95
96
- const onSelectedItemLayout = ( event : LayoutChangeEvent ) => {
96
+ const onSelectedItemLayout = useCallback ( ( event : LayoutChangeEvent ) => {
97
97
const y = event . nativeEvent . layout . y ;
98
98
setSelectedItemPosition ( y ) ;
99
- } ;
99
+ } , [ ] ) ;
100
100
101
101
const contextValue = useMemo ( ( ) => {
102
102
const pickerValue = ! migrate && typeof value === 'object' && ! _ . isArray ( value ) ? value ?. value : value ;
@@ -176,7 +176,6 @@ const Picker = (props: PropsWithChildren<PickerProps> & ForwardRefInjectedProps
176
176
testID ,
177
177
mode ,
178
178
selectedItemPosition ,
179
- enableModalBlur ,
180
179
topBarProps ,
181
180
cancelSelect ,
182
181
onDoneSelecting ,
@@ -187,10 +186,7 @@ const Picker = (props: PropsWithChildren<PickerProps> & ForwardRefInjectedProps
187
186
_onSearchChange ,
188
187
renderCustomSearch ,
189
188
listProps ,
190
- onShow ,
191
- pickerModalProps ,
192
- filteredChildren ,
193
- props
189
+ filteredChildren
194
190
] ) ;
195
191
196
192
if ( useNativePicker ) {
You can’t perform that action at this time.
0 commit comments