ajenkins / ajenkins/react-native-dynamic-deck-swiper

Recursively get next cards before swiping

Open
#4 3 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue help wanted
Dominant language
JavaScript
Stars
14
Forks
3
PR merge metrics
PR metrics pending

Description

If getNextCardData is slow it could slow down or block the swiping animations. To mitigate this, you could calculate the full tree of possible next cards (up to some max depth) ahead of time so the card data would be ready to go when you need it. This would basically be a depth-first-search or breadth-first-search of all possible cards based on every possible path/permutation of swipes. This could be a new prop (integer) that tells the component how many steps ahead it should compute the possible next cards.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.