npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-star-review

v0.0.3

Published

Fully customizable Star Review for React Native.

Downloads

74

Readme

Battle Tested ✅

Fully customizable Star Review for React Native

npm version npm expo-compatible Platform - Android and iOS License: MIT

Installation

Add the dependency:

Pure React Native:

npm i react-native-star-review

Peer Dependencies

IMPORTANT! You need install them.
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
"react-number-format": ">= 4.x.x",
"react-native-vector-icons": ">= 6.x.x",
"react-native-dynamic-vector-icons": ">= x.x.x"

// Expo Version
"react-native-dynamic-vector-icons": "WrathChaos/react-native-dynamic-vector-icons#expo"

Basic Usage

 <StarReview />

Advanced Usage

You can check the example for the advanced usage

<StarReview
  ratings={5}
  stars={10}
  starColor="#8409ff"
  reviews={219301495}
  reviewsText="contributions"
/>

Configuration - Props

| Property | Type | Default | Description | | ----------------- | :-------: | :-----------: | ----------------------------------------------------------- | | stars | number | 5 | create stars as many as you want | | reviews | number | 0 | makes the stars fillable as many as you want | | reviewsText | string | reviews | change the review's description text | | reviewTextStyle | style | default style | set your own text style for review text | | starSize | number | 16 | change the star icon's size | | starColor | string | #ffa114 | change the star icon's color | | textColor | string | #757575 | change the text color | | iconComponent | component | Icon | set your own Icon component instead of dynamic-vector-icons | | enableStars | boolean | false | shows the stars as text | | enableParentheses | boolean | false | reviews are shown inside of parentheses | | disableReview | boolean | false | disable the whole review part |

Expo Compatibility

Star Review is usable with Expo. You just need to add a peer dependency:

"react-native-dynamic-vector-icons": "WrathChaos/react-native-dynamic-vector-icons#expo"

Known Issues

Android

Stars are not showing :O

-> You need to add this line of code into app/gradle

apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

Future Plans

  • [x] ~~LICENSE~~
  • [ ] Write an article about the lib on Medium

Author

FreakyCoder, [email protected]

License

React Native Star Review Library is available under the MIT license. See the LICENSE file for more info.