Skip to content

Commit

Permalink
fix: fixed file issue
Browse files Browse the repository at this point in the history
  • Loading branch information
abdemirza committed Nov 8, 2023
1 parent e8f38d2 commit c587186
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import android.os.Build;
import android.text.Layout.Alignment;
import android.text.TextPaint;
import android.util.Base64;
import android.util.Log;
import androidx.annotation.NonNull;
import com.facebook.react.bridge.Promise;
Expand All @@ -35,6 +34,7 @@
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Base64;
import java.util.List;

@ReactModule(name = LcdManagerModule.NAME)
Expand Down Expand Up @@ -189,7 +189,7 @@ public void base64ToBitmap(String base64String) {
);

try {
byte[] decodedImageBytes = Base64.decode(base64String, Base64.DEFAULT);
byte[] decodedImageBytes = Base64.getDecoder().decode(base64String);
Bitmap decodedBitmap = BitmapFactory.decodeByteArray(
decodedImageBytes,
0,
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": "imin-lcd-manager",
"version": "0.2.0",
"version": "0.2.2",
"description": "react-native module for imin lcd",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit c587186

Please sign in to comment.