1.0.0 • Published 6 years ago

nativescript-shine-button v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
6 years ago

Note: This Plugin based on WCLShineButton for IOS and ShineButton for Android .

Installation

tns plugin add nativescript-shine-button

Usage

<Page xmlns="http://schemas.nativescript.org/tns.xsd" class="page" xmlns:ui="nativescript-shine-button">
     <ui:ShineButton height="80" width="80" src="customicon" color="gray" fillColor="red">
</Page>

see the demo project for more info.

Angular

Add this to app.module.ts so you can use a Gradient tag in the view:

import { registerElement } from "nativescript-angular";
registerElement("ShineButton", () => require("nativescript-shine-button").ShineButton);

API

PropertyDescription
srcbutton image (png)
colorDefault button color
fillColorFill button color
allowRandomColorAllow shine color random
animDurationshine anim duration in sec
bigShineColorbig shine color
enableFlashingEnable effect like flash
shineCountshine count around button
shineTurnAngleturn angle of shine
shineDistanceMultiplemultiple of distance to button
smallShineOffsetAngleangle offset of small shine to big shine
smallShineColorsmall shine color
shineSizesize of shine by pixel

Next

  • adjust the properties to be more consistent on android and ios.

Contribute

if you want to help improve the plugin you can consider it yours and make as PRs as you want :)

Get Help

Please, use github issues strictly for reporting bugs or requesting features.

Contact

Twitter: hamdiwanis \ Email: hamdiwanis@hotmail.com