{"id":18369870,"url":"https://github.com/cawfree/react-native-blobular","last_synced_at":"2025-06-26T07:31:52.250Z","repository":{"id":35081020,"uuid":"204136209","full_name":"cawfree/react-native-blobular","owner":"cawfree","description":"The Man in Blue's awesome Blobular, ported to React Native.","archived":false,"fork":false,"pushed_at":"2023-01-04T09:05:22.000Z","size":15499,"stargazers_count":52,"open_issues_count":19,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-28T09:51:18.278Z","etag":null,"topics":["blob","blobular","fluid","goo","react","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/cawfree.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":"2019-08-24T09:24:26.000Z","updated_at":"2024-07-06T21:02:22.000Z","dependencies_parsed_at":"2023-01-15T13:30:40.754Z","dependency_job_id":null,"html_url":"https://github.com/cawfree/react-native-blobular","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cawfree/react-native-blobular","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Freact-native-blobular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Freact-native-blobular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Freact-native-blobular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Freact-native-blobular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cawfree","download_url":"https://codeload.github.com/cawfree/react-native-blobular/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Freact-native-blobular/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262022060,"owners_count":23246247,"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":["blob","blobular","fluid","goo","react","react-native"],"created_at":"2024-11-05T23:32:49.382Z","updated_at":"2025-06-26T07:31:52.216Z","avatar_url":"https://github.com/cawfree.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-blobular\nThe [Man in Blue](https://www.themaninblue.com)'s awesome Blobular, ported to React Native. Find the original experiment [here](https://themaninblue.com/experiment/Blobular/)!\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./bin/out.gif\" width=\"300\" height=\"633\"\u003e\n\u003c/p\u003e\n\n## 🚀 Getting Started\n\nUsing [`npm`]():\n\n```sh\nnpm install --save react-native-blobular\n```\n\nUsing [`yarn`]():\n\n```sh\nyarn add react-native-blobular\n```\n\nThis project depends on [react-native-svg](https://github.com/react-native-community/react-native-svg), so be sure that the library has been [linked](https://github.com/react-native-community/react-native-svg#installation) if you're running anything less than [react-native@0.60](https://facebook.github.io/react-native/blog/2019/07/03/version-60).\n\n## ✍️ Example\nIt's pretty simple, just embed a `\u003cBlobular /\u003e` inside your `render` method, then listen for the `onBlobular` callback, where you can allocate a number of `Blob`s for your user to play around with.\n\n```javascript\nimport React from 'react';\nimport { Dimensions } from 'react-native';\nimport uuidv4 from 'uuid/v4';\n\nimport Blobular, { Blob } from 'react-native-blobular';\n\nconst { width, height } = Dimensions\n  .get('window');\n\nexport default () =\u003e (\n  \u003cBlobular\n    onBlobular={({ putBlob }) =\u003e putBlob(\n      new Blob(\n        uuidv4(), // unique id\n        100, // radius\n        75, // viscosity\n        50, // min radius\n      ),\n      width * 0.5,\n      height * 0.5,\n    )}\n  /\u003e\n);\n```\n\nYou can also suppress user interaction by supplying `pointerEvents=\"none\"` to your `\u003cBlobular /\u003e` component, and instead use the `blobular` instance returned in the callback to programmatically manipulate what's on screen.\n\n## 📌 Props\n\nProperty | Type | Required | Description\n:--- | :--- | :--- | :--- \nwidth|number|no|Width of the view.\nheight|number|no|Height of the view.\nrenderBlob|func|no|A function you can pass to define the SVG path.\npointerEvents|string|no|Allow the user to interact, or manipulate programmatically.\nonBlobular|func|no|A callback returning you with a `blobular` instance.\nonBlobCreated|func|no|A callback for when a new blob has been generated.\nonBlobDeleted|func|no|A callback for when an existing blob has been removed.\n-----\n\n\n\n## ✌️ License\n[MIT](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcawfree%2Freact-native-blobular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcawfree%2Freact-native-blobular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcawfree%2Freact-native-blobular/lists"}