Skip to content

Commit 6492e50

Browse files
authored
Update index.d.ts
1 parent 06604b7 commit 6492e50

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.d.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ export type AnimatedLoaderProps = {
33
* Controls the visibility of the loader.
44
* @defaultValue false
55
*/
6-
visible: boolean
6+
visible?: boolean
77

88
/**
99
* Changes the color of the overlay.
1010
*/
11-
overlayColor: string
11+
overlayColor?: string
1212

1313
/**
1414
* 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')`.
@@ -19,23 +19,23 @@ export type AnimatedLoaderProps = {
1919
* The speed the animation will progress.
2020
* @defaultValue 1
2121
*/
22-
speed: number
22+
speed?: number
2323

2424
/**
2525
* A boolean flag indicating whether or not the animation should loop.
2626
* @defaultValue true
2727
*/
28-
loop: boolean
28+
loop?: boolean
2929

3030
/**
3131
* Changes animation on show and hide loader's view.
3232
*/
33-
animationType: any
33+
animationType?: any
3434

3535
/**
3636
* The style to be applied to the Lottie.
3737
*/
38-
animationStyle: import('react-native').StyleProp<
38+
animationStyle?: import('react-native').StyleProp<
3939
import('react-native').ViewStyle
4040
>
4141
}

0 commit comments

Comments
 (0)