3.0.3 • Published 6 years ago

nativescript-confettiview v3.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

NativeScript ConfettiView Plugin

npm npm

A NativeScript plugin to create an animated confetti view on iOS and Android.

Getting Started

  • npm install nativescript-confettiview
  • Import the ConfettiView into your page and start confetti!
import {Observable} from 'data/observable';
import {ConfettiView} from 'nativescript-confettiview';

export class HelloWorldModel extends Observable {

  private confettiView: any;

  constructor() {
    super();
    this.confettiView = new ConfettiView();
    this.confettiView.startConfetti();
  }

  public stopConfetti() {
    this.confettiView.stopConfetti();
  }

  public startConfetti() {
    this.confettiView.startConfetti();
  }

}

Note: On first run, you may see a console log regarding an incorrect local file path. Let the install finish and you will notice the package.json will reflect your local file path to the plugin.

Available Functions

Call SignatureDefault
intensity(number)0.5
colors(array)UIColor[]
startConfetti()
stopConfetti()

Example

Image

Credits

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.1

7 years ago

2.0.0

7 years ago

0.1.0

8 years ago