// Basic usage<SwipeCards />// Swipeable card<SwipeableCardindex={index}activeIndex={activeIndex}image={image}ref={cardRef}onSwipeRight={() => {liked.current += 1;}}onSwipeLeft={() => {disliked.current += 1;}}/>// Control buttons<View style={styles.buttonsContainer}><PressableScalestyle={styles.button}onPress={swipeLeft}><AntDesign name="close" size={32} color="white" /></PressableScale><PressableScalestyle={styles.button}onPress={reset}><AntDesign name="reload1" size={24} color="white" /></PressableScale><PressableScalestyle={styles.button}onPress={swipeRight}><AntDesign name="heart" size={32} color="white" /></PressableScale></View>// Swipe controls hookconst {activeIndex,refs,swipeRight,swipeLeft,reset} = useSwipeControls();
Learn Reanimated, Gesture Handler & Skia with Reanimate.dev
I value a lot your feedback! Help me improve by sharing your thoughts, suggestions, or reporting any issues you encounter. If you need assistance, send me an email at hello@reactiive.io