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

Android keyboard pushes UI up on Android 30+ #7477

Closed
tomgransden opened this issue Mar 10, 2022 · 16 comments
Closed

Android keyboard pushes UI up on Android 30+ #7477

tomgransden opened this issue Mar 10, 2022 · 16 comments

Comments

@tomgransden
Copy link

tomgransden commented Mar 10, 2022

🐛 Bug Report

On Android 30+, absolute positioned elements at the bottom of the screen are pushed up when the keyboard is visible. In older versions of React Native Navigation, the elements are covered by the keyboard.

Have you read the Contributing Guidelines on issues?

Yes

To Reproduce

Assuming the app has a text input at the top and an absolute positioned element at the bottom of the screen:

  1. Click the text input to open the Android keyboard

Expected behavior

The absolute positioned button at the bottom would be covered by the keyboard

Actual Behavior

The keyboard appears and absolute positioned elements get pushed up the screen

React Native Navigation version 7.23.1
7-23-1-android-31

React Native Navigation version 7.26.0
7-26-android-31

Your Environment

  • React Native Navigation version: 7.26.0
  • React Native version: 0.67.3
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Any build type, Android 30+ emulator/device

Reproducible Demo

https://github.com/tomgransden/RNNKeyboardBug

Are you willing to resolve this issue by submitting a Pull Request?

  • ✖️   Yes, I have the time, and I know how to start.
  • ✖️   Yes, I have the time, but I don't know how to start. I would need guidance.
  • ✅   No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.
@alan-nakagiri
Copy link

I've seen this same issue as well.

#7428 (comment)

@marf
Copy link

marf commented Mar 20, 2022

Same issue

@alan-nakagiri
Copy link

@guyca I always appreciate the work you do to maintain this critical library for a lot of us.

Any chance you are able to take a look into this in the near future?

@stale
Copy link

stale bot commented May 30, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

@stale stale bot added the 🏚 stale label May 30, 2022
@stale
Copy link

stale bot commented Jun 10, 2022

The issue has been closed for inactivity.

@stale stale bot closed this as completed Jun 10, 2022
@guyca guyca removed their assignment Jul 17, 2022
@ach5910
Copy link

ach5910 commented Jul 21, 2022

I am seeing the same issue, regardless of what I set my windowSoftInputMode to, it is treated like adjustResize and the keyboard moves all the content up.

@alan-nakagiri
Copy link

@guyca
We are still seeing an issue with softWindowResizeMode with Android 30 and the latest version of RNN 7.28.1. We were getting by before by staying on version RNN 7.23.1.

However we are attempting to update RN to 68 so we are also updating to RNN.

Is there any update on this issue being resolved?

@kabus202
Copy link

please reopen. I think those are related #7428 #7477 #7582 #7569 #7436

@vikrvm
Copy link

vikrvm commented Dec 12, 2022

Does anyone know a fix to this by chance?

@alwazqazi
Copy link

any update this still no workarounds are working. Keyboard Pushes the button upwards when coming from a previous screen which is ScrollView.

@SherifSamirr
Copy link

In your android/app/src/main/AndroidManifest.xml

Set android:windowSoftInputMode="adjustPan", after that rebuild your project to get the new changes

and it will work fine.

here is how your code should look like:

      <activity
        android:name=".MainActivity"
        ....
        android:windowSoftInputMode="adjustPan"
        ....
        >

@dprajapati1179
Copy link

Still facing the issue , ANyone has solution then please share

@marcshilling
Copy link

Setting android:windowSoftInputMode="adjustPan" has no effect, it just behaves the same way as adjustResize. This used to work with this library. I suspect it broke when I upgraded from 7.32.1 to 7.37.2. Issue should not be closed IMO.

@bumjin1013
Copy link

same here on 0.73.5

@IamMax279
Copy link

so it cannot be fixed, huh?

@shaysingh
Copy link

any update on this? still facing same issue on android.

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

No branches or pull requests