From 351fe7fe49dd76dd7fe4268d44cc1da3c45dfb03 Mon Sep 17 00:00:00 2001 From: Josh Peterson Date: Fri, 30 Oct 2020 08:14:37 +0100 Subject: [PATCH] Load base64 encoded image in ImageReader (#3595) Same as this PR https://github.com/react-native-maps/react-native-maps/pull/2392 in AirMapMarker --- .../main/java/com/airbnb/android/react/maps/ImageReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/android/src/main/java/com/airbnb/android/react/maps/ImageReader.java b/lib/android/src/main/java/com/airbnb/android/react/maps/ImageReader.java index c01866d..b3be19b 100644 --- a/lib/android/src/main/java/com/airbnb/android/react/maps/ImageReader.java +++ b/lib/android/src/main/java/com/airbnb/android/react/maps/ImageReader.java @@ -89,7 +89,7 @@ public void setImage(String uri) { imp.setIconBitmapDescriptor(null); imp.update(); } else if (uri.startsWith("http://") || uri.startsWith("https://") || - uri.startsWith("file://") || uri.startsWith("asset://")) { + uri.startsWith("file://") || uri.startsWith("asset://") || uri.startsWith("data:")) { ImageRequest imageRequest = ImageRequestBuilder .newBuilderWithSource(Uri.parse(uri)) .build();