New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@coorpacademy/react-native-confetti-cannon

Package Overview
Dependencies
Maintainers
17
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coorpacademy/react-native-confetti-cannon

Fork: React Native confetti explosion and fall like iOS does.

latest
npmnpm
Version
1.1.3
Version published
Weekly downloads
0
Maintainers
17
Weekly downloads
 
Created
Source

React-native-confetti-cannon

CircleCI

Installation

npm install react-native-confetti-cannon
# or
yarn add react-native-confetti-cannon

Usage

import ConfettiCannon from 'react-native-confetti-cannon';

const MyComponent = () => (
  <ConfettiCannon count={200} origin={{x: -10, y: 0}} />
);

Props

NameTypeDescriptionRequiredDefault
countnumberitems count to displayrequired
origin{x: number, y: number}animation position originrequired
explosionSpeednumberexplosion duration (ms) from origin to top350
fallSpeednumberfall duration (ms) from top to bottom3000
fadeOutbooleanmake the confettis disappear at the endfalse
colorsArraygive your own colors to the confettisdefault colors

Keywords

react

FAQs

Package last updated on 29 May 2019

Related posts