ActivityIndicator
Displays a circular loading indicator.
Exampleβ
- Function Component
- Class Component
Reference
Propsβ
Inherits View Props.
animatingβ
Whether to show the indicator (true, the default) or hide it (false).
| Type | Required |
|---|---|
| bool | No |
colorβ
The foreground color of the spinner (default is gray on iOS and dark cyan on Android).
| Type | Required |
|---|---|
| color | No |
hidesWhenStoppedβ
Whether the indicator should hide when not animating (true by default).
| Type | Required | Platform |
|---|---|---|
| bool | No | iOS |
sizeβ
Size of the indicator (default is 'small'). Passing a number to the size prop is only supported on Android.
| Type | Required |
|---|---|
| enum('small', 'large'), number | No |