Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yonfong/react-native-starRating
react native starRatin component
https://github.com/yonfong/react-native-starRating
Last synced: 3 months ago
JSON representation
react native starRatin component
- Host: GitHub
- URL: https://github.com/yonfong/react-native-starRating
- Owner: yonfong
- License: mit
- Created: 2016-01-29T10:53:03.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-03T01:16:45.000Z (over 8 years ago)
- Last Synced: 2024-04-23T02:36:56.091Z (7 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 27
- Watchers: 5
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-native - react-native-starrating ★24 - a react-native component for display interactive star ratings (Components / UI)
README
# react-native-starRating
react native starRatin component# Installation
npm install react-native-starrating --save
# Usage
Install the package via npm install react-native-starrating --save. Then import it in your JavaScript file via import StarRating from 'react-native-starrating'. Check out an example usage below:
```js
import StarRating from 'react-native-starrating';class ExampleComponent extends React.Component{
onStarRatingPress(value) {
console.log('Rated ' + value + ' stars!');
}
render() {
return (
this.onStarRatingPress(value)}
/>
);
}
}
```