1.0.5 • Published 3 years ago

react-native-animated-rating v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

Installation

Install the package using yarn or npm:

yarn add react-native-animated-rating

OR

npm install --save react-native-animated-rating

Usage

import { Rating } from 'react-native-animated-rating';

<Rating
  starSize={30}
  defaultRating={0}
  count={5}
  readonly={false}
  onRatingFinished={(rating: number) => handleRating(rating) }
/>

API

RatingProps

propdefaulttypedescription
starSize30numberPass in size for start image.
defaultRating0numberRating value to show if readonly is true.
count5numberNumber of stars.
readonlyfalsebooleanSet true if you want to allow user change ratings.
onRatingFinshed--funtionCallback method when the user finishes rating. Gives you the final rating value as a whole number

Feedback

This repo is being actively manitained. Feel free to open a new Issue with a Feature Request or submit a PR with an Enhancement.

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago