Open imanshul opened 2 years ago
I'm trying to clear text by setting state to null or '', but it seems like it doesn't work.
<TextField autoCorrect={false} ref={reference => { this.reference = reference }} value={this.state.tempText ? this.state.tempText.toString() : null} onChangeText={(value) => this.setState({tempText: value})} title={'Name'}/>
I have tried this.reference.clear() as well but it also doesn't clear typed data.
material textfield version: 0.16.1
I'm trying to clear text by setting state to null or '', but it seems like it doesn't work.
<TextField autoCorrect={false} ref={reference => { this.reference = reference }} value={this.state.tempText ? this.state.tempText.toString() : null} onChangeText={(value) => this.setState({tempText: value})} title={'Name'}/>
I have tried this.reference.clear() as well but it also doesn't clear typed data.
material textfield version: 0.16.1