File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
packages/core/src/components Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export interface TextInputProps extends NativeTextInputProps {
1010 webShowOutline ?: boolean ;
1111 onChangeTextDelayed ?: ( text : string ) => void ;
1212 changeTextDelay ?: number ;
13+ disabled ?: boolean ;
1314}
1415
1516const TextInput = React . forwardRef < NativeTextInput , TextInputProps > (
@@ -19,6 +20,7 @@ const TextInput = React.forwardRef<NativeTextInput, TextInputProps>(
1920 changeTextDelay = 500 ,
2021 webShowOutline = true ,
2122 style,
23+ disabled,
2224 value,
2325 ...rest
2426 } ,
@@ -37,6 +39,7 @@ const TextInput = React.forwardRef<NativeTextInput, TextInputProps>(
3739 testID = "native-text-input"
3840 ref = { ref }
3941 value = { value }
42+ editable = { ! disabled }
4043 style = { [
4144 //@ts -ignore Web specific prop. Removes default blue outline that appears on the hidden TextInput
4245 Platform . OS === "web" && ! webShowOutline ? { outlineWidth : 0 } : { } ,
You can’t perform that action at this time.
0 commit comments