-
-
Notifications
You must be signed in to change notification settings - Fork 63
Description
Hello, here is code of input
<FloatingLabelInput
inputStyles={{
fontFamily: platform.fontTextFamily,
color: error === false ? platform.brandDarkGray : 'red',
}}
label={placeholder}
labelStyles={{fontFamily: platform.fontTextFamily}}
showCountdownStyles={{fontFamily: platform.fontTextFamily}}
isPassword
togglePassword={false}
value={valueX}
autoCorrect={false}
autoCapitalize="none"
showCountdownStyles={{
fontFamily: platform.fontTextFamily,
}}
containerStyles={
error === false
? styles.containerStyleInput
: styles.containerStyleInputError
}
onChangeText={onSubmit}
customLabelStyles={{
colorBlurred: error === false ? platform.brandDarkGray : 'red',
colorFocused: error === false ? platform.brandDarkGray : 'red',
}}
customShowPasswordComponent={
<Icon
name="eye-off-outline"
fill={error === false ? platform.brandPrimary : 'red'}
width={platform.twentyScale}
height={platform.twentyScale}
/>
}
customHidePasswordComponent={
<Icon
name="eye-outline"
fill={error === false ? platform.brandPrimary : 'red'}
width={platform.twentyScale}
height={platform.twentyScale}
/>
}
leftComponent={
<Icon
name="lock-outline"
fill={error === false ? platform.brandPrimary : 'red'}
width={platform.twentyScale}
height={platform.twentyScale}
/>
}
animationDuration={150}
/>
