Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-star-rating-bar-graph

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-star-rating-bar-graph

Bar graph for star rating

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-star-rating-bar-graph

What is this

Get your star ratings displayed in bar graph.

How it works

It takes and object where KEY is perticular star rating and VALUE is number of votes or number of people who chose that star rating. Then it calulates overall average and displays it in well designed bar graph.

 Stars = {
    oneStar: 25, // star type : total votes
    twoStar: 30,
    threeStar: 60,
    fourStar: 80,
    fiveStar: 50,
}

Instalation

npm i react-native-star-rating-bar-graph --save

Then..

import RatingBarGraph from 'react-native-star-rating-bar-graph'

let Stars = {
    oneStar: 25, // star type : total votes
    twoStar: 30,
    threeStar: 60,
    fourStar: 80,
    fiveStar: 50,
}

<RatingBarChart
    stars={stars}
    reviewCount={reviewCount} // out of how many reviews (optional)
/>

Keywords

FAQs

Package last updated on 24 May 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc