1.1.0 • Published 5 years ago

rating-react-native v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Rating React Native (rating-react-native)

This is a package for implementing simple star rating on components easily with functionality.

alt text

Installation

Use the package manager npm to install rating-react-native.

npm install rating-react-native --save
react-native link

Usage

import React, { Component } from 'react'
import StarRating from 'rating-react-native'

export default class App extends Component {
  
  state = {
    stars: 0,
  }

  handleStars = (stars) => {
    this.setState({ stars })    //get the rating
  }

  render() {
    return (
      <StarRating onPress={this.handleStars} />
    )
  }
}

Props

PropertyDefaultDescription
starCount5rendering number of stars
fillColoryellowcolor of filled stars or selected stars
colorblackcolor of unfilled stars or unselected stars
size50size of star

License

MIT

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago