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

Keyboard on Android? #23

Open
gregbrinker opened this issue Mar 16, 2022 · 2 comments
Open

Keyboard on Android? #23

gregbrinker opened this issue Mar 16, 2022 · 2 comments

Comments

@gregbrinker
Copy link

It seems like the <Portal /> view shrinks when the keyboard comes up - it isn't the full height of the screen, it's only what's visible. The opposite is the case for iOS.

Is this expected behavior?

@alburdette619
Copy link

On iOS I'm seeing a weird interaction where if the keyboard is shown & then a Portal is unmounted, the screen doesn't update & leaves a gap. On inspection, it shows that it is the screen & no portal UI is there.

@finnmerlett
Copy link

finnmerlett commented Aug 3, 2023

@gregbrinker android has it's own default "keyboard avoiding view", if you have android:windowSoftInputMode="adjustResize" in your android manifest. This is why guides often suggest you use a KeyboardAvoidingView with the behaviour prop conditionally set on iOS and left undefined (aka disabled) on android. This causes a whole host of inconsistencies, such as the portal shrinking when the keyboard comes up but only on android. My advice, remove this from your manifest.

Interestingly this native behaviour also seems to be removed if you show your app fully top-to-bottom aka underneath the navbar by doing NavigationBar.setPositionAsync("absolute").

See a good stack overflow answer on the topic for further reading

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

3 participants