eXist-FraGGer / react-native-image-size

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

build.gradle fix #5

Closed mralj closed 5 years ago

mralj commented 5 years ago

This fixes #4

Please note I have no experience in Android development whatsoever, I have suspected that issue described in #4 is due to build.gradle.

I have compared current version of build.gradle to one that FastImage has

After applying these changes I was able to build android app via:

  1. react-native run-android
  2. react-native run-android --variant="release"
  3. ./gradlew assembleRelease

I have tested this on 3 different Android devices (Google Pixel 3 XL, Samsung galaxy A(something) and some Sony Xperia) and everything worked 👌