English 中文(简体)
缩略语
原标题:"Allow Expo Go to modify this photo" modal window

SDK FCCC/SBI/2008/2。

平台:安乐

当我在博览会项目中拍摄照片时,我不断获得这一模式窗口:

“在此处的影像描述”/

这一窗户每当我拍摄照片时都会展示,并在册子中保存。

我怎么能够摆脱这种状况? 之所以出现这种情况,是因为我没有具体说明一些许可?

这里是我的话。

{
  "expo": {
    "name": "myapp",
    "slug": "myapp",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/images/icon.png",
    "scheme": "myapp",
    "userInterfaceStyle": "automatic",
    "splash": {
      "image": "./assets/images/adaptive.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": ["**/*"],
    "ios": {
      "supportsTablet": true,
      "infoPlist": {
        "NSPhotoLibraryUsageDescription": "Allow $(PRODUCT_NAME) to access your photos.",
        "NSPhotoLibraryAddUsageDescription": "Allow $(PRODUCT_NAME) to save photos.",
        "NSCameraUsageDescription": "Allow $(PRODUCT_NAME) to use camera."
      }
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/images/adaptive.png",
        "backgroundColor": "#ffffff"
      },
      "permissions": [
        "android.permission.READ_EXTERNAL_STORAGE",
        "android.permission.WRITE_EXTERNAL_STORAGE",
        "android.permission.CAMERA",
        "android.permission.ACCESS_MEDIA_LOCATION",
        "true"
      ],
      "package": "com.example"
    }
  }
}
问题回答

我也没有得到<编码>app.json的许可,但我认为我确实有工作关系。

我在你的代码中进行的猜测是:MediaLibrary.createAlbumAsyncMediaLibrary.addAssets ToAlbumAsync和通过false

如果你通过<代码>true来履行这些职能,这些档案就会被复制,而且不会被移转或修改,我想这会造成人满为患。 如果你愿意,你可以使用<代码>expo-file-system删除原始档案,因此你没有重复数据。

See my answer to a similar question with sample code here: https://stackoverflow.com/a/76492705/22085168

希望是有用的!





相关问题
HandleClick not being recognized as a prop

I m trying to get my menu to show when I click the sidebar, but I m getting an error "react-dom.development.js:86 Warning: React does not recognize the handleClick prop on a DOM " import { ...

Is there an equivalent to localStorage in React Native?

I d like to implement the equivalent to the javascript localStorage in my React Native app. But I m unsure how to set. To function how I want it to, I would like the localStorage to be stored every ...

Video Calling in Expo React Native Application

I am building a React Native Application using Expo and I want to integrate a 1:1 video calling functionality in the app. From what I have researched so far on the topic is that I can use SDKs of ...

热门标签