Comments (7)
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. Typenumber || (Object => number)
shouldBounceOnMount
(default =true
) - To alert the user that swiping is possible, the first row can bounce on component mount. Typeboolean
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.
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.
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.
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.
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.
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.
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)
- Change Swiping Direction HOT 2
- Does it support Expo and TypeScript? HOT 2
- Define Types HOT 2
- Refactor to Native Animations (w/ Reanimated) HOT 1
- Refactor to Native Gesture Handling (w/ React Native Gesture Handler) HOT 1
- Does this library still work? HOT 2
- Property 'scrollToEnd' does not exist on type 'SwipeableFlatList<any>'.ts(2339) HOT 14
- shouldBounceOnMount alway true HOT 4
- Close the swipeable HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-swipeable-list.