简体   繁体   English

如何在 React-native 中将图片从图库复制到应用程序的安装目录

[英]How to copy images from gallery to app’s installation directory in React-native

我想从图库中选择一个图像,然后使用 react-native 将该图像复制到当前正在运行的应用程序的安装目录中。

You can use React Native Image Picker to pick an image from Camera Roll or Gallery.您可以使用React Native Image Picker从相机胶卷或图库中选择图像。

See it's usage code here 在此处查看它的使用代码

To write any file into native file storage, you can use RNFS要将任何文件写入本机文件存储,您可以使用RNFS

See a basic example here在此处查看基本示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM