ajenkins / ajenkins/react-native-dynamic-deck-swiper
Recursively get next cards before swiping
Ouverte
enhancement
good first issue
help wanted
- Langage dominant
- JavaScript
- Étoiles
- 14
- Forks
- 3
- Métriques de merge des PR
- Métriques de PR en attente
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.