Coder Social home page Coder Social logo

Comments (3)

Eyesonly88 avatar Eyesonly88 commented on July 28, 2024 13

I'd be happy with just onChange event that fires when the bottom sheet moves from one snap point to the other.

from react-native-reanimated-bottom-sheet.

osdnk avatar osdnk commented on July 28, 2024

Hello,
I find it a little bit tricky because this change is not a discrete change.
You know, it's quite difficult to asses when we actually change the index. IS it on start snapping? Or ending? Or when we start assuming that this interaction leads to the index's change?
I think you need to determine it on yourself using callbackNode. It has information about position and then you may get the information you want in a way you want. 😄

from react-native-reanimated-bottom-sheet.

maxschmeling avatar maxschmeling commented on July 28, 2024

I get why this is difficult because there are in-between states, but I wonder if something like onSnapLeave and onSnapComplete would be appropriate... so when dragging away from a snap you get the leave event and when it settles at a snap point, you get the completion event...

I know that may still not be trivial but it's a thought.

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.