1.0.4 • Published 1 year ago

rn-ratings v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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

propdefaulttypedescription
rating5numberTotal number of ratings to display
sourcenonestring / pathPass in a custom image source
containerStylenoneobject / StylesheetCustom style applied to outermost container
iconContainerStylenoneobject / StylesheetCustom style applied to icon container
imageStylenonestringCustom 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.

1.0.4

1 year ago

1.0.2

1 year ago

1.0.3

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago