1.0.7 • Published 8 years ago
react-native-star-rate-view v1.0.7
react-native-star-rate-view
a react-native Scoring view, You can add custom image to display and scoring
Installation
npm install react-native-star-rate-view
Properties:
| Property | describe |
|---|---|
| numberstars | the number of stars or other images |
| rateType | RateType Object:RateType.WholeStar,RateType.HalfStar,RateType.IncompleteStar |
| foregroundStarImgSource | mark score image object eg:require('./img/foregroundStarImage.png') |
| backgroundStarImgSource | become a background image eg:require('./img/backgroundStarImage.png') |
| animationTimeInterval | Animation time if you don't set,default value is 0 with no animation display |
| finish | score callback, get a score eg:finish={(score)=>{console.log('score',score)}} |