
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@naturalclar/react-native-confetti
Advanced tools
Raining confetti made with react native animations
npm i -S react-native-confetti
import React, {Component} from 'react';
import {
AppRegistry,
StyleSheet,
View
} from 'react-native';
import Confetti from 'react-native-confetti';
class RNConfetti extends Component {
componentDidMount() {
if(this._confettiView) {
this._confettiView.startConfetti();
}
}
render() {
return <View style={styles.container}>
<Confetti ref={(node) => this._confettiView = node}/>
</View>
}
}
const styles = StyleSheet.create({
container: {
flex: 1
}
});
| Property | Type | Default | Description |
|---|---|---|---|
confettiCount | Number | 100 | Number of confetti |
timeout | Number | 30 (ms) | Timeout between confetti |
untilStopped | Boolean | false | Render confetti continuously until stopConfetti() is called. This ignores confettiCount. |
duration | Number | 6000 (ms) | Duration until a conffetti reaches the bottom |
colors | Array | ["rgb(242.2, 102, 68.8)","rgb(255, 198.9, 91.8)","rgb(122.4, 198.9, 163.2)","rgb(76.5, 193.8, 216.7)","rgb(147.9, 99.4, 140.2)"] | Array of color strings to choose from for the confetti |
size | Number | 1 | Multiplier for size of confetti (width and heigh) |
bsize | Number | 1 | Multiplier for radius of confetti (border radius) |
FAQs
Raining confetti made with react native animations
We found that @naturalclar/react-native-confetti demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.