Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gesture Method: Stack refreshing back to the initial state after a valid swipe; cards[] modifying correctly #4

Open
pravaibh opened this issue Sep 18, 2018 · 1 comment

Comments

@pravaibh
Copy link

pravaibh commented Sep 18, 2018

Hi @lvaskuu,

I'm using gesture method, code is pretty much the same as your gesture method code.
After a "valid" swipe, for a moment the second card comes up and the card on the top of the stack disappears, but then the entire stack reverts back to the original state.

Observations on debugging: The changeCardsOrder() seems to be working fine, as the data in the cards[] is modified correctly as seen upon debugging. The stack is being built (through setState) with the correct cards[] too. Yet, the screen shows the originally loaded stack after a sec.

Any suggestions on what might be going wrong? Maybe you came across something like this while developing. Can paste in the code if you want.

@pravaibh pravaibh changed the title Gesture Method: Stack refreshing to the initial state, so the same card remains on top. Gesture Method: Stack refreshing back to the initial state after a valid swipe; cards[] modifying correctly Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant