react-native-confetti
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -54,3 +54,3 @@ import React, {Component} from 'react'; | ||
ConfettiView.defaultProps = { | ||
confettiCount: 70, | ||
confettiCount: 100, | ||
timeout: 30 | ||
@@ -57,0 +57,0 @@ } |
{ | ||
"name": "react-native-confetti", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Raining confettis made with react native animations", | ||
@@ -5,0 +5,0 @@ "main": "confettiView.js", |
# react-native-confetti | ||
Raining confetti made with react native animations | ||
<p align="center"> | ||
<p align="left"> | ||
<img src="./demo.gif" width="320" height="282"> | ||
@@ -13,3 +14,3 @@ </p> | ||
## Use | ||
## Usage | ||
@@ -26,3 +27,3 @@ ```javascript | ||
class Example extends Component { | ||
class RNConfetti extends Component { | ||
componentDidMount() { | ||
@@ -53,3 +54,3 @@ if(this._confettiView) { | ||
`confettiCount` | `Number` | 100 | Number of confetti | ||
`timeout` | `Number` | 30 | Timeout between confettis | ||
`duration` | `Number` | 6000 ms | Duration until a conffetti reaches the bottom | ||
`timeout` | `Number` | 30 (ms) | Timeout between confetti | ||
`duration` | `Number` | 6000 (ms) | Duration until a conffetti reaches the bottom |
1115851
54