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
PainStaker0331 committed Oct 30, 2020
1 parent 2b815d4 commit c30e27b
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 c30e27b

Please sign in to comment.