forked from silentcloud/react-native-page-control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
55 lines (44 loc) · 1.13 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
declare interface Props {
/** Style for the current page indicator. */
currentIndicatorStyle?: object
/**
* The current page, shown by the receiver as a white dot.
*
* @default 0
*/
currentPage?: number
/**
* The tint color to be used for the page indicator.
*
* @default 'white'
*/
currentPageIndicatorTintColor?: string
/**
* Whether the page control is hidden when there is only one page.
*
* @default false
*/
hidesForSinglePage?: boolean
/**
* Size of the page indicator.
*
* @default { width: 8, height: 8 }
*/
indicatorSize?: { width: number, height: number }
/** Style for the page indicator. */
indicatorStyle?: object
/** The number of pages the receiver shows (as dots). */
numberOfPages: number
/** Callback when a specifc page indicator is pressed. */
onPageIndicatorPress?: (index: number) => void
/**
* The tint color to be used for the page indicator.
*
* @default 'gray'
*/
pageIndicatorTintColor?: string
/** Style for the page control container. */
style?: object
}
declare const PageControl: React.FC<Props>
export = PageControl