diff --git a/packages/core/src/components/DeckSwiper/DeckSwiper.tsx b/packages/core/src/components/DeckSwiper/DeckSwiper.tsx index d6a8fe881..9c0267ef6 100644 --- a/packages/core/src/components/DeckSwiper/DeckSwiper.tsx +++ b/packages/core/src/components/DeckSwiper/DeckSwiper.tsx @@ -3,6 +3,8 @@ import { StyleProp, ViewStyle, StyleSheet, View } from "react-native"; import DeckSwiperComponent from "react-native-deck-swiper"; export interface DeckSwiperProps { + onStartSwipe?: () => void; + onEndSwipe?: () => void; onSwipe?: (index: number) => void; onSwipedLeft?: (index: number) => void; onSwipedRight?: (index: number) => void; @@ -22,6 +24,8 @@ export interface DeckSwiperProps { } const DeckSwiper = ({ + onStartSwipe, + onEndSwipe, onSwipe, onSwipedLeft, onSwipedRight, @@ -150,6 +154,10 @@ const DeckSwiper = ({ onSwipedDown?.(index); onSwipe?.(index); }} + //@ts-ignore Not typed, but is implemented and works + dragStart={onStartSwipe} + //@ts-ignore + dragEnd={onEndSwipe} /> );