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

Support images?

未關閉
#6 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
14
分支
3
PR 合併指標
PR 指標待擷取

描述

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...

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。