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

Recursively get next cards before swiping

Đang mở
#4 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement good first issue help wanted
Ngôn ngữ chính
JavaScript
Star
14
Fork
3
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.