Is it possible clear text of the Input from an InputGroup?
You can use clear() function from react-native.
The clear method doesn't seem to be available on the NativeBase component.
I have to do this :
<Input ref={(ref) => { this.input = ref }} />
this.input._root.clear();
Am I missing something ? I use NativeBase > 2.0
@alexsegura did you do something like
if (this.input != null) {
// ...
}
? I tried and the clear function works
Facing the same issue
Most helpful comment
The
clearmethod doesn't seem to be available on the NativeBase component.I have to do this :
Am I missing something ? I use NativeBase > 2.0