{"id":19923375,"url":"https://github.com/revtel/react-native-own-bridge","last_synced_at":"2025-05-03T07:31:05.187Z","repository":{"id":57338907,"uuid":"105863426","full_name":"revtel/react-native-own-bridge","owner":"revtel","description":"The missing CLI tool to generate project specific native bridges with a single command.","archived":false,"fork":false,"pushed_at":"2017-10-05T16:28:57.000Z","size":9,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-17T18:11:56.284Z","etag":null,"topics":["android","cli","ios","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/revtel.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":"2017-10-05T07:55:18.000Z","updated_at":"2023-08-01T09:07:04.000Z","dependencies_parsed_at":"2022-09-01T20:11:59.690Z","dependency_job_id":null,"html_url":"https://github.com/revtel/react-native-own-bridge","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revtel%2Freact-native-own-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revtel%2Freact-native-own-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revtel%2Freact-native-own-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revtel%2Freact-native-own-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/revtel","download_url":"https://codeload.github.com/revtel/react-native-own-bridge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252156837,"owners_count":21703363,"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":["android","cli","ios","react-native"],"created_at":"2024-11-12T22:14:03.607Z","updated_at":"2025-05-03T07:31:04.741Z","avatar_url":"https://github.com/revtel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-own-bridge\n\nThe missing CLI tool to generate `project specific` native bridges with a single command.\n\n**Contributions are welcomed!**\n\n## Why Do You Need This Tool?\n\nBecause scaffolding new native bridges is a **TEDIOUS** and **ERROR-PRONE** task!\n\n* You might forget to add a `;` in Obj-C or Java\n* You might forget to `import` in Obj-C or Java\n* You might need to refer to official doc and then jump back to your editor back and force, then makes some typo...\n* You might need to switch between your JS code editor and XCode / Android Studio back and forth, then again makes more typo...\n\nAnd we already have some good tools targeting on **CREATING A NEW RN BRIDGE LIBRARY**, such as:\n\n* react-native-create-library (https://github.com/frostney/react-native-create-library)\n* react-native-create-bridge (https://github.com/peggyrayzis/react-native-create-bridge)\n\nBut..., what if you need to write your **OWN PRIVATE NATIVE CODES**? For cases such as: \n\n* Integrating existing native logic\n* Multi-threading stuff\n* Performance optimization\n* Simply not ready / no plan to publish your native stuff as a new open-source library\n\nAnyway, if you're planning to write some native code, we hope this tool can help you!\n\n## Supported Platforms\n\nTarget platforms\n- Android \n- iOS \n\nHost platforms (the machine running this CLI)\n- Mac\n- Linux\n\n## Install\n```shell\nnpm i -g react-native-own-bridge\n# you might need to add `sudo` for certain platform\n```\n\n## Usage\n\nOnce installed, in your react-native project root folder:\n\n```shell\nreact-native-own-bridge -n MyAwesomeModule\n```\n\nWe'll create following files into corresponding directories for you:\n- MyAwesomeModule.js\n- (ios) MyAwesomeModule.h\n- (ios) MyAwesomeModule.m\n- (android) MyAwesomeModule.java\n- (android) MyAwesomeModulePackage.java\n\nNot only that, we also take care of integrating this new added stuff into your existing code.\n- (ios) AppDelegate.m will be modified to include your new native module\n- (android) MainApplication.java will be modified to include your new native module\n\nYou can also see other detail options via `react-native-own-bridge --help`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevtel%2Freact-native-own-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevtel%2Freact-native-own-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevtel%2Freact-native-own-bridge/lists"}