Skip to content

Commit

Permalink
Load base64 encoded image in ImageReader (#3595)
Browse files Browse the repository at this point in the history
Same as this PR react-native-maps/react-native-maps#2392 in AirMapMarker
  • Loading branch information
DavidGonzalezGutierrez authored Oct 30, 2020
1 parent a6af40e commit 1d7c349
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1d7c349

Please sign in to comment.