-
-
Notifications
You must be signed in to change notification settings - Fork 99
/
index.d.ts
45 lines (38 loc) · 1.05 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
export type AnimatedLoaderProps = {
/**
* Controls the visibility of the loader.
* @defaultValue false
*/
visible?: boolean
/**
* Changes the color of the overlay.
*/
overlayColor?: string
/**
* The source of animation. Can be referenced as a local asset by a string, or remotely with an object with a uri property, or it can be an actual JS object of an animation, obtained (for example) with something like `require('../path/to/animation.json')`.
*/
source: object | string | { uri: string }
/**
* The speed the animation will progress.
* @defaultValue 1
*/
speed?: number
/**
* A boolean flag indicating whether or not the animation should loop.
* @defaultValue true
*/
loop?: boolean
/**
* Changes animation on show and hide loader's view.
*/
animationType?: any
/**
* The style to be applied to the Lottie.
*/
animationStyle?: import('react-native').StyleProp<
import('react-native').ViewStyle
>
}
export default function AnimatedLoader(
props: AnimatedLoaderProps
): JSX.Element