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

Height not restored to initial when keyboard closes in Android #538

Open
LechLee opened this issue Jan 22, 2025 · 1 comment · May be fixed by #539
Open

Height not restored to initial when keyboard closes in Android #538

LechLee opened this issue Jan 22, 2025 · 1 comment · May be fixed by #539

Comments

@LechLee
Copy link

LechLee commented Jan 22, 2025

I hope you're doing well! I’ve encountered an issue related to view height adjustment in the Android application when interacting with the keyboard.

Description:
In the Android application, when the keyboard is dismissed after being opened (e.g., while typing in an input field), the view height is not restored to its original state. This causes layout inconsistencies and can result in parts of the UI being inaccessible or improperly aligned.

Steps to Reproduce:
Launch the app on an Android device.
Navigate to a screen with an input field.
Tap on the input field to bring up the keyboard.
Close the keyboard by tapping the back button or clicking outside the input field.

I manage to debug the issue under the onVisualViewportChange on index.tsx

it seems like drawerRef.current.style.bottom is not deleted / restore back to original when the keyboard closes.

As attached is the video recording.

recording.mov
@LechLee
Copy link
Author

LechLee commented Jan 22, 2025

Opened PR for this,

#539

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

Successfully merging a pull request may close this issue.

1 participant