Skip to content

Commit 5f57acd

Browse files
committed
Also consider editable in TextInput
1 parent 12be4aa commit 5f57acd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/core/src/components/TextInput.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const TextInput = React.forwardRef<NativeTextInput, TextInputProps>(
2020
changeTextDelay = 500,
2121
webShowOutline = true,
2222
style,
23-
disabled,
23+
disabled = false,
24+
editable = true,
2425
value,
2526
...rest
2627
},
@@ -39,7 +40,7 @@ const TextInput = React.forwardRef<NativeTextInput, TextInputProps>(
3940
testID="native-text-input"
4041
ref={ref}
4142
value={value}
42-
editable={!disabled}
43+
editable={!disabled && editable}
4344
style={[
4445
//@ts-ignore Web specific prop. Removes default blue outline that appears on the hidden TextInput
4546
Platform.OS === "web" && !webShowOutline ? { outlineWidth: 0 } : {},

0 commit comments

Comments
 (0)