Jak wyczyścić tekst ibput po wysłaniu wiadomości 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();
Azad Kshitij