Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Update ReactNativeZoomableView.js #56

Merged
merged 1 commit into from
Jun 10, 2021

Conversation

kristijantomic
Copy link
Contributor

handles double tap to zoom to center of the the view

handles double tap to zoom to center of the  the view
@SimonErich SimonErich merged commit 012226b into DuDigital:master Jun 10, 2021
@SimonErich
Copy link
Contributor

SimonErich commented Jun 10, 2021

Thank you very much for your MR @kristijantomic .
Unfortunately I couldn't merge it directly, because I think zooming to center is not the default expected behavior of this.
I took your code however and implemented it with a new propery called doubleTapZoomToCenter that will take care of that.

So now you can have that exact behavior, but just have to use the doubleTapZoomToCenter prop on your component.

@SimonErich SimonErich mentioned this pull request Jun 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants