diff --git a/index.d.ts b/index.d.ts index bd88f365..b7b9c766 100644 --- a/index.d.ts +++ b/index.d.ts @@ -74,7 +74,7 @@ declare module 'react-native-deck-swiper' { zoomFriction?: number; } - export default class Swiper extends React.Component> { + export default class Swiper extends React.Component & { children?: React.ReactNode | undefined }> { swipeLeft: (mustDecrementCardIndex?: boolean) => void; swipeRight: (mustDecrementCardIndex?: boolean) => void; swipeTop: (mustDecrementCardIndex?: boolean) => void;