{"id":27062277,"url":"https://github.com/cdvntr/react-native-confetti","last_synced_at":"2025-04-05T15:16:10.364Z","repository":{"id":47695307,"uuid":"64483947","full_name":"cdvntr/react-native-confetti","owner":"cdvntr","description":"Raining confetti made with react native animations","archived":false,"fork":false,"pushed_at":"2021-08-17T17:29:21.000Z","size":2293,"stargazers_count":221,"open_issues_count":9,"forks_count":55,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-23T11:54:13.879Z","etag":null,"topics":["confetti","react-native"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdvntr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-29T13:49:40.000Z","updated_at":"2024-08-29T15:27:21.000Z","dependencies_parsed_at":"2022-08-17T15:10:55.380Z","dependency_job_id":null,"html_url":"https://github.com/cdvntr/react-native-confetti","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdvntr%2Freact-native-confetti","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdvntr%2Freact-native-confetti/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdvntr%2Freact-native-confetti/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdvntr%2Freact-native-confetti/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdvntr","download_url":"https://codeload.github.com/cdvntr/react-native-confetti/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276070,"owners_count":20912287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["confetti","react-native"],"created_at":"2025-04-05T15:16:09.656Z","updated_at":"2025-04-05T15:16:10.353Z","avatar_url":"https://github.com/cdvntr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-confetti\nRaining confetti made with react native animations\n\n\u003cp align=\"left\"\u003e\n  \u003cimg src=\"./demo.gif\" width=\"320\" height=\"282\"\u003e\n\u003c/p\u003e\n\n## Installation\n\n```sh\nnpm i -S react-native-confetti\n```\n\n## Usage\n\n```javascript\nimport React, {Component} from 'react';\nimport {\n  AppRegistry,\n  StyleSheet,\n  View\n} from 'react-native';\n\nimport Confetti from 'react-native-confetti';\n\nclass RNConfetti extends Component {\n  componentDidMount() {\n    if(this._confettiView) {\n       this._confettiView.startConfetti();\n    }\n  }\n\n  render() {\n    return \u003cView style={styles.container}\u003e\n      \u003cConfetti ref={(node) =\u003e this._confettiView = node}/\u003e\n    \u003c/View\u003e\n  }\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1\n  }\n});\n```\n\n## Props\n\nProperty         | Type     | Default  | Description\n---              | ---      | ---      | ---\n`confettiCount`  | `Number` |  100     | Number of confetti\n`timeout`        | `Number` |  30 (ms)     | Timeout between confetti\n`untilStopped`   | `Boolean` | false | Render confetti continuously until `stopConfetti()` is called. This ignores `confettiCount`.\n`duration`       | `Number` |  6000 (ms) | Duration until a conffetti reaches the bottom\n`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\n`size`           | `Number` |   1       | Multiplier for size of confetti (width and heigh)\n`bsize`           | `Number` |   1       | Multiplier for radius of confetti (border radius)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdvntr%2Freact-native-confetti","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdvntr%2Freact-native-confetti","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdvntr%2Freact-native-confetti/lists"}