Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native 如何在React Native中访问加载的图像?_React Native - Fatal编程技术网

React native 如何在React Native中访问加载的图像?

React native 如何在React Native中访问加载的图像?,react-native,React Native,我正在尝试使用共享图像,但它抛出了一个错误 [Error: Only local file URLs are supported (expected scheme to be 'file', got 'https'] 这个httpsURI是我的S3存储桶,这就是我获取上传媒体的方式。我使用来显示此媒体,我希望实现允许我在应用程序外共享这些图像的功能 当我使用时,这些图像被缓存/存储/加载到某个地方,我想知道如何才能找到它们?我试过了 <Image onLoad={() => con

我正在尝试使用共享图像,但它抛出了一个错误

[Error: Only local file URLs are supported (expected scheme to be 'file', got 'https']
这个
https
URI是我的S3存储桶,这就是我获取上传媒体的方式。我使用
来显示此媒体,我希望实现允许我在应用程序外共享这些图像的功能

当我使用
时,这些图像被缓存/存储/加载到某个地方,我想知道如何才能找到它们?我试过了

<Image onLoad={() => console.log(e)}
console.log(e)}

但是除了原始源URI是什么,这并没有告诉我任何事情。

您尝试过Image.prefetch(url)和Image.queryCache(url)吗?我尝试过,它只是告诉我图像在内存中。。但是如何访问该内存以获取
文件:/…
链接(例如,在android的情况下)?