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, 27 Sep 2023 07:12:04 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Maurice el-Banna.