halilb / react-native-textinput-effects

Text inputs with custom label and icon animations for iOS and android. Built with react native and inspired by Codrops.
MIT License
2.99k stars 293 forks source link

How I can set the height and keep label center #148

Open wdospinal opened 1 year ago

wdospinal commented 1 year ago

Screenshot 2023-06-04 at 3 19 03 PM


  <Hoshi
    label={label}
    onChange={onChange}
    value={value}
    borderColor="transparent"
    labelStyle={
      !isFocused && value === '' ? styles.placeholder : styles.label
    }
    style={styles.input}
    onBlur={handleBlur}
    onFocus={handleFocus}
    height={32}
  />