Skip to content

Commit 06604b7

Browse files
authored
Added typings according to documentation
1 parent 6ad1af3 commit 06604b7

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

index.d.ts

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
export type AnimatedLoaderProps = {
2+
/**
3+
* Controls the visibility of the loader.
4+
* @defaultValue false
5+
*/
6+
visible: boolean
7+
8+
/**
9+
* Changes the color of the overlay.
10+
*/
11+
overlayColor: string
12+
13+
/**
14+
* 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')`.
15+
*/
16+
source: object | string | { uri: string }
17+
18+
/**
19+
* The speed the animation will progress.
20+
* @defaultValue 1
21+
*/
22+
speed: number
23+
24+
/**
25+
* A boolean flag indicating whether or not the animation should loop.
26+
* @defaultValue true
27+
*/
28+
loop: boolean
29+
30+
/**
31+
* Changes animation on show and hide loader's view.
32+
*/
33+
animationType: any
34+
35+
/**
36+
* The style to be applied to the Lottie.
37+
*/
38+
animationStyle: import('react-native').StyleProp<
39+
import('react-native').ViewStyle
40+
>
41+
}
42+
43+
export default function AnimatedLoader(
44+
props: AnimatedLoaderProps
45+
): JSX.Element

0 commit comments

Comments
 (0)