{"id":13725956,"url":"https://github.com/nanndoj/react-native-particles","last_synced_at":"2025-10-11T20:55:47.581Z","repository":{"id":57338941,"uuid":"142208238","full_name":"nanndoj/react-native-particles","owner":"nanndoj","description":"Declarative Particle System for React Native","archived":false,"fork":false,"pushed_at":"2023-01-25T20:46:04.000Z","size":1990,"stargazers_count":107,"open_issues_count":11,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-11T20:41:10.268Z","etag":null,"topics":["animations","particles","react-native"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nanndoj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-24T20:14:28.000Z","updated_at":"2024-08-01T13:49:57.000Z","dependencies_parsed_at":"2023-02-02T06:01:31.562Z","dependency_job_id":null,"html_url":"https://github.com/nanndoj/react-native-particles","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanndoj%2Freact-native-particles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanndoj%2Freact-native-particles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanndoj%2Freact-native-particles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanndoj%2Freact-native-particles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanndoj","download_url":"https://codeload.github.com/nanndoj/react-native-particles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224654040,"owners_count":17347658,"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":["animations","particles","react-native"],"created_at":"2024-08-03T01:02:43.179Z","updated_at":"2025-10-11T20:55:42.547Z","avatar_url":"https://github.com/nanndoj.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\n## react-native-particles\n[![npm version](https://badge.fury.io/js/react-native-particles.svg)](https://badge.fury.io/js/react-native-particles)\n\n*Anything can be a particle!*\n\nDeclarative particle system for react native. Works on iOS and Android. It uses `Animated` api and `useNativeDriver:true` to get 60 FPS particles animation\n\n## Add it to your project\n\n1. Run `npm install react-native-particles --save`\n2. `import { Emitter } from 'react-native-particles'`\n\n## Demo\n\n![](https://raw.githubusercontent.com/nanndoj/react-native-particles/master/Example/screenshosts/particles.gif)\n\n## Basic usage\n\n```javascript\nimport { Emitter } from 'react-native-particles';\n\nconst App = React.createClass({\n  render() {\n    return (\n      \u003cEmitter\n        numberOfParticles={50}\n        emissionRate={5}\n        interval={200}\n        particleLife={1500}\n        direction={-90}\n        spread={360}\n        fromPosition={{ x: 200, y: 200 }}\n      \u003e\n        \u003cText\u003eParticle\u003c/Text\u003e\n      \u003c/Emitter\u003e\n    );\n  }\n});\n```\n\n## Examples\n\n## Props\n\n### Emitter\n\nBasically, the `children` of emmiter is clonned and transformed into a particle.\n\n- **`numberOfParticles`** _(number)_ - The total of particles to be emitted\n- **`interval`** _(number)_ - Interval between emitting a new bunch of particles\n- **`fromPosition`** _(VectorType | (() =\u003e VectorType))_ - The position from where the particles should be generated\n- **`emissionRate`** _(number)_ - Number of particles to be be emitted on each cycle\n- **`particleLife`** _(number)_ - The particle life time (ms)\n- **`direction`** _(number)_ - The direction angle of the particle (in degrees)\n- **`spread`** _(number)_ - The spread angle where particles are allowed to be rendered (in degrees)\n- **`speed`** _(number)_ - The speed of each particle\n- **`gravity`** _(number)_ - Gravity force to be applied to the particle movement\n- **`segments`** _(number)_ -  number of steps the animation will be divided ( more segments == more precise animation == slow performance)\n- **`width`** _(number)_ -  Width of the emitter area\n- **`height`** _(number)_ - Height of the emitter area\n- **`autoStart`** _(boolean)_ - Start emitting particles right after initialization\n- **`style`** _(Object)_ -  Style of the container view\n- **`children`** _(ReactElement)_ - Particle content\n- **`infiniteLoop`** _(boolean)_ - Emit particles infinitely\n\n## Contribution\n**Issues** are welcome. Please add a screenshot of bug and code snippet. Quickest way to solve issue is to reproduce it on one of the examples.\n\n**Pull requests** are welcome. If you want to change API or making something big better to create issue and discuss it first. Before submiting PR please run ```prettier```.\n\n---\n\n**MIT Licensed**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanndoj%2Freact-native-particles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanndoj%2Freact-native-particles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanndoj%2Freact-native-particles/lists"}