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

Support images?

オープン
#6 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。