# f20manuel-react-native-rating

> Install the package using yarn or npm:

Latest version **1.0.2** (published 2021-11-26) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-11-26 |
| First published | 2021-11-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Manuel Fernández |
| Maintainers | f20manuel |
| Keywords | rating, react, native, react, native, react, native, rating |

## Links

- npm: https://www.npmjs.com/package/f20manuel-react-native-rating
- Repository: https://github.com/f20manuel/react-native-rating-by-f20manuel
- Homepage: https://github.com/f20manuel/react-native-rating-by-f20manuel#readme
- Issues: https://github.com/f20manuel/react-native-rating-by-f20manuel/issues
- npm.io page: https://npm.io/package/f20manuel-react-native-rating

## Dependencies (10)

- [expo](https://npm.io/package/expo.md) ~43.0.2
- [react](https://npm.io/package/react.md) 17.0.1
- [react-dom](https://npm.io/package/react-dom.md) 17.0.1
- [react-native](https://npm.io/package/react-native.md) 0.64.3
- [expo-constants](https://npm.io/package/expo-constants.md) ~12.1.3
- [expo-status-bar](https://npm.io/package/expo-status-bar.md) ~1.1.0
- [react-native-web](https://npm.io/package/react-native-web.md) 0.17.1
- [@expo/vector-icons](https://npm.io/package/@expo/vector-icons.md) ^12.0.0
- [react-native-paper](https://npm.io/package/react-native-paper.md) 4.9.2
- [react-native-vector-icons](https://npm.io/package/react-native-vector-icons.md) 9.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2021-11-26
- 1.0.0 — 2021-11-26

## README

# React Native Rating by f20manuel

## Installation

Install the package using yarn or npm:

```bash
yarn add f20manuel-react-native-ratings

// OR

npm install --save f20manuel-react-native-ratings
```

## Usage

```jsx
import Rating from 'f20manuel-react-native-ratings';

export default function App() {
  const [rating, setRating] = useState(0);

  return (
    <Rating
      rating={rating}
      onFinishRating={setRating}
    />
  );
}
```

## API

|prop|default|type|description|
|--|:--:|--|--|
|rating|0|number|Total number of ratings to display|
|ratingCount|5|number|Total amount of icons to display|
|onFinishRating|none|function(value: number)|Callback method when the user finishes| rating. Gives you the final rating value as a whole number|
|icon|star|string|icon displayed when selected (icon name in fontawesome)|
|emptyIcon|star-o|string|icon displayed when not selected (icon name in fontawesome)|
|color|#F9BB01|CSS Color|Hexadecimal code of the selected icon|
|emptyColor|#F9BB01|CSS Color|Hexadecimal code of the not selected icon|
|size|32|number|Icon size in pixels|

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