# @coorpacademy/react-native-confetti-cannon

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

Latest version **1.1.3** (published 2019-05-29) · 0 weekly downloads

## Install

```sh
npm install @coorpacademy/react-native-confetti-cannon
pnpm add @coorpacademy/react-native-confetti-cannon
yarn add @coorpacademy/react-native-confetti-cannon
bun add @coorpacademy/react-native-confetti-cannon
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2019-05-29 |
| First published | 2019-05-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vincent Catillon |
| Maintainers | rocket-star, adamska27, jvaillant-coorp, vincentcatillon, silou, bertrandd, thibaultcoorp, coorpadmin, chrisdugne, esa-coorp, raphael_aslanian, mariamthiam, fausto95, godu, jomaora, adriean.khisbe, melkmerle |
| Keywords | react, react-native, react-native-web, confetti, cannon, explosion, fall, animation, animated, particles, ios, android |

## Links

- npm: https://www.npmjs.com/package/@coorpacademy/react-native-confetti-cannon
- Homepage: https://github.com/coorpacademy/react-native-confetti-cannon
- Issues: https://github.com/coorpacademy/react-native-confetti-cannon/issues
- npm.io page: https://npm.io/package/@coorpacademy/react-native-confetti-cannon

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 1.1.3 (latest) — 2019-05-29

## README

<p align="center">
  <img height="400" src="https://github.com/VincentCATILLON/react-native-confetti-cannon/raw/master/.github/demo.gif" alt="React-native-confetti-cannon">
</p>

[![CircleCI](https://circleci.com/gh/VincentCATILLON/react-native-confetti-cannon.svg?style=svg)](https://circleci.com/gh/VincentCATILLON/react-native-confetti-cannon)

## Installation

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

## Usage

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

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

## Props

| Name           | Type                   | Description                                | Required | Default        |
|----------------|------------------------|--------------------------------------------|----------|----------------|
| count          | number                 | items count to display                     | required |                |
| origin         | {x: number, y: number} | animation position origin                  | required |                |
| explosionSpeed | number                 | explosion duration (ms) from origin to top |          | 350            |
| fallSpeed      | number                 | fall duration (ms) from top to bottom      |          | 3000           |
| fadeOut        | boolean                | make the confettis disappear at the end    |          | false          |
| colors   | Array<string>          | give your own colors to the confettis      |          | default colors |

---
_Source: https://npm.io/package/@coorpacademy/react-native-confetti-cannon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
