[英]How to show Image from document directory inside Gallery App IOS?
I am working in react native and I have downloaded some image from the internet inside the Document directory App folder in IOS.我在 React Native 中工作,我已经从互联网上的 IOS 中的 Document 目录 App 文件夹中下载了一些图像。 Now, I also want this image to show in IOS native Photos/Gallery App.
现在,我还希望此图像显示在 IOS 原生照片/图库应用程序中。 Concern:
忧虑:
CameraRoll provides access to the local camera roll or photo library. CameraRoll提供对本地相机胶卷或照片库的访问。
CameraRoll.saveToCameraRoll(tag, [type]);
Saves the photo or video to the camera roll or photo library.将照片或视频保存到相机胶卷或照片库。
On Android, the tag must be a local image or video URI, such as "file:///sdcard/img.png".在 Android 上,标签必须是本地图像或视频 URI,例如“file:///sdcard/img.png”。
On iOS, the tag can be any image URI (including local, remote asset-library and base64 data URIs) or a local video file URI (remote or data URIs are not supported for saving video at this time).在 iOS 上,标签可以是任何图像 URI(包括本地、远程资产库和 base64 数据 URI)或本地视频文件 URI(目前不支持远程或数据 URI 来保存视频)。
Note:笔记:
Whenever save image to document directory also need to save that image to CameraRoll / Photolibrary每当将图像保存到文档目录时,也需要将该图像保存到CameraRoll / Photolibrary
React-native
camera roll
extension to store photos in specific album React-native
camera roll
扩展以将照片存储在特定相册中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.