Save Video to CameraRoll React-Native

烂漫一生 提交于 2020-01-24 05:20:27

问题


It´s possible to save a video on React-Native using cameraRoll, for images with saveImageWithTag() it´s easy but i can´t found documentation for videos.


回答1:


It is very easy to save a video to CameraRoll, I did it with the following line of code.

 saveVideoToCameraRoll = async (uri) => {
await CameraRoll.saveToCameraRoll(uri, 'video')
}

NB: Obviously this function expects a uri or filePath of your video.



来源:https://stackoverflow.com/questions/35258483/save-video-to-cameraroll-react-native

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!