diff --git a/android/src/main/java/com/dylanvann/fastimage/FastImageViewManager.java b/android/src/main/java/com/dylanvann/fastimage/FastImageViewManager.java index d2a123bee..818846b4e 100644 --- a/android/src/main/java/com/dylanvann/fastimage/FastImageViewManager.java +++ b/android/src/main/java/com/dylanvann/fastimage/FastImageViewManager.java @@ -8,6 +8,7 @@ import com.bumptech.glide.Glide; import com.bumptech.glide.Priority; +import com.bumptech.glide.load.engine.DiskCacheStrategy; import com.bumptech.glide.load.model.GlideUrl; import com.bumptech.glide.load.resource.drawable.GlideDrawable; import com.bumptech.glide.request.RequestListener; @@ -142,6 +143,7 @@ public void setSrc(ImageViewWithUrl view, @Nullable ReadableMap source) { Glide .with(view.getContext().getApplicationContext()) .load(glideUrl) + .diskCacheStrategy(DiskCacheStrategy.ALL) .dontTransform() .priority(priority) .placeholder(TRANSPARENT_DRAWABLE)