File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Libraries/Components/TextInput Expand file tree Collapse file tree 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<
13881388 allowFontScaling = true ,
13891389 rejectResponderTermination = true ,
13901390 underlineColorAndroid = 'transparent' ,
1391- readOnly = false ,
1391+ readOnly,
1392+ editable,
13921393 ...restProps
13931394 } ,
13941395 forwardedRef : ReactRefSetter <
@@ -1400,7 +1401,7 @@ const ExportedForwardRef: React.AbstractComponent<
14001401 allowFontScaling = { allowFontScaling }
14011402 rejectResponderTermination = { rejectResponderTermination }
14021403 underlineColorAndroid = { underlineColorAndroid }
1403- editable = { ! readOnly }
1404+ editable = { readOnly !== undefined ? ! readOnly : editable }
14041405 { ...restProps }
14051406 forwardedRef = { forwardedRef }
14061407 />
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
44<RCTSinglelineTextInputView
55 accessible = { true }
66 allowFontScaling = { true }
7- editable = { true }
87 focusable = { true }
98 forwardedRef = { null }
109 mostRecentEventCount = { 0 }
@@ -34,7 +33,6 @@ exports[`TextInput tests should render as expected: should deep render when not
3433<RCTSinglelineTextInputView
3534 accessible = { true }
3635 allowFontScaling = { true }
37- editable = { true }
3836 focusable = { true }
3937 forwardedRef = { null }
4038 mostRecentEventCount = { 0 }
You can’t perform that action at this time.
0 commit comments