question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android keyboard avoid issue

See original GitHub issue

Environment

System: OS: macOS 10.14.6 CPU: (12) x64 Intel® Core™ i9-8950HK CPU @ 2.90GHz Memory: 1.61 GB / 32.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node Yarn: 1.16.0 - ~/.nvm/versions/node/v10.15.3/bin/yarn npm: 6.9.2 - ~/.nvm/versions/node/v10.15.3/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3 Android SDK: API Levels: 26, 28 Build Tools: 28.0.3 System Images: android-28 | Google Play Intel x86 Atom IDEs: Android Studio: 3.4 AI-183.5429.30.34.5452501 Xcode: 10.3/10G8 - /usr/bin/xcodebuild npmPackages: react: 16.8.6 => 16.8.6 react-native: 0.60.5 => 0.60.5 npmGlobalPackages: react-native-cli: 2.0.1

Platforms

Android

Versions

“react-native-modal”: “^11.3.1”

Description

On Android, keyboardAvoid pushes the entire Modal out of view under the following conditions

Modal coverScreen Component fullscreen

Reproducible Demo

See gif

rn-modal-android-keyboard

or see repo

https://github.com/jimji1005/rn60-rn-modal-android-keyboard-test

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

16reactions
tomskopekcommented, Mar 7, 2022

I came across this issue while dealing with a similar issue for the vanilla react native Modal component (not this library). Setting statusBarTranslucent to true on the Modal seems to work:

https://reactnative.dev/docs/modal#statusbartranslucent-android

Maybe it will help someone

12reactions
aniruddhashevlecommented, May 15, 2020

Finally, I figured out the reason for this. I observed that, when the StatusBar is not hidden, then this issue occurs on Android. On iOS, there isn’t any problem anyways.

If I make StatusBar hidden, this issue resolves. <StatusBar hidden />

So whenever I open up a modal, I hide the StatusBar.

Another solution would be: https://github.com/facebook/react-native/issues/7474#issuecomment-288814366

Issue added in react-native: https://github.com/facebook/react-native/issues/13000

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android: How do I prevent the soft keyboard from pushing my ...
I was able to avoid my bottom row of buttons getting pushed up by the soft keyboard by setting android:isScrollContainer="false" on the ScrollView...
Read more >
How To Deal with Android Keyboard Not Working Properly
Android phone keyboard not working ? Here are some of the simple yet ... Apps > Manage apps > Google Keyboard (or the...
Read more >
Top 9 Ways to Fix Keyboard Typing Lag on Android
Top 9 Ways to Fix Keyboard Typing Lag on Android · 1. Avoid Custom Themes · 2. Decrease Key Long Press Delay Duration...
Read more >
How To FIX Android Keyboard Not Working! (2021) - YouTube
GET SUPER CHEAP PHONES HERE: https://cheapphones.coMY MUSIC: https://soundcloud.com/SimpleAlpacaSUB TO MY SECOND CHANNEL!
Read more >
Certain keys not getting pressed after android update #fix
how to fix android keyboard not working | Certain keys not getting pressed after android update #fixLink ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found