teslamotors / react-native-camera-kit

A high performance, easy to use, rock solid camera library for React Native apps.
MIT License
2.49k stars 590 forks source link

Pinch to zoom not working #651

Closed Sfeeen closed 3 weeks ago

Sfeeen commented 8 months ago

I added the camera and enabled the zoom function but nothing happens when I pinch to zoom.

The props for the camera:

        zoomMode="on"
        zoom={zoom}
        maxZoom={15}
        onZoom={(e) => {
          console.log('zoom', e.nativeEvent.zoom);
          setZoom(e.nativeEvent.zoom);

No zoom event gets logged. I think the gesture is overriden by another library but I'm not sure. I use an navigation drawer which works also with a gesture to open the drawer. Any ideas on how to approach this problem?

scarlac commented 3 weeks ago

Can you try out v14.0.0 and see if it's still an issue? Zooming was vastly improved in v14.