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

Support images?

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

Mô tả

Is there a way to display an image in a card?

```
{
if (previousCards.length >= 10) {
// End of deck
return null;
} else if (first) {
return (

);
} else {
return `You swiped to the ${swipeDirection}. This is card #${
previousCards.length + 1
}.`;
}
}}
preventVerticalDragging={false}
onEndReached={() => console.log('end reached')}
onSwiped={() => console.log('card swiped')}
onSwipeAborted={() => console.log('swipe aborted')}
onSwipedLeft={() => console.log('left swipe')}
onSwipedRight={() => console.log('right swipe')}
onDragStart={() => console.log('begin drag')}
onDragEnd={() => console.log('finish drag')}
disableSwipeUp={false}
disableSwipeDown={false}>
{(card) =>
card === null ? (


You've reached the end of the deck, pal.


) : (

{card}

)
}

```

just leaves a blank card...

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.