Skip to content

Commit 1fd9123

Browse files
committed
Add readOnly prop to LineEdit component
1 parent facacfe commit 1fd9123

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/LineEdit/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ interface LineEditProps extends ViewProps {
66
children?: string;
77
text?: string;
88
placeholderText?: string;
9+
readOnly?: boolean;
910
}
1011

1112
const setProps = (
@@ -19,6 +20,9 @@ const setProps = (
1920
},
2021
set placeholderText(text: string) {
2122
widget.setPlaceholderText(text);
23+
},
24+
set readOnly(isReadOnly: boolean) {
25+
widget.setReadOnly(isReadOnly);
2226
}
2327
};
2428
Object.assign(setter, newProps);

0 commit comments

Comments
 (0)