File tree 2 files changed +3
-4
lines changed
Libraries/Components/TextInput
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1388,7 +1388,8 @@ const ExportedForwardRef: React.AbstractComponent<
1388
1388
allowFontScaling = true ,
1389
1389
rejectResponderTermination = true ,
1390
1390
underlineColorAndroid = 'transparent' ,
1391
- readOnly = false ,
1391
+ readOnly,
1392
+ editable,
1392
1393
...restProps
1393
1394
} ,
1394
1395
forwardedRef : ReactRefSetter <
@@ -1400,7 +1401,7 @@ const ExportedForwardRef: React.AbstractComponent<
1400
1401
allowFontScaling = { allowFontScaling }
1401
1402
rejectResponderTermination = { rejectResponderTermination }
1402
1403
underlineColorAndroid = { underlineColorAndroid }
1403
- editable = { ! readOnly }
1404
+ editable = { readOnly !== undefined ? ! readOnly : editable }
1404
1405
{ ...restProps }
1405
1406
forwardedRef = { forwardedRef }
1406
1407
/>
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ exports[`TextInput tests should render as expected: should deep render when mock
4
4
<RCTSinglelineTextInputView
5
5
accessible = { true }
6
6
allowFontScaling = { true }
7
- editable = { true }
8
7
focusable = { true }
9
8
forwardedRef = { null }
10
9
mostRecentEventCount = { 0 }
@@ -34,7 +33,6 @@ exports[`TextInput tests should render as expected: should deep render when not
34
33
<RCTSinglelineTextInputView
35
34
accessible = { true }
36
35
allowFontScaling = { true }
37
- editable = { true }
38
36
focusable = { true }
39
37
forwardedRef = { null }
40
38
mostRecentEventCount = { 0 }
You can’t perform that action at this time.
0 commit comments