Cnilton / react-native-floating-label-input

A customizable React Native TextInput with its placeholder always shown. Includes masks, global styles, character count, and a bunch else.
MIT License
280 stars 58 forks source link

onPressIn not working in android #139

Closed shellord closed 1 year ago

shellord commented 1 year ago

OnPressIn prop works in ios but its not working in android.

<FloatingLabelInput
        label={label}
        value={value}
        onChangeText={onChangeValue}
        onPressIn={onPress}
        containerStyles={tw.style(
          'border-[1px] p-3 rounded-sm border-gray-300',
          isPressed && 'border-black',
          showError && 'border-red-500',
        )}
        editable={isEditable}
        animationDuration={100}
        onFocus={() => setIsPressed(true)}
        onBlur={() => setIsPressed(false)}
        isPassword={isPassword}
        darkTheme
      />
TravisHi commented 1 year ago

It works for me in android studio emulator. Can you give any more info?

Cnilton commented 1 year ago

@shellord any updates?