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

Recursively get next cards before swiping

オープン
#4 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement good first issue help wanted
主要言語
JavaScript
スター
14
フォーク
3
PR マージ指標
PR 指標を取得中

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。