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

Extra space in KeyboardAccessoryView for iPhone 12 Pro #80

Open
dhythm opened this issue Nov 26, 2021 · 1 comment
Open

Extra space in KeyboardAccessoryView for iPhone 12 Pro #80

dhythm opened this issue Nov 26, 2021 · 1 comment

Comments

@dhythm
Copy link

dhythm commented Nov 26, 2021

Hello,

I found strange behavior in iPhone 12 Pro.
It would be good for iPhone 8 (Touch ID model) but not work well for Face ID model.

iPhone 12 Pro
Simulator Screen Shot - iPhone 12 Pro - 2021-11-26 at 11 28 58

iPhone 8
Simulator Screen Shot - iPhone 8 - 2021-11-26 at 11 27 26

I use KeyboardAccessoryNavigation and pass avoidKeyboard and inSafeAreaView as props.
Then, accessoryHeight in KeyboardAccessoryView will be 45 for both devices.

When I put an offset -30tovisibleHeight` like

    const visibleHeight = accessoryHeight + (avoidKeyboard ? keyboardHeight : 0) - 30;

, then it looks good for both iPhone 12 and iPhone 8.

Is there any solution that I don't need to fix the lib? 🙏

@Arun-paramasivam
Copy link

Arun-paramasivam commented Apr 1, 2022

A possible solution for this issue is addressed here. Please check it.
#47 (comment)

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