Skip to main content

Indicator component

Effect demonstration​

1. Ball Indicator​

<SafeAreaView style={{ flex: 1 }}>
<BallIndicator />
</SafeAreaView>
indicator-ios1.gif

2. UIActivity Indicator​

<SafeAreaView style={{ flex: 1 }}>
<UIActivityIndicator />
</SafeAreaView>
indicator-ios1.gif

3. Material Indicator​

<SafeAreaView style={{ flex: 1 }}>
<MaterialIndicator />
</SafeAreaView>
indicator-ios1.gif

4. Modify size and color​

<SafeAreaView style={{ flex: 1 }}>
<UIActivityIndicator color="#ff0000" size={50} />
</SafeAreaView>
indicator-ios1.gif

API​

Public properties​

PropertiesRequiredDescriptionTypeDefault Value
animationEasingfalseAnimation Easing effectEasingFunctionEasing.linear
animationDurationfalseanimation execution durationnumber1200
animatingfalseWhether the animation is being executedbooleantrue
interactionfalseWhether interaction is possiblebooleantrue
stylefalseCustom styleViewStyle
hidesWhenStoppedfalseHide when animation is stoppedbooleantrue

BallIndicator /UIActivityIndicator property​

PropertiesRequiredDescriptionTypeDefault Value
colorfalsecolorstringrgb(0,0,0)
countfalseNumber of elementsnumber12
sizefalsesizenumber36

MaterialIndicator Property​

PropertiesRequiredDescriptionTypeDefault Value
colorfalsecolorstringrgb(0,0,0)
sizefalsesizenumber36