alwx/react-native-photo-view

Support onMove event or a method to get the coordinates of visible area

Opened this issue · 3 comments

This is more of a feature request.
I need to know the size and coordinates of the visible area of the picture to crop it using ImageEditor.

onScale event already gives the coordinates of the visible area and the zoom ratio applied to the photo. However, if the user drags the photo to a new position, there is no way to know the new position of the image.

This could be solved by adding an onMove event, or by adding a method to the class that would return the zoom ratio and coordinates of the visible area.

@Fsarmento Have you found any solution for this yet?

Hi, I ended up using react-native-gesture-handler instead. You can check my example here

Hi, I really appreciate your reply. Thanks, will give it a try :)