https://github.com/faichou/react-native-star-view
A rating star view !
https://github.com/faichou/react-native-star-view
Last synced: 6 months ago
JSON representation
A rating star view !
- Host: GitHub
- URL: https://github.com/faichou/react-native-star-view
- Owner: FaiChou
- Created: 2018-05-25T01:51:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-10T09:07:51.000Z (almost 7 years ago)
- Last Synced: 2025-04-06T04:46:38.133Z (6 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/react-native-star-view
- Size: 72.3 KB
- Stars: 7
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-star-view [](https://travis-ci.org/FaiChou/react-native-star-view) 
### How to use
Install package:
```
npm install --save react-native-star-view
# or
yarn add react-native-star-view
```Import to your app:
```
import Star from 'react-native-star-view';
```Use the component:
```
render() {
const starStyle = {
width: 100,
height: 20,
marginBottom: 20,
};
return (
);
}
```### API
API name | Desc
---------------|----------------------------------------
score | score number, Required
totalScore | total score, default is 5, Optional
style | style of container, Optional