I'm creating an app using Expo
to take picture, I'm already possible to save pictures to FileSystem.documentDirectory
, but this is not what I want.
我试图将图像保存到 Camera Roll
using code like this:
import { CameraRoll } from 'react-native';
...
...
await CameraRoll.saveToCameraRoll(photo.uri);
Run Code Online (Sandbox Code Playgroud)
但它返回一个警告我使用react-native-cameraroll
而不是react-native
. But as I see in the document of the react-native-cameraroll
, it's seems not supporting Expo
.
有没有办法将图像保存到相机胶卷中Expo
?
归档时间: |
|
查看次数: |
6762 次 |
最近记录: |