本文介绍了这是在sdk 39中使用expo裸流程在infoplist文件中添加字符串的方法吗?#ReactNative的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

{
  "expo": {
    "name": "Light",
    "slug": "Light",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "userInterfaceStyle": "automatic",
    "ios": {
      "userInterfaceStyle": "automatic",
      "bundleIdentifier": "com.ShivBaapYaadHai.Light",
      "buildNumber": "1.5.0",
      "infoPlist": {
        "NSCameraUsageDescription": "Enable Camera Acess so that you can record  Videos",
        "NSMicrophoneUsageDescription": "Enable Microphone Access so that you can start recording audio ",
        "NSPhotoLibraryUsageDescription": "Enable Camera Roll Access so that you can select Other Videos from Camera Roll"
      }
    },
    "android": {
      "userInterfaceStyle": "automatic",
      "package": "com.ShivBabaYaadHai.Light",
      "versionCode": 1
    },
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "web": {
      "favicon": "./assets/favicon.png"
    }
  }
}

这是我的app.json文件,所以这是在博览会工作流程中添加infoplist文件的一种方法,因为我需要在系统询问用户权限时添加一些字符串.

this is my app.json file so is this the way to add infoplist file in expo bare workflow ya some other way because I need to add some string when system ask permissions from user.

推荐答案

是的,您已经掌握了.这与设置 expo.ios.infoPlist 并请求类似权限的app.json相同.

Yes, you've got it. That is the same shape as my app.json that sets expo.ios.infoPlist and requests similar permissions.

这篇关于这是在sdk 39中使用expo裸流程在infoplist文件中添加字符串的方法吗?#ReactNative的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 17:54