Text Input Enhance to fix clear text value in React Native Text Input
npm install react-native-text-input-enhance$ npm install react-native-text-input-enhance --save
clear() doesn't work from the second time#Issue
#18272
This issue can fix in the future with this fix
#18278
javascript
import RNTextInput from 'react-native-text-input-enhance';// TODO: What to do with the module?
hasRef={ref => (this.textInputRef = ref)} // Use "hasRef" instead of "ref"
onSubmitEditing={() => this.textInputRef2.focus()}
/>
(this.textInputRef2 = ref)} />
// You can call this fuction in some where to clear text
this.textInputRef.clear();
``---
This module is MIT licensed
---