# react-native-lottie-rating

> A Lottie-based animated rating component for React Native.

Latest version **0.0.11** (published 2018-01-24) · 0 weekly downloads

## Install

```sh
npm install react-native-lottie-rating
pnpm add react-native-lottie-rating
yarn add react-native-lottie-rating
bun add react-native-lottie-rating
```

## 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.11 |
| Published | 2018-01-24 |
| First published | 2017-04-11 |
| 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-lottie-rating
- Repository: https://github.com/sonaye/react-native-lottie-rating
- Homepage: https://github.com/sonaye/react-native-lottie-rating#readme
- Issues: https://github.com/sonaye/react-native-lottie-rating/issues
- npm.io page: https://npm.io/package/react-native-lottie-rating

## Recent versions

- 0.0.11 (latest) — 2018-01-24
- 0.0.7 — 2017-08-01
- 0.0.6 — 2017-07-05
- 0.0.4 — 2017-04-21
- 0.0.3 — 2017-04-12
- 0.0.2 — 2017-04-11
- 0.0.1 — 2017-04-11

## README

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

The animation is also available [here](http://www.lottiefiles.com/138-star).

# Installation
`yarn add lottie-react-native react-native-lottie-rating`

`lottie-react-native` may require native linking, see package [repository](https://github.com/airbnb/lottie-react-native) for more details.

# Definition
```javascript
type rating = {
  disabled?: boolean, // default = false
  max?: number,       // default = 5
  onRate: Function,   // default = rating => null
  size?: number,      // default = 36
  src?: any,          // default = require('./animation.json')
  value?: number      // default = 0
};
```

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

import Rating from 'react-native-lottie-rating';

const Example = () => (
  <View style={{ alignItems: 'center', flex: 1, justifyContent: 'center' }}>
    <Rating onRate={rating => console.log(rating)} />
  </View>
);

export default Example;
```

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