📜  反应原生防止屏幕旋转 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:34.033000             🧑  作者: Mango

代码示例1
If building your React Native apps with Expo then you can use the orientation field in your app.json file - for example:

{
  "expo": {
    "name": "My app",
    "slug": "my-app",
    "sdkVersion": "21.0.0",
    "privacy": "public",
    "orientation": "portrait"
  }
}