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
anthony0506 committed Oct 30, 2020
1 parent 1374d69 commit 45a1b02
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 45a1b02

Please sign in to comment.