npm i --save nativescript-confettiview
- Version: 3.0.3
- GitHub: https://github.com/sean-perkins/nativescript-confettiview
- NPM: https://www.npmjs.com/package/nativescript-confettiview
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
NativeScript ConfettiView Plugin
A NativeScript plugin to create an animated confetti view on iOS and Android.
Getting Started
npm install nativescript-confettiview- Import the
ConfettiViewinto 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 Signature | Default |
|---|---|
| intensity(number) | 0.5 |
| colors(array) | UIColor[] |
| startConfetti() | |
| stopConfetti() |
Example

Credits
- https://github.com/sudeepag/SAConfettiView for the original Pod
- https://github.com/NathanWalker/SAConfettiView Nathan Walker for the upgrades to the Pod and this plugin