Installation
npm install --save @types/react-native-confetti
Summary
This package contains type definitions for react-native-confetti (https://github.com/cdvntr/react-native-confetti).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-confetti.
import { Component } from "react";
export interface ConfettiProps {
confettiCount?: number;
timeout?: number;
untilStopped?: boolean;
duration?: number;
colors?: string[];
size?: number;
bsize?: number;
}
export default class Confetti extends Component<ConfettiProps> {
startConfetti(callback?: () => void): void;
stopConfetti(): void;
removeConfetti(key: number): void;
}
Additional Details
- Last updated: Wed, 18 Oct 2023 11:45:05 GMT
- Dependencies: @types/react
Credits
These definitions were written by Maurice el-Banna.