nativescript-star-ratings-ext
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

#ATENTION. DOES NOT INSTALL HIS LIBRARY. THIS IS A TEST PROJECT#. DOWNLOAD THE RIGHT LIBRARY

#FORKED FROM:

NativeScript Star Ratings

npm npm Build Status

Installation

tns plugin add nativescript-star-ratings

Configuration

IMPORTANT: Make sure you include xmlns:ui="nativescript-star-ratings" on the Page element

<ui:StarRating emptyBorderColor="white" emptyColor="white" filledBorderColor="black" filledColor="red" value="2" max="5"/>

Angular

import { registerElement } from 'nativescript-angular/element-registry';
registerElement('StarRating', () => require('nativescript-star-ratings').StarRating);
<StarRating emptyBorderColor="white" emptyColor="white" filledBorderColor="black" filledColor="red" value="{{value}}" max="{{max}}" isindicator="false"></StarRating>

API

Properties

Property Default Type Required Description
emptyBorderColor blue string
  • - [ ]
IOS only
emptyColor white string
  • - [ ]
filledBorderColor blue string
  • - [ ]
IOS only
filledColor blue string
  • - [ ]
value 0 number
  • - [ ]
max 5 number
  • - [ ]
isindicator false boolean
  • - [ ]
Android only

ScreenShots

IOS Android
IOS Android

TODO

  • [ ] Custom images

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i nativescript-star-ratings-ext

    Weekly Downloads

    1

    Version

    1.0.0

    License

    Apache-2.0

    Unpacked Size

    31.7 kB

    Total Files

    14

    Last publish

    Collaborators

    • andremariano90