I think this should work. Add onFocus as a prop for your TextInput . It is assumed that you have a state variable called text, and that TextInput takes its value from this state variable.
<TextInput ... onFocus= {() => this.setState({text : ''})} value={this.state.text}/>
Ginandi
source share