callstack / react-native-image-editor

A library providing an API for cropping images from the web and the local file system.
MIT License
366 stars 117 forks source link

fix: Allow to use base64 uri on Android #132

Closed retyui closed 5 months ago

retyui commented 5 months ago

Summary

Test plan

Try cropping the base64 image; it works nicely on iOS but crashes on Android.

      const base64Uri = 'data:image/jpg;base64, ...';
      ImageEditor.cropImage(base64Uri, {
        offset: {x: 0, y: 0},
        size: {width: 100, height:100},
      })