Coder Social home page Coder Social logo

When a touchable component (inside renderHeader) is pressed, snapTo() method doesn't work on Android. about react-native-reanimated-bottom-sheet HOT 4 CLOSED

osdnk avatar osdnk commented on July 28, 2024
When a touchable component (inside renderHeader) is pressed, snapTo() method doesn't work on Android.

from react-native-reanimated-bottom-sheet.

Comments (4)

jmacindoe avatar jmacindoe commented on July 28, 2024 1

I took a look into this and seem to have found the cause. The problem is that after pressing on a Touchable in the header, panMasterState transitions to State.FAILED, but snaps only run if it's State.END.

This is a work around which avoids the problem https://github.com/james-macindoe/react-native-gesture-handler/commit/bae1632334cd53ed720380c8ddecdfc89b70dce0

I don't know much about gesture handlers so I'm not sure if this is the correct fix or just a hack. Any suggestions @osdnk?

from react-native-reanimated-bottom-sheet.

roshangm1 avatar roshangm1 commented on July 28, 2024 1

This issue has been fixed after the merge of https://github.com/james-macindoe/react-native-gesture-handler/commit/bae1632334cd53ed720380c8ddecdfc89b70dce0 in react-native-gesture-handler. However, when using enabledInnerScrolling={false}, this issue exist. I will close this issue and create new issue for this.

from react-native-reanimated-bottom-sheet.

afshawnlotfi avatar afshawnlotfi commented on July 28, 2024 1

Still experiencing this problem with React native paper button

from react-native-reanimated-bottom-sheet.

FRizzonelli avatar FRizzonelli commented on July 28, 2024

@roshangm1 snapTo doesn't work with enabledInnerScrolling={false} as you stated. Where did you open the issue? This is a big problem :(

from react-native-reanimated-bottom-sheet.

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.