Skip to content

KeyboardAvoidingView not animating with autofill fields #828

@LielAmar

Description

@LielAmar

Describe the bug
If I have a form wrapped in KeyboardAvoidingView (and also KeyboardStickyView) and say I have email and password in the form, then switching between the form fields takes a split second to load the autofill option (for example - passwords). This causes the screen to flicker and the components to "jump around" instead of animating.

Code snippet

<SafeAreaView>
  <KeyboardAvoidingView
    behavior={"padding"}
    keyboardVerticalOffset={20}
  >
    <View className="items-center justify-between h-full">
      <Logo />

      <View className="w-full flex flex-col gap-10">
        < TextInput
          placeholder="enter email address"
          keyboardType="email-address"
          autoFocus={true}
        />

        <TextInput
          placeholder="enter your password"
          keyboardType="default"
          secure={true}
        />

        <Button title="Sign Up" onPress={() => handleSignUp()} />
      </View>
    </View>
  </KeyboardAvoidingView>
</SafeAreaView>
<SafeAreaView>
  <View className="items-center justify-between h-full">
    <Logo />

    <KeyboardStickyView>
      <View className="w-full flex flex-col gap-10">
        < TextInput
          placeholder="enter email address"
          keyboardType="email-address"
          autoFocus={true}
        />
  
        <TextInput
          placeholder="enter your password"
          keyboardType="default"
          secure={true}
        />
  
        <Button title="Sign Up" onPress={() => handleSignUp()} />
      </View>
    </KeyboardStickyView>
  </View>
</SafeAreaView>

Repo for reproducing
Can't :(

To Reproduce
Steps to reproduce the behavior:

explained pretty well above...

Expected behavior
An animated effect instead of content jumping around

Screenshots

ScreenRecording_02-21-2025_22-18-22_1.mov

Smartphone (please complete the following information):

  • Desktop OS: [e.g. MacOS 15.3.1]
  • Device: [e.g. iPhone 15 Pro Max]
  • OS: [e.g. iOS 18.3.1]
  • RN version: [e.g. 0.76.7]
  • RN architecture: [e.g.new]
  • JS engine: [e.g. Hermes]
  • Library version: [e.g. 1.16.4]

Additional context
none

Metadata

Metadata

Assignees

Labels

KeyboardAvoidingView 🧪Anything related to KeyboardAvoidingView component🍎 iOSiOS specific🐛 bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions