We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent facacfe commit 1fd9123Copy full SHA for 1fd9123
src/components/LineEdit/index.ts
@@ -6,6 +6,7 @@ interface LineEditProps extends ViewProps {
6
children?: string;
7
text?: string;
8
placeholderText?: string;
9
+ readOnly?: boolean;
10
}
11
12
const setProps = (
@@ -19,6 +20,9 @@ const setProps = (
19
20
},
21
set placeholderText(text: string) {
22
widget.setPlaceholderText(text);
23
+ },
24
+ set readOnly(isReadOnly: boolean) {
25
+ widget.setReadOnly(isReadOnly);
26
27
};
28
Object.assign(setter, newProps);
0 commit comments