fix: add setValue for react-native-material-textfield (#40806)

This commit is contained in:
Marius Bologa 2019-12-04 18:10:50 -06:00 committed by Ron Buckton
parent 3c4ac92d62
commit d0cb7358d9
2 changed files with 5 additions and 0 deletions

View File

@ -103,6 +103,10 @@ export class TextField extends React.Component<TextFieldProps, any> {
* Get current restriction state
*/
isRestricted(): boolean;
/*
* Set current value
*/
setValue(value?: string): void;
}
export class OutlinedTextField extends TextField {}

View File

@ -13,6 +13,7 @@ export class Example extends React.Component {
this.textFieldRef.current.value();
this.textFieldRef.current.isFocused();
this.textFieldRef.current.isRestricted();
this.textFieldRef.current.setValue("Initial value");
}
}