intergalacticspacehighway / react-native-reanimated-zoom

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

feat: allow simultaneous gesture #16

Closed intergalacticspacehighway closed 1 year ago

intergalacticspacehighway commented 1 year ago

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

This PR adds a new prop simultaneousGesture to support external gestures.

Usage


const gesture = Gesture.Fling()
    .direction(Directions.DOWN)
    .onStart((e) => {
      console.log('fling should work ', e.x, e.y);
});

<Zoom simultaneousGesture={gesture}>
  <Image  />
</Zoom>