File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,14 @@ const Picker = (props: PropsWithChildren<PickerProps> & ForwardRefInjectedProps
54
54
pickerModalProps,
55
55
listProps,
56
56
value,
57
- editable,
58
57
getLabel,
59
58
getItemLabel,
60
59
getItemValue,
61
60
renderItem,
62
61
children,
63
62
migrate,
64
- migrateTextField
63
+ migrateTextField,
64
+ ...others
65
65
} = props ;
66
66
67
67
const [ selectedItemPosition , setSelectedItemPosition ] = useState ( 0 ) ;
@@ -125,7 +125,7 @@ const Picker = (props: PropsWithChildren<PickerProps> & ForwardRefInjectedProps
125
125
onDoneSelecting
126
126
] ) ;
127
127
128
- const textInputProps = TextField . extractOwnProps ( props ) ;
128
+ // const textInputProps = TextField.extractOwnProps(props);
129
129
const { paddings, margins, positionStyle} = modifiers ;
130
130
131
131
const modalProps : ExpandableOverlayProps [ 'modalProps' ] = {
@@ -208,7 +208,7 @@ const Picker = (props: PropsWithChildren<PickerProps> & ForwardRefInjectedProps
208
208
onPress = { onPress }
209
209
testID = { testID }
210
210
{ ...customPickerProps }
211
- disabled = { editable === false }
211
+ disabled = { props . editable === false }
212
212
>
213
213
{ renderPicker ? (
214
214
// @ts -expect-error TS throws a weird error, might be an issue with TS
@@ -218,7 +218,8 @@ const Picker = (props: PropsWithChildren<PickerProps> & ForwardRefInjectedProps
218
218
migrate = { migrateTextField }
219
219
customWarning = "RNUILib Picker component's internal TextField will soon be replaced with a new implementation, in order to start the migration - please pass to Picker the 'migrateTextField' prop"
220
220
ref = { forwardedRef }
221
- { ...textInputProps }
221
+ // {...textInputProps}
222
+ { ...others }
222
223
testID = { `${ testID } .input` }
223
224
containerStyle = { [ paddings , margins , positionStyle , containerStyle ] }
224
225
{ ...accessibilityInfo }
You can’t perform that action at this time.
0 commit comments