Giter VIP home page Giter VIP logo

Comments (7)

esthor avatar esthor commented on August 18, 2024

Glad you like the library!

Yep, if I'm understanding your wants, both of those things are possible and easy!

Set these props:

maxSwipeDistance - Maximum distance to open to after a swipe. Type number || (Object => number)
shouldBounceOnMount (default = true) - To alert the user that swiping is possible, the first row can bounce on component mount. Type boolean

For the maxSwipeDistance, just set to the distance you want it to stop.

For shouldBounceOnMount just set it to false and it won't animate the initial bounce

from react-native-swipeable-list.

baesumin avatar baesumin commented on August 18, 2024

i mean, for example, even if maxSwipeDistance is set, while swiping, the swipe goes beyond the maxSwipeDistance and returns maxSwipeDistance when i release my hand.

It would be good if it does not swipe more than maxSwipeDistance during swipe.

from react-native-swipeable-list.

esthor avatar esthor commented on August 18, 2024

Oh, you want it to clamp at the maxSwipeDistance.

Hmm, do you have any examples of apps doing this or a use case that can help me understand? I might be so used to iOS UX patterns that this seems "unnatural" to not be able to pull/"stretch" a swipe and have it "fling" back with a sense of "inertia".

from react-native-swipeable-list.

baesumin avatar baesumin commented on August 18, 2024

yes i want it to clamp at the maxSwipeDistance. 😃
It would be nice to have an option to use clamp.

from react-native-swipeable-list.

github-actions avatar github-actions commented on August 18, 2024

This issue has not had activity for 45 days. It will be closed in 10 days if there continues to be no activity.

from react-native-swipeable-list.

brrradley avatar brrradley commented on August 18, 2024

I agree, the bouncing isn't great. Items are also swipeable to the left a little. It would be great if it worked like Apple's Messages.

Sadly because of this i can't use your module and will have to keep looking.

from react-native-swipeable-list.

github-actions avatar github-actions commented on August 18, 2024

This issue has not had activity for 45 days. It will be closed in 10 days if there continues to be no activity.

from react-native-swipeable-list.

Related Issues (10)

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.