A simple star rating component. It has few dependencies and is completely stateless, making it predictable and easy to integrate with something like Redux if you like.
npm install --save react-native-simple-rating
Editable rating:
<StarRating
rating={this.state.rating}
onRate={(rating) => this.setState({rating: rating})} />
Read-only rating:
<StarRating rating={this.state.rating} />
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
Icons from Font Awesome by Dave Gandy - http://fontawesome.io.