{"id":17492156,"url":"https://github.com/chunkhang/react-native-ios-debug-bridge","last_synced_at":"2025-03-28T17:13:37.856Z","repository":{"id":57337769,"uuid":"206132748","full_name":"chunkhang/react-native-ios-debug-bridge","owner":"chunkhang","description":"Debug server host and port for React Native iOS","archived":false,"fork":false,"pushed_at":"2019-09-04T16:19:05.000Z","size":242,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T23:32:19.168Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/chunkhang.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-09-03T17:21:40.000Z","updated_at":"2020-01-17T04:55:58.000Z","dependencies_parsed_at":"2022-09-11T08:21:25.943Z","dependency_job_id":null,"html_url":"https://github.com/chunkhang/react-native-ios-debug-bridge","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunkhang%2Freact-native-ios-debug-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunkhang%2Freact-native-ios-debug-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunkhang%2Freact-native-ios-debug-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunkhang%2Freact-native-ios-debug-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chunkhang","download_url":"https://codeload.github.com/chunkhang/react-native-ios-debug-bridge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246068302,"owners_count":20718503,"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":[],"created_at":"2024-10-19T08:23:33.295Z","updated_at":"2025-03-28T17:13:37.818Z","avatar_url":"https://github.com/chunkhang.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-ios-debug-bridge\n![npm version][npm]\n![MIT license][mit]\n\n\u003e Debug server host and port for React Native iOS\n\n## Installation\n\nFirstly, install the package:\n\n```\nnpm install --save react-native-ios-debug-bridge\n```\n\nThen, link the iOS dependency:\n\n```\nreact-native link react-native-ios-debug-bridge\n```\n\nYou should see something like this added to your `Podfile`:\n\n```\npod 'SCDebugBridge', :path =\u003e '../node_modules/react-native-ios-debug-bridge'\n```\n\nNow, you just need to run:\n\n```\npod install\n```\n\nFinally, update the return value of `sourceURLForBridge` for debug mode\nin `AppDelegate.m`:\n\n```objc\n#import \"SCDebugBridge.h\"\n\n- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge\n{\n#if DEBUG\n  NSDictionary *ipAndPort = [SCDebugBridge getIpAndPort];\n  return [NSURL URLWithString:[NSString stringWithFormat:@\"http://%@:%@/index.bundle?platform=ios\u0026dev=true\u0026minify=false\", ipAndPort[@\"ip\"], ipAndPort[@\"port\"]]];\n#else\n  return [CodePush bundleURL];\n#endif\n}\n```\n\n## Usage\n\n1. Shake the device, or use `Command + D` if it's a simulator, to launch\nthe menu.\n\n2. Click on `Debug Server Host \u0026 Port` to spawn the dialog.\n\n3. Enter the IP address.\n\n4. Click `Reload`.\n\n\u003cimg src=\"./images/menu.jpg\" width=\"300\"\u003e\n\u003cimg src=\"./images/dialog.jpg\" width=\"300\"\u003e\n\n## Acknowledgement\n\nThe original source code is from the [Aevit/SCRNDemo][scrn-demo]\nrepository. I just modified it to make it easier to install as a\npackage.\n\n[npm]: https://img.shields.io/npm/v/react-native-ios-debug-bridge\n[mit]: https://img.shields.io/github/license/chunkhang/react-native-ios-debug-bridge\n[scrn-demo]: https://github.com/Aevit/SCRNDemo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchunkhang%2Freact-native-ios-debug-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchunkhang%2Freact-native-ios-debug-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchunkhang%2Freact-native-ios-debug-bridge/lists"}