-
Notifications
You must be signed in to change notification settings - Fork 123
Open
Description
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:
return images.map((src, index) => {
let previewSrc = src;
if (src.startsWith("file")) {
// previewSrc = require(src);
previewSrc = src;
} else {
previewSrc = { src: "data:image/png;base64," + src + '"' };
}
return (
<Image
key={`image_${index}`}
style={styles.slideImage}
resizeMethod="resize"
{...{
preview: previewSrc,
uri: src,
}}
/>
Metadata
Metadata
Assignees
Labels
No labels