intergalacticspacehighway / react-native-reanimated-zoom

Component for zooming react native views. 🔎
MIT License
315 stars 19 forks source link

Add onZoomBegin and onZoomEnd props #17

Closed sregg closed 1 year ago

sregg commented 1 year ago

This adds a onZoomBegin and onZoomEnd props when isZoomed.value changes.

This could be useful to disable simultaneous gestures (e.g. fling to close) or to hide certain elements in the UI (e.g. next image button).

Helps with https://github.com/intergalacticspacehighway/react-native-reanimated-zoom/issues/15

intergalacticspacehighway commented 1 year ago

Awesome. Looks good! Thanks @sregg 🥳