{"id":4640,"url":"https://github.com/ivanph/react-native-webintent","last_synced_at":"2025-08-04T01:32:47.188Z","repository":{"id":57341430,"uuid":"43033871","full_name":"ivanph/react-native-webintent","owner":"ivanph","description":"React-native module for android to open urls in the default browser","archived":false,"fork":false,"pushed_at":"2015-12-07T06:11:50.000Z","size":89,"stargazers_count":53,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T15:48:23.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/ivanph.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":"2015-09-23T23:57:48.000Z","updated_at":"2019-08-18T16:52:14.000Z","dependencies_parsed_at":"2022-09-08T03:00:31.381Z","dependency_job_id":null,"html_url":"https://github.com/ivanph/react-native-webintent","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ivanph/react-native-webintent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanph%2Freact-native-webintent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanph%2Freact-native-webintent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanph%2Freact-native-webintent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanph%2Freact-native-webintent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanph","download_url":"https://codeload.github.com/ivanph/react-native-webintent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanph%2Freact-native-webintent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268636477,"owners_count":24282095,"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-08-03T02:00:12.545Z","response_time":2577,"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":[],"created_at":"2024-01-05T20:17:18.739Z","updated_at":"2025-08-04T01:32:46.838Z","avatar_url":"https://github.com/ivanph.png","language":"Java","readme":"# react-native-webintent\n\nA React Native web intent for Android. Allows to open links in the default browser.\n\n### Notice\n\nAs of [version 0.15](https://github.com/facebook/react-native/releases/tag/v0.15.0) react-native includes a `IntentAndroid` module that might suit yours needs better.\n\n### Installation\n\n```bash\nnpm install --save react-native-webintent\n```\n\n### Add it to your android project\n\n* In `android/setting.gradle`\n\n```gradle\n...\ninclude ':RNWebIntent', ':app'\nproject(':RNWebIntent').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webintent')\n```\n\n* In `android/app/build.gradle`\n\n```gradle\n...\ndependencies {\n    ...\n    compile project(':RNWebIntent')\n}\n```\n\n* register module (in MainActivity.java)\n\n```java\nimport com.ivanph.webintent.RNWebIntentPackage;;  // \u003c--- import\n\npublic class MainActivity extends Activity implements DefaultHardwareBackBtnHandler {\n  ......\n\n  @Override\n  protected void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n    mReactRootView = new ReactRootView(this);\n\n    mReactInstanceManager = ReactInstanceManager.builder()\n      .setApplication(getApplication())\n      .setBundleAssetName(\"index.android.bundle\")\n      .setJSMainModuleName(\"index.android\")\n      .addPackage(new MainReactPackage())\n      .addPackage(new RNWebIntentPackage())              // \u003c------ add here\n      .setUseDeveloperSupport(BuildConfig.DEBUG)\n      .setInitialLifecycleState(LifecycleState.RESUMED)\n      .build();\n\n    mReactRootView.startReactApplication(mReactInstanceManager, \"ExampleRN\", null);\n\n    setContentView(mReactRootView);\n  }\n\n  ......\n\n}\n```\n\n## Example\n```javascript\nvar WebIntent = require('react-native-webintent');\n\nWebIntent.open('https://google.com');\n```\n## License\n\nMIT\n","funding_links":[],"categories":["Components","Java"],"sub_categories":["Web"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanph%2Freact-native-webintent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanph%2Freact-native-webintent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanph%2Freact-native-webintent/lists"}