简体   繁体   中英

How to add properties in AndroidManifest in react native app built with expo?

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?

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"
    }
  }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM