ajenkins / ajenkins/react-native-dynamic-deck-swiper
Recursively get next cards before swiping
Aperta
enhancement
good first issue
help wanted
- Lingua principale
- JavaScript
- Stelle
- 14
- Fork
- 3
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.