Rating React Native (rating-react-native)
This is a package for implementing simple star rating on components easily with functionality.
Installation
Use the package manager npm to install rating-react-native.
npm install rating-react-native --save
react-native link
Usage
state = stars: 0 { this //get the rating } { return <StarRating onPress=thishandleStars /> }
Props
Property | Default | Description |
---|---|---|
starCount | 5 |
rendering number of stars |
fillColor | yellow |
color of filled stars or selected stars |
color | black |
color of unfilled stars or unselected stars |
size | 50 |
size of star |
License
[MIT]