Skip to content

A react-native scoring view, You can add custom image to display and scoring

License

Notifications You must be signed in to change notification settings

chai01/react-native-star-rate-view

Repository files navigation

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)}}

About

A react-native scoring view, You can add custom image to display and scoring

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published