We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a07a65c commit 1284786Copy full SHA for 1284786
Libraries/Components/TextInput/TextInput.js
@@ -1388,7 +1388,8 @@ const ExportedForwardRef: React.AbstractComponent<
1388
allowFontScaling = true,
1389
rejectResponderTermination = true,
1390
underlineColorAndroid = 'transparent',
1391
- readOnly = false,
+ readOnly,
1392
+ editable,
1393
...restProps
1394
},
1395
forwardedRef: ReactRefSetter<
@@ -1400,7 +1401,7 @@ const ExportedForwardRef: React.AbstractComponent<
1400
1401
allowFontScaling={allowFontScaling}
1402
rejectResponderTermination={rejectResponderTermination}
1403
underlineColorAndroid={underlineColorAndroid}
- editable={!readOnly}
1404
+ editable={readOnly !== undefined ? !readOnly : editable}
1405
{...restProps}
1406
forwardedRef={forwardedRef}
1407
/>
0 commit comments