这是在 sdk 39 中使用 expo 裸工作流在 infoplist 文件中添加字符串的方法吗?#ReactNative [英] is this the way to add string in infoplist file with expo bare workflow in sdk 39? #ReactNative

查看:23
本文介绍了这是在 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 文件,所以这是在 expo 裸工作流中添加 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.

推荐答案

是的,你明白了.这与我的 app.json 的形状相同,它设置 expo.ios.infoPlist 并请求类似的权限.

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆