mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
fix: add setValue for react-native-material-textfield (#40806)
This commit is contained in:
parent
3c4ac92d62
commit
d0cb7358d9
@ -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 {}
|
||||
|
||||
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user