eXist-FraGGer / react-native-image-size

Use to get original image size (iOS + Android)
MIT License
32 stars 33 forks source link

Android build error: variable bitmap is already defined #21

Closed christianrank closed 1 year ago

christianrank commented 1 year ago

After upgrading the package, there is a build error on Android.

.../node_modules/react-native-image-size/android/src/main/java/com/existfragger/rnimagesize/RNImageSizeModule.java:62: error: variable bitmap is already defined in method getSize(String,Promise)
                Bitmap bitmap = BitmapFactory.decodeStream((InputStream) input);
                       ^
1 error

FAILURE: Build failed with an exception.
AlirezaHadjar commented 1 year ago

Same here!

and I can see why it's complaining.

Screenshot 2023-09-26 at 11 27 32 AM