# react-native-activity-indicator

> A unified and cross-platform activity indicator component for React Native.

Latest version **0.0.4** (published 2017-08-01) · 0 weekly downloads

## Install

```sh
npm install react-native-activity-indicator
pnpm add react-native-activity-indicator
yarn add react-native-activity-indicator
bun add react-native-activity-indicator
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2017-08-01 |
| First published | 2017-06-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | sonaye |

## Links

- npm: https://www.npmjs.com/package/react-native-activity-indicator
- Repository: https://github.com/sonaye/react-native-activity-indicator
- Homepage: https://github.com/sonaye/react-native-activity-indicator#readme
- Issues: https://github.com/sonaye/react-native-activity-indicator/issues
- npm.io page: https://npm.io/package/react-native-activity-indicator

## Recent versions

- 0.0.4 (latest) — 2017-08-01
- 0.0.3 — 2017-07-05
- 0.0.2 — 2017-06-02
- 0.0.1 — 2017-06-02

## README

# react-native-activity-indicator
<img src="https://raw.githubusercontent.com/sonaye/react-native-activity-indicator/master/demo.gif" width="400">

Based on [react-native-progress](https://github.com/oblador/react-native-progress#progresscirclesnail).

# Installation
`yarn add react-native-progress react-native-activity-indicator`

# Definition
Same API as [ActivityIndicator](https://facebook.github.io/react-native/docs/activityindicator.html) with two extra customization props `duration` and `thickness`.

```javascript
type activityIndicator = {
  animating?: boolean,               // default = true
  color?: string | Array<string>,    // default = 'gray'
  duration?: number,                 // default = 500
  hidesWhenStopped? boolean,         // default = true
  size?: 'small' | 'large' | number, // default = 'small'
  thickness?: number                 // default = 1
};
```

## Examples
```javascript
import React from 'react';
import { View } from 'react-native';

import ActivityIndicator from 'react-native-activity-indicator';

const Example = () => (
  <View
    style={{
      alignItems: 'center',
      flex: 1,
      flexDirection: 'row',
      justifyContent: 'space-around'
    }}>
    <ActivityIndicator />
    <ActivityIndicator animating={false} />
    <ActivityIndicator color="#4285f4" />
    <ActivityIndicator color={['#db4437', '#0f9d58', '#4285f4']} />
    <ActivityIndicator duration={1000} />
    <ActivityIndicator size="large" />
    <ActivityIndicator size={24} />
    <ActivityIndicator thickness={3} />
  </View>
);

export default Example;
```

---
_Source: https://npm.io/package/react-native-activity-indicator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
