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.

Offset problem on Android keyboard with expo 37

See original GitHub issue

Hello everyone,

PROBLEM I am currently on react native (Expo) and when I updated my app from expo 35 to expo 37, I started to have padding or margin problems on my application (only on Android). These problems appear at the level of the keyboard, which creates an offset when it is opened. (The GIF (link) show you the offsets in neon green).

CODE <KeyboardAvoidingView style={{ width:'100%', height:'100%' }} behavior={'padding'} keyboardVerticalOffset={40}> <View style={{ width:'100%', height:'100%' }}> <GiftedChat/> </View> </KeyboardAvoidingView>

SOLUTIONS (Not working) (I have tried SOOOOO MANY solutions in internet :

  • eject expo and change the android:windowSoftInputMode="adjustResize"
  • Tried so many things inside the style code
  • Add tabBarOptions: { ... keyboardHidesTabBar: true }

VERSIONS

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hirbodcommented, May 28, 2020

The issue is the StatusBar. Did you set it to translucent on android? If yes, thats prob. breaking it for you (as it did for me). SDK 38, which is around the corner, should finally fix it, Try to disable translucent and it should work fine

0reactions
stale[bot]commented, Jun 28, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Views are moved by the Keyboard opening even when not ...
Creating a new SDK37 project, or upgrading an existing one, causes all views to be pushed up when the Android Keyboard appears on...
Read more >
keyboard pushing view up on react native expo - Stack Overflow
I took a look at the docs, but it says that Android handles it automatically. But it's not doing it :/ Here is...
Read more >
keyboardavoidingview not working on android - You.com | The ...
Summary of Issue. I am trying to lift a TextInput I have just a tiny bit above the keyboard using KeyboardAvoidingView. · Environment....
Read more >
Fix problems with Gboard - Android - Google Support
On your Android phone or tablet, open the Settings app Settings app . Tap System and then Languages and input. Tap Virtual keyboard...
Read more >
Example of React Native AutoComplete Input
I Tried running on expo but it is throwing some error. Is this code correct? Should I follow this for a general idea...
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