Skip to content

Commit

Permalink
fix: get bitmap from path
Browse files Browse the repository at this point in the history
  • Loading branch information
gevgasparyan committed Oct 29, 2020
1 parent 8c50a7b commit 783ea84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void detect(final ReadableMap options, @Nullable Callback failureCallback
String base64 = options.hasKey("base64") ? options.getString("base64") : "";

Bitmap bitmap = null;
if (path == "" && base64 != "") {
if (path != "" || base64 != "") {
try {
bitmap = getBitmapFromSource(path, base64);
} catch (Exception e) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rn-qr-generator",
"version": "1.1.3",
"version": "1.1.4",
"description": "React native QR Code generator",
"main": "index.js",
"types": "typings/index.d.ts",
Expand Down

0 comments on commit 783ea84

Please sign in to comment.