Skip to content

Commit 1e3e1b2

Browse files
author
Vijay Sapkota
authored
Merge pull request #397 from wcandillon/patch-1
Add typescript definition file
2 parents 18b4e12 + efc76c6 commit 1e3e1b2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

index.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
declare module "react-native-swiper" {
2+
export interface SwiperProps {
3+
style?: React.ViewStyle;
4+
showsButtons?: boolean;
5+
horizontal?: boolean;
6+
pagingEnabled?: boolean;
7+
showsHorizontalScrollIndicator?: boolean;
8+
showsVerticalScrollIndicator?: boolean;
9+
bounces?: boolean;
10+
scrollsToTop?: boolean;
11+
removeClippedSubviews?: boolean;
12+
automaticallyAdjustContentInsets?: boolean;
13+
showsPagination?: boolean;
14+
loadMinimal?: boolean;
15+
loadMinimalSize?: boolean;
16+
loadMinimalLoader?: boolean;
17+
loop?: boolean;
18+
autoplay?: boolean;
19+
autoplayTimeout?: boolean;
20+
autoplayDirection?: boolean;
21+
index?: number;
22+
renderPagination?: (index: number, total: number, swiper: Swiper) => JSX.Element;
23+
dotStyle?: React.ViewStyle;
24+
activeDotStyle?: React.ViewStyle;
25+
paginationStyle?: React.ViewStyle;
26+
dotColor?: string;
27+
activeDotColor?: string;
28+
}
29+
export default class Swiper extends React.Component<SwiperProps, any>{}
30+
}

0 commit comments

Comments
 (0)