You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than using the getNextCardData prop, you could instead use a custom hook, maybe called useCard that returns similar information about the card. This is how I imagine it being used:
functionMySwiper(){const{ swipeDirection }=useCard();return(<DynamicSwiper><View><Text>You swiped to the {swipeDirection}</Text></View></DynamicSwiper>);}
The text was updated successfully, but these errors were encountered:
Rather than using the
getNextCardData
prop, you could instead use a custom hook, maybe calleduseCard
that returns similar information about the card. This is how I imagine it being used:The text was updated successfully, but these errors were encountered: