Floating label is not resetting to the blurred state when clearing input on both ios and android.
native-base: 2.1.5
react: 16.0.0-alpha.12
react-native: 0.45.0
<Item floatingLabel light ref={item => { this.emailItem= item; }}>
<Label>Email</Label>
<Input
getRef={input => { this.emailInput = input; }}
returnKeyType='next'
keyboardType='email-address'
autoCapitalize='none'
autoCorrect={false}
onChangeText={email => this.setState({ email })}
onSubmitEditing={() => this.submit()}
value={this.state.email}
/>
</Item>
submit = () => {
//these do not reset the floating label
this.setState({email: ''});
this.emailInput._root.clear();
this.emailInput._root.blur();
//this.emailItem._inputRef.clear(); //is undefined
//this.emailItem._inputRef.blur(); //is undefined
}
Initial empty state:

Entering text:

After clear:

Expected clear() to reset floating label position (in the example, email label should look like password)
Also running into this issue. Have tried .clear() as above, as well as
this._TextInput._root.setNativeProps({text: ""});
@JoeNimble @lukecwilliams Did you check this with NativeBase 2.3.3?
@SupriyaKalghatgi still an issue for me using 2.3.3
@SupriyaKalghatgi still facing this issue using 2.3.3
@SupriyaKalghatgi still facing this issue using 2.3.3
Hi guys, any update on this? Would you be happy to accept a PR to address it?
@jribeiro Sure!
PR #1606
Works for this.setState({email: ''}); but not for this.emailInput._root.clear(); because the clear function doesn't bubble up to the NB Input wrapper.
Floating Label does not reset position when input is cleared, this is desired behavior
Closing this issue
Released with 2.5.0
Most helpful comment
Released with 2.5.0