This package lets you create a animated floating label text input for React Native.
npm install floating-label-input --save
This is fully customizable with following props.
FloatingLabelInput.propTypes = {
label: PropTypes.any.isRequired,
sourceColor: PropTypes.string,
targetColor: PropTypes.string,
fontColor: PropTypes.string,
labelSize: PropTypes.number
};
<FloatingLabelInput
label="Email"
value={this.state.email}
autoCapitalize="none"
autoCorrect={false}
onChangeText={value => (this.setState({ email: value }))}
/>
<FloatingLabelInput
label="Password"
secureTextEntry
autoCapitalize="none"
autoCorrect={false}
value={this.state.password}
onChangeText={value => (this.setState({ password: value }))}
/>
Feel free to Raise PR should you wish to contribute.