DuDigital / react-native-zoomable-view

A view component for react-native with pinch to zoom, tap to move and double tap to zoom capability.
MIT License
241 stars 112 forks source link

How to shift the view? #10

Closed billytyk closed 5 years ago

billytyk commented 5 years ago

Hi, I am reading the README but I do not quite understand how to shift the view. May I ask for help?

SimonErich commented 5 years ago

Hello @billytyk, can you give a quick explanation of what you mean by "shift the view"? If you zoom in you should be able to just move the view around. Right?

billytyk commented 5 years ago

@SimonErich I can zoom the view with pinch gesture but I cannot move the view around with only one finger. That means the center location of the view does not change. Is that normal? Any configuration I need to add to move the view? I am using your sample code in README to have a try.

billytyk commented 5 years ago

Oh I found that Image can be moved inside this react-native-zoomable-view, but I want the whole react-native-zoomable-view component can be also moved when I tap it and move it.

SimonErich commented 5 years ago

Can you post a bit of code, then I will have a look. Looks like it's not implemented correctly. Did you check the example: https://github.com/DuDigital/react-native-zoomable-view-example

SimonErich commented 5 years ago

@billytyk any update on this? Then I will take a look at it.

SimonErich commented 5 years ago

Closed, because no activity. If you still have this problem, please provide more information.