{"id":26121920,"url":"https://github.com/ipfs-shipyard/react-native-ipfs-demo","last_synced_at":"2025-10-10T04:33:56.235Z","repository":{"id":66181982,"uuid":"292297119","full_name":"ipfs-shipyard/react-native-ipfs-demo","owner":"ipfs-shipyard","description":"Demo app exploring IPFS in React Native.","archived":false,"fork":false,"pushed_at":"2025-05-01T07:33:26.000Z","size":1344,"stargazers_count":29,"open_issues_count":4,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-10T04:33:50.459Z","etag":null,"topics":["android","ios","ipfs","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/ipfs-shipyard.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-09-02T13:53:27.000Z","updated_at":"2025-05-01T07:33:29.000Z","dependencies_parsed_at":"2025-10-10T04:33:51.185Z","dependency_job_id":null,"html_url":"https://github.com/ipfs-shipyard/react-native-ipfs-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ipfs-shipyard/react-native-ipfs-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs-shipyard%2Freact-native-ipfs-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs-shipyard%2Freact-native-ipfs-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs-shipyard%2Freact-native-ipfs-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs-shipyard%2Freact-native-ipfs-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipfs-shipyard","download_url":"https://codeload.github.com/ipfs-shipyard/react-native-ipfs-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfs-shipyard%2Freact-native-ipfs-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002674,"owners_count":26083442,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","ios","ipfs","react-native"],"created_at":"2025-03-10T14:37:27.573Z","updated_at":"2025-10-10T04:33:56.220Z","avatar_url":"https://github.com/ipfs-shipyard.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IPFS React Native Demo App\n\nThis project explores and documents how IPFS' HTTP client can be used in a React Native app targeting Android and iOS platforms.\n\n## Usage\n\nSpawn a local IPFS node with the `daemon` command. The app assumes the HTTP API is exposed at http://localhost:5002.\n\n### Run the app on Android\n\n```sh\n$ npm run android:debug\n```\n\n```sh\n$ npm run android:release\n```\n\nIn order connect to the IPFS node running on your development machine when running the app on a physical device with USB debugging enabled, run the following command:\n\n```sh\n$ adb -s \u003cdevice name\u003e reverse tcp:5002 tcp:5002\n```\n\nTo find the device name, run the following `adb` command:\n\n```sh\n$ adb devices\n```\n\nSources:\n\n- https://reactnative.dev/docs/running-on-device#method-1-using-adb-reverse-recommended\n- https://stackoverflow.com/a/43277765/1694191\n- https://stackoverflow.com/a/5806384/1694191\n\n### Run the app on iOS\n\n```sh\nnpm run ios:debug\n```\n\n```sh\nnpm run ios:release\n```\n\nIn order connect to the IPFS node running on your development machine when running the app on a physical iPhone, you must use the LAN IP of your machine. Also, note that In order to run the app on a physical iPhone, you must create and setup an Apple Developer Certificate.\n\n### Configuration\n\nIf you need to change the input URLs for the HTTP client factory on both Android and iOS, you can do so by editing [config.js](src/config.js) file.\n\nFeel free to tweak the parameters (CIDs, multiaddr, etc.) for each HTTP client method by editing the corresponding code in each [screen](src/screens).\n## Requirements to use HTTP client\n\n- [react-native-polyfill-globals](https://github.com/acostalima/react-native-polyfill-globals) - Polyfills and patches missing or partially supported web and core APIs.\n- [react-native-fetch-api](https://github.com/react-native-community/fetch) - A fetch API polyfill for React Native with text streaming support built on top of React Native's [Networking API](https://github.com/facebook/react-native/blob/v0.63.4/Libraries/Network).\n- [@babel/plugin-proposal-async-generator-functions](https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-async-generator-functions)\n\nThe environment must be [polyfilled](shims/index.js) right when your app starts and before anything is rendered.\n\n### Alternative fetch polyfill\n\nInstead of using the fetch implementation that [ships](https://github.com/facebook/react-native/blob/v0.63.4/Libraries/Network/fetch.js) with React Native, which is provided by [GitHub's fetch polyfill](https://github.com/github/fetch), this demo is now using `react-native-fetch-api`. It implements `Response.body` to add support for text streaming via native incremental data events.\n\n## Known issues and limitations\n\n- It's not possible to create `Blob`s from `ArrayBuffer`s and `ArrayBufferView`s.\n    - Source: https://github.com/facebook/react-native/blob/v0.63.4/Libraries/Blob/BlobManager.js#L75. \n- In debug mode, an error screen is always displayed every time `console.error` or `console.error` functions are called.\n    - Track: https://github.com/facebook/react-native/issues/30378\n- Support for missing core functionality or features required by the HTTP client to operate is added by [react-native-polyfill-globals](https://github.com/acostalima/react-native-polyfill-globals). Confer the [patch](https://github.com/acostalima/react-native-polyfill-globals/blob/master/patches/react-native%2B0.63.3.patch) file.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfs-shipyard%2Freact-native-ipfs-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipfs-shipyard%2Freact-native-ipfs-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfs-shipyard%2Freact-native-ipfs-demo/lists"}