Skip to content

Latest commit

 

History

History
executable file
·
37 lines (30 loc) · 1.16 KB

README.md

File metadata and controls

executable file
·
37 lines (30 loc) · 1.16 KB

NativeScript Star Ratings (iOS)

npm npm This plugin contains the UI control for a star rating inside your NativeScript app. Currently this plugin is in development and only for iOS.

Image

Usage

Define Plugin Element in Page

xmlns:TNSStarRatings="nativescript-star-ratings"

Use element inside view

<TNSStarRatings:StarRating width="300" height="40" value="1" />

Options

Property Type Default
max number 10
min number 0
value number 0
starColor UIColor red
allowsHalfStars boolean false
accurateHalfStars boolean true
emptyStar string "heart-empty"
halfStar string "heart-half"
filledStar string "heart-full"

Contributing

Feel free to submit a PR (pull-request) for new features, bug fixes, etc.

Credits