-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
43 lines (35 loc) · 819 Bytes
/
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
import {ViewStyle} from 'react-native';
export interface RatingProps {
/**
* State variable that will store the rating
*/
rating: number,
/**
* Function to set the rating which will be stored in your local state
*/
setRating: React.Dispatch<React.SetStateAction<undefined>>,
/**
* Max number of stars to show (Default 5)
*/
maxStars?: number,
/**
* Rating stars to show (Default 0)
*/
stars?: number,
/**
* Size of the stars
*/
size?: number,
/**
* Color of the stars
*/
color?: string,
/**
* If bordered stars are to be shown
*/
bordered?: boolean,
/**
* Callback Function to call after the rating is given
*/
onRating?: () => void,
}