2

I am trying to build a basic react native app with expo...The problem I am facing is that all the components are getting lifted when i try using the keyboard.. I searched for my problem on stack overflow and i found this answer which suggests changing

windowSoftInputMode="adjustResize"

in AndroidManifest.xml to this:

windowSoftInputMode="adjustPan"

But the problem is that I can't find AndroidManifest.xml in my expo react native app... How and where should I add this file?

E_net4
  • 27,810
  • 13
  • 101
  • 139
Pro
  • 445
  • 4
  • 14

1 Answers1

6

you can add it in app.json file or app.config.json under expo under android

read about softwarekeyboardlayoutmode in configratation file here

{
  "expo": {
    "name": "your app name",
    ...
    "android": {
      ...
      "softwareKeyboardLayoutMode" : "pan"
    }
  }
}
Ahmed Gaber
  • 3,384
  • 2
  • 12
  • 18