Code Monkey home page Code Monkey logo

Comments (5)

Sfeeen avatar Sfeeen commented on May 25, 2024

Update: I used another RN camera library that supports zoom and the issue remained. I don't know why this is but I guess its related to that I'm using a navigation drawer which makes use of gestures and maybe also overrides the pinch gesture.

I don't have a solution for now

from react-native-vision-camera.

ritathesaver avatar ritathesaver commented on May 25, 2024

how does your gesture look like?

from react-native-vision-camera.

Sfeeen avatar Sfeeen commented on May 25, 2024

The gesture of my drawer navigation is a swipe from left to right as can be seen in the animation on this page. The gesture I perform for the zoom is pinch to zoom, but I tried several possible movements though. I guess the problem lays in the native function 'SimpleOnScaleGestureListener' that maybe gets overriden by another library or gets block by something.

from react-native-vision-camera.

mrousavy avatar mrousavy commented on May 25, 2024

Maybe you have a view above your Camera that needs something like pointerEvents="none" to correctly let touches through.

Either way, not a VisionCamera bug 👍

from react-native-vision-camera.

Sfeeen avatar Sfeeen commented on May 25, 2024

Indeed that seemed to be the issue and pointerEvents="none" was the solution! 👍👍👍👍

from react-native-vision-camera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.