Skip to main content

ActivityIndicator

It displays a circular loading indicator which define something in progress.

How to use

import  React from 'react';
import {ActivityIndicator} from '@gyri/native-ui-components';

const MyComponent = () => (
<ActivityIndicator size={size} visible={visible} />
);

export default MyComponent;

Props

#NameData typeDefault valueValuesDescription
1sizestring'small''small', 'large' , numberIt define size of indicator.
2visiblebooleantruetrue , falseIt define nature of indicator either visible or invisible.
3animatingbooleantruetrue , falseWhether to show the indicator or hide it.
4colorstringThe color of the spinner.
5hidesWhenStoppedbooleantrueWhether the indicator should hide when not animating.

For more details https://callstack.github.io/react-native-paper/docs/components/ActivityIndicator