teslamotors / react-native-camera-kit

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

Pinch to zoom not working #651

Open Sfeeen opened 3 months ago

Sfeeen commented 3 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?