Offset problem on Android keyboard with expo 37
See original GitHub issueHello 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
- Nodejs version: 14.3.0
- React version: 16.9.0
- React Native version: https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz
- react-native-gifted-chat version: ^0.13.0
- Platform : Android
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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.