Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] When switching between inputs, the focused input bounces out of view #571

Open
subhyde opened this issue Sep 18, 2023 · 2 comments
Open

Comments

@subhyde
Copy link

subhyde commented Sep 18, 2023

Description

When the email field is selected, and i click on the password field the scrollview will scroll down appropriately, but bounces back up, which covers the entire password input

If I click on the password field first, the issue does not happen.

Example:

Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2023-09-18.at.16.47.25.mp4

Code snippet

  <KeyboardAwareScrollView extraScrollHeight={-insets.bottom}>
   {...input data}
  </KeyboardAwareScrollView>

note: Extra scroll height prop is just because I'm using a safe area view. Removing SafeAreaView does not fix the bug

@subhyde
Copy link
Author

subhyde commented Sep 18, 2023

the issue lies within the keyboardOpeningTime. If i do this i am able to bypass the weird bounce animation. However, im not exactly sure what the memory implications of using numbers.max_value are

 <KeyboardAwareScrollView extraScrollHeight={-insets.bottom} keyboardOpeningTime={Number.MAX_VALUE} >

@taha200
Copy link

taha200 commented Feb 15, 2024

Thank you @subhyde

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants