terrylinla / react-native-sketch-canvas

A React Native component for drawing by touching on both iOS and Android.
MIT License
692 stars 450 forks source link

Image rotation issue fixed on Samsung(S) devices. #169

Open mak12 opened 4 years ago

mak12 commented 4 years ago

While working on a project, we figured library wasn't working as expected on Samsung(S) devices i.e when we were trying to sketch on image images was being rotated on canvas, so I decided to fork and solve the issue using ExifInterface. I got the exact rotation of image and then rotated the bitmap that's going on canvas. We tested this code on multiple devices both android and iOS and is working fine.