Skip to content

Commit 8eadb45

Browse files
feat: Add readOnly prop to TextInput docs and deprecate editable
1 parent 47d6a70 commit 8eadb45

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/textinput.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,8 @@ When `false`, if there is a small amount of space available around a text input
303303

304304
### `editable`
305305

306+
> **Deprecated.** Use [`readOnly`](textinput#readonly) instead.
307+
306308
If `false`, text is not editable. The default value is `true`.
307309

308310
| Type |
@@ -625,6 +627,16 @@ The text color of the placeholder string.
625627

626628
---
627629

630+
### `readOnly`
631+
632+
If `true`, text is not editable. The default value is `false`.
633+
634+
| Type |
635+
| ---- |
636+
| bool |
637+
638+
---
639+
628640
### `returnKeyLabel` <div class="label android">Android</div>
629641

630642
Sets the return key to the label. Use it instead of `returnKeyType`.

0 commit comments

Comments
 (0)