Answers for "how to clear text ibput after message sent react native"

0

how to clear text ibput after message sent react native

//you will need to retrieve the ref at your constructor using React.createRef:
//At constructor 
function: this.myTextInput = React.createRef();

//At render function:
<TextInput ref={this.myTextInput} />

//And then you can call
this.myTextInput.current.clear();
Posted by: Guest on October-01-2020

Code answers related to "how to clear text ibput after message sent react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language