You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-8Lines changed: 16 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -28,20 +28,20 @@ function LoadingScreen() {
28
28
<LoadingDots />
29
29
</View>
30
30
</View>
31
-
)
31
+
);
32
32
}
33
33
34
34
conststyles=StyleSheet.create({
35
-
loadingScreen:{
35
+
loadingScreen:{
36
36
flex:1,
37
37
display:"flex",
38
38
alignItems:"center",
39
-
justifyContent:"center"
39
+
justifyContent:"center",
40
40
},
41
41
dotsWrapper: {
42
-
width:100
43
-
}
44
-
})
42
+
width:100,
43
+
},
44
+
});
45
45
```
46
46
47
47
The above code will produce the same outcome as the demo screen capture.
@@ -77,7 +77,6 @@ default 20
77
77
78
78
This prop will control the size of each dot that will be displayed for the animation.
79
79
80
-
81
80
### borderRadius
82
81
83
82
```
@@ -93,4 +92,13 @@ This prop will control the border radius of the dots in case you want a specific
93
92
default 20
94
93
```
95
94
96
-
This prop will control the height of the bouncing for the loading dots. The higher the value the higher the will bounce up and down. From `0` to `bounceHeight` and from `0` to `-bounceHeight`.
95
+
This prop will control the height of the bouncing for the loading dots. The higher the value the higher the will bounce up and down. From `0` to `bounceHeight` and from `0` to `-bounceHeight`.
96
+
97
+
### components
98
+
99
+
```js
100
+
@type {React.ReactNode}
101
+
default null
102
+
```
103
+
104
+
This prop will allow you to pass an array of the elements that you'd like to be rendered instead of the colored dots. If you pass `components` the `dots`, `colors`, `size` and `borderRadius` props will be ignored.
0 commit comments