How to set android:windowSoftInputMode = "adjustResize"in Android Manifest file?

#1

This is a common question.

You can’t change the Android Manifest file with Expo since the binary is already built but that option is already set in Expo. (source code: https://github.com/expo/expo/blob/0b4b044170b90b71074c7e0f52c4f41da020d8db/exponent-view-template/android/app/src/main/AndroidManifest.xml )

If you really want to edit it, you’d have to eject and mess with the native code yourself.

Mostly people want the “adjustResize” option set because they want to make it easier to deal with keyboards affecting views.

In the words of @notbrent:

Unfortunately there is some misinformation being spread around the react native community and i’m not quite sure where it comes from
There isn’t really a magic bullet where you can toggle some config and your views respond to keyboard gracefully

https://shift.infinite.red/avoiding-the-keyboard-in-react-native-56d05b9a1e81

Anyway, just posting here since this is a common question.

#2

To clarify: this is already set in Expo – android:windowSoftInputMode = “adjustResize” is set on all Expo apps

2 Likes
#3

Hello,

Is it again the case with lastest versions ?

Because react-native-gifted-chat not working correctly since SDK 19.

#4

We should be able to control that value via app.json in Android section. Right now it doesn’t seem to be working.

#5

set an android status bar color using https://docs.expo.io/versions/latest/guides/configuring-statusbar.html – the option doesn’t do anything unless you have an opaque status bar (it defaults to translucent in expo)

#6

Android keeps pushing up the footer when using the keyboard (Input) while iOS doesn’t. Is this something that Expo has on it’s radar?

#7

read this for more info: https://github.com/expo/expo/issues/1065