Looks like the Floating label is not center either if We pass styles or we use the default values.
<FloatingLabelInput
placeholder="Enter a fruit name"
showErrorMessage={messages.showError}
value={value}
onChangeText={onChangeText}
containerStyles={containerStyle}
labelStyles={styles.labelStyle}
inputStyles={styles.inputStyle}
customLabelStyles={CUSTOM_LABEL_STYLE} />
<FloatingLabelInput
label="Login"
value={value}
onChangeText={nValue => setValue(nValue)}
customLabelStyles={CUSTOM_LABEL_STYLE}/>
const CUSTOM_LABEL_STYLE = {
fontSizeFocused: 12,
fontSizeBlurred: 16,
colorBlurred: 'grey',
colorFocused: 'grey',
leftFocused: 0,
leftBlurred: 0,
topFocused: 0,
topBlurred: 0,
};
container: {
height: 64,
borderWidth: 2,
borderRadius: 8,
alignContent: 'center',
paddingVertical: 8,
paddingHorizontal: 16
},
labelStyle: {
left: 0,
marginLeft: 8
},
inputStyle: {
color: 'black',
},