title: Clear btn in Text input is not working well in android devices
body: <p>I've a btn that clears the text in input which works when the button is touched. But the problem is that the text previously inputted also appear when new text is inputted. How can I solve this problem?</p>
  
  <p>Code: </p>
  
  <pre><code>&lt;View style={styles.textInputStyle}&gt;
  
      &lt;TextInput onChangeText={(text) =&gt; this.setState({searchText: text}, () =&gt; {
                     this.state.searchText.length &gt; 1 ? this._getSearchedData() : null
                 })}
                 value={this.state.searchText}
                 placeholder='Search restaurant or cuisine'
      /&gt;
  
      &lt;TouchableOpacity onPress= {() =&gt; this.setState({searchText: ''})}&gt;
          &lt;Icon name="md-close-circle" style={{color: 'gray', fontSize: 15,}}/&gt;
      &lt;/TouchableOpacity&gt;
  
  &lt;/View&gt;
  </code></pre>