gpt4 book ai didi

javascript - React Native相机不返回完整文件路径

转载 作者:行者123 更新时间:2023-12-02 21:10:03 24 4
gpt4 key购买 nike

我刚刚安装了该软件包,并且正在尝试访问该图片,尽管我得到的目录没有该图像。

依赖关系

"react-native": "0.61.5",
"react-native-camera": "^3.22.0",

我的代码

takePicture = async () => {
if (this.camera) {
const options = {quality: 0.5, base64: true};
const data = await this.camera.takePictureAsync(options);
console.log(data.uri);
}
};

输出file:///data/user/0/********/cache/Camera但文件丢失

"deviceOrientation": 1, "height": 3456, "pictureOrientation": 1, "uri": "file:///data/user/0/***/cache/Camera", "width": 4608}

最佳答案

https://github.com/react-native-community/react-native-camera/releases/tag/v3.22.1

该问题已由创建者修复。 18 小时前..我不知道。

关于javascript - React Native相机不返回完整文件路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61123402/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com