
Security News
New Study Identifies 53 Slopsquatting Targets Across 5 Frontier LLMs
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.
rn-rating-component
Advanced tools
A Simple react-native rating component.
Install rn-rating-component and its dependeices with npm
npm install --save rn-rating-component
or
yarn add --save rn-rating-component
import React, {useState} from 'react';
import Rating from 'rn-rating-component'
export const Rn_Rating_Component_Example =()=> {
const [rate, setRate] = useState(null);
return (
<Rating
maxrating={5}
size={30}
defaultrate={rate}
onChangeRate={setRate}
/>
);
}
two default modes
uri string for custom icons
fully customisable style and props
Highly functional
The default icons are from react-native-vector-icons.see the demo app inside the directory rating_test_app/App.js you can find all the usage examples in the same file of the demo app.for customiconfilled and customiconoutline prop pass in the icon name from react-native-vector-icons/MaterialIcons.
| Prop | Type | Default | Description |
|---|---|---|---|
| color | String | #900 | Required for default and custom icons,it'll be ignored if isurlpresent prop set to true |
| customiconfilled | String | undefined | Used for custom filled icon,it'll override default icons |
| customiconoutline | String | undefined | Used for custom outline icon,it'll override default icons |
| defaultrate | Number | 0 | Default rate for filled icons and it's required |
| filledurl | Uri | undefined | Uri string for filled png / svg icons to be used, this will work if isurlpresent prop set to true. |
| isurlpresent | Boolean | false | Used for custom image icons, |
| maxrating | Number | 5 | Maximum icons or ratings to be rendered |
| mode | String | star | Used for defaults mode options can be either 'star' or 'heart' |
| onChangeRate | function | undefined | It's required for handling change in icons and is required |
| outlineurl | Uri | undefined | Uri string for outline png / svg icons to be used, this will work if isurlpresent prop set to true. |
| parentstyle | Style | flexDirection:'row' | This style will apply to total component, use this for handling parent View of the component |
| size | Number | 30 | Will be used for changing size of the icons, ignored if isurlpresent set to true |
| style | Style | undefined | Style for icons,for ex margin:2, this will render icons with margin of 2. |
| key | Number | undefined | key prop, |
import React, { useState } from "react";
import Rating from "rn-rating-component";
export const Rn_Rating_Component_Example = () => {
const [rate, setRate] = useState(null);
console.log(rate);
return (
<Rating
maxrating={5}
onChangeRate={setrate}
defaultrate={rate}
isurlpresent={true}
filledurl=""
outlineurl=""
/>
);
};
cd rating_test_app
npm install --save
npx react-native start
npx react-native run-android
Contributions are always welcome!
Please adhere to this project's code of conduct.
For support, email raghavyuva@gmail.com
FAQs
react-native rating component
We found that rn-rating-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.

Security News
The White House’s Gold Eagle Initiative aims to coordinate AI-discovered vulnerabilities, validate findings, and accelerate patching across critical software.

Security News
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.