From bb07e404b2b413b900e2dcbb46563adcf098cc60 Mon Sep 17 00:00:00 2001 From: xXCHINNAXx Date: Mon, 11 Jan 2021 21:02:33 +0530 Subject: [PATCH] Update index.d.ts added type to initialIndex if not added showing error in typescript --- index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 112c474..f6c4835 100644 --- a/index.d.ts +++ b/index.d.ts @@ -4,7 +4,8 @@ import { StyleProp, ViewProps, ViewStyle } from 'react-native'; export interface CardStackProps { style?: StyleProp; secondCardZoom?: number; - loop?: boolean; + loop?: boolean; + initialIndex?: number; renderNoMoreCards?: () => React.ReactNode; disableTopSwipe?: boolean; disableBottomSwipe?: boolean; @@ -48,4 +49,4 @@ export interface CardProps { export class Card extends React.Component { constructor(props: CardProps); -} \ No newline at end of file +}