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 摘要。