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

Support images?

Offen
#6 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
14
Forks
3
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.