Package Exports
- rn-ratings
- rn-ratings/index.tsx
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rn-ratings) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rn-ratings
Features ✨
- Custom icon rating
- Supports decimal value
- Highly customizable
- No dependency
- Regularly maintained
Rating Demo

Installation
Install the package using yarn or npm:
yarn add rn-ratings
OR
npm install rn-ratings
Usage
import Rating from 'rn-ratings';
const App = () => {
return (
<View style={{flex: 1}}>
<Rating
source={require('./src/assets/image/png/burger.png')}
rating={3}
/>
</View>
);
};
export default App;
RatingProps
prop | default | type | description |
---|---|---|---|
rating | 5 | number | Total number of ratings to display |
source | none | string / path | Pass in a custom image source |
containerStyle | none | object / Stylesheet | Custom style applied to outermost container |
iconContainerStyle | none | object / Stylesheet | Custom style applied to icon container |
imageStyle | none | string | Custom style for rating icon |
Feedback
This repo is being actively manitained. Feel free to open a new Issue with a Feature Request
or submit a PR with an Enhancement
.