Open oporter1 opened 3 years ago
@oporter1 did you ever figure this out? I'm running into the same issue.
@adamzolyak I wasn't, I did a work around that checks if it's a file and, if so, then we just display a regular image.
return images.map((src, index) => {
if (!src.startsWith("file")) {
return (
<ImageCached
key={`image_${index}`}
style={styles.slideImage}
resizeMethod="resize"
{...{
preview: { src: "data:image/png;base64," + src + '"' },
uri: src,
}}
/>
);
} else {
return (
<Image
source={{ uri: src }}
style={styles.slideImage}
key={`image_${index}`}
/>
);
}
});
}, [images]);
Hello,
I am looking to use the preview or remove the preview loading feature with local files. Is this possible? looking to do something like this: