Comments (13)
@alexbrillant @webraptor any update on swipe back animation. Would love to have it because excluding the back animation this library is perfect.
from react-native-deck-swiper.
I think you're missing the swipeBack callback function ... https://snack.expo.io/H1t_QvBJQ
Just opened the swiper code and looks like there's no verification if a callback method exists or not, it just calls the method
onSwipedCallbacks = (swipeDirectionCallback, swipedAllCards) => {
const previousCardIndex = this.state.firstCardIndex
this.props.onSwiped(previousCardIndex)
error here ---- >>> swipeDirectionCallback(previousCardIndex)
if (swipedAllCards) {
this.props.onSwipedAll()
}
}
You can either put an empty callback like in the snack above, or wait for the issue to be fixed in a later PR.
PS: @xavier-villelegier it be great if you could create a new issue with your repro above. thanks.
from react-native-deck-swiper.
@webraptor That worked, my bad I just misunderstood the docs on this function. Thanks a lot 👍
from react-native-deck-swiper.
is it fixed?
from react-native-deck-swiper.
from react-native-deck-swiper.
Does this occur because swipeDirectionCallback is not a function ?
from react-native-deck-swiper.
any updates on this issue?
from react-native-deck-swiper.
It is working fine for me. Perhaps you should give more details into what your error is.
from react-native-deck-swiper.
in my case it goes to previous card without animation. it also takes about two seconds to see the previous card.
for now, I ended up using jumpToCardIndex()
to go to the previous card.
from react-native-deck-swiper.
There's no swipeBack animation. If you check the readme, it is in the todo list: Swipe back to the previous card with a custom animation
from react-native-deck-swiper.
@alexbrillant Was it closed because it's fixed ? 🤔
from react-native-deck-swiper.
@xavier-villelegier yes, fixed a while ago... Still no animation though... But calling swipeBack puts the last swiped card back on top of the deck.
from react-native-deck-swiper.
@webraptor Mmh swipeBack
still doesn't work for me though, here is a snack repro.
Did I miss something ?
from react-native-deck-swiper.
Related Issues (20)
- Only renders 1 card out of more
- Default Background color prevents a linear gradient background HOT 2
- Disable bottom swipe just for first card HOT 1
- reRender HOT 5
- put more than one key
- Unable to change View styling with containerStyle HOT 3
- Play Video HOT 1
- Typescript:react-native-deck-swiper undefined is not an object (evaluation'card.image')
- Issues when using a draggable object on a card HOT 1
- Can't adjust when overlay label will appear on Android HOT 2
- Card be under of components when swiping
- TypeError: undefined is not an object (evaluating '_this.dimensionsChangeSubscription.remove')
- 🐛 Doesn't come back animatedly after dropping the card
- Changing the state of a component in the renderCard prop using the onTapCard prop. HOT 1
- Modal popup should render the same info that is being rendered onto the card HOT 1
- The swipe functionality does not work on the subsequent cards after swiping the first card. HOT 10
- swipeBack
- sorry. please delete this issue
- Double Tab?
- Speed up swipe back animation HOT 1
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-deck-swiper.