{"id":4638,"url":"https://github.com/jordaaash/react-native-webview-crosswalk","last_synced_at":"2025-03-16T15:31:56.749Z","repository":{"id":57341468,"uuid":"52347486","full_name":"jordaaash/react-native-webview-crosswalk","owner":"jordaaash","description":"Crosswalk's WebView for React Native on Android.","archived":false,"fork":false,"pushed_at":"2017-07-13T01:16:02.000Z","size":40090,"stargazers_count":97,"open_issues_count":14,"forks_count":71,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-07T00:08:35.905Z","etag":null,"topics":["android","crosswalk","java","react","react-native","webview"],"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/jordaaash.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":"2016-02-23T09:33:17.000Z","updated_at":"2024-11-04T05:20:08.000Z","dependencies_parsed_at":"2022-09-14T04:30:22.562Z","dependency_job_id":null,"html_url":"https://github.com/jordaaash/react-native-webview-crosswalk","commit_stats":null,"previous_names":["jordaaash/react-native-webview-crosswalk","jordansexton/react-native-webview-crosswalk"],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordaaash%2Freact-native-webview-crosswalk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordaaash%2Freact-native-webview-crosswalk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordaaash%2Freact-native-webview-crosswalk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordaaash%2Freact-native-webview-crosswalk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jordaaash","download_url":"https://codeload.github.com/jordaaash/react-native-webview-crosswalk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242900058,"owners_count":20203704,"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","crosswalk","java","react","react-native","webview"],"created_at":"2024-01-05T20:17:18.681Z","updated_at":"2025-03-16T15:31:56.390Z","avatar_url":"https://github.com/jordaaash.png","language":"Java","funding_links":[],"categories":["Components"],"sub_categories":["Web"],"readme":"# react-native-webview-crosswalk\nCrosswalk's WebView for React Native on Android.\n\n[![npm version](http://img.shields.io/npm/v/react-native-webview-crosswalk.svg?style=flat-square)](https://npmjs.org/package/react-native-webview-crosswalk \"View this project on npm\")\n[![npm downloads](http://img.shields.io/npm/dm/react-native-webview-crosswalk.svg?style=flat-square)](https://npmjs.org/package/react-native-webview-crosswalk \"View this project on npm\")\n[![npm licence](http://img.shields.io/npm/l/react-native-webview-crosswalk.svg?style=flat-square)](https://npmjs.org/package/react-native-webview-crosswalk \"View this project on npm\")\n\n### Dependencies\n\n* [0.4.0](https://github.com/jordansexton/react-native-webview-crosswalk/releases/tag/v0.4.0)+: `react-native \u003e=0.32.0`, `react \u003e= 15.3.0`\n\n* [0.3.0](https://github.com/jordansexton/react-native-webview-crosswalk/releases/tag/v0.3.0)+: `react-native \u003e=0.29.0`, `react \u003e= 15.2.0`\n\n* [0.2.0](https://github.com/jordansexton/react-native-webview-crosswalk/releases/tag/v0.2.0)+: `react-native \u003e=0.25.0`, `react \u003e= 0.14.5`\n\n* [0.1.0](https://github.com/jordansexton/react-native-webview-crosswalk/releases/tag/v0.1.0): `react-native \u003e= 0.19.0`\n\n### Installation\n\n* From the root of your React Native project\n\n```shell\nnpm install react-native-webview-crosswalk --save\nmkdir android/app/libs\ncp node_modules/react-native-webview-crosswalk/libs/xwalk_core_library-22.52.561.4.aar android/app/libs/\n```\n\n### Include module in your Android project\n\n* In `android/setting.gradle`\n\n```gradle\n...\ninclude ':CrosswalkWebView', ':app'\nproject(':CrosswalkWebView').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webview-crosswalk')\n```\n\n### Include libs in your Android project\n\n* In `android/build.gradle`\n\n```gradle\n...\nallprojects {\n    repositories {\n        mavenLocal()\n        jcenter()\n\n        flatDir {          // \u003c--- add this line\n            dirs 'libs'    // \u003c--- add this line\n        }                  // \u003c--- add this line\n    }\n}\n```\n\n* In `android/app/build.gradle`\n\n```gradle\n...\ndependencies {\n  ...\n  compile (name: \"xwalk_core_library-22.52.561.4\", ext: \"aar\")     // \u003c--- add this line\n  compile project(':CrosswalkWebView')                             // \u003c--- add this line\n}\n```\n* Register package :\n\nIf [0.1.0](https://github.com/jordansexton/react-native-webview-crosswalk/releases/tag/v0.1.0) or [0.2.0](https://github.com/jordansexton/react-native-webview-crosswalk/releases/tag/v0.2.0)+ used add code into MainActivity.java\n\n```java\nimport com.jordansexton.react.crosswalk.webview.CrosswalkWebViewPackage;    // \u003c--- add this line\n\npublic class MainActivity extends ReactActivity {\n  ......\n\n  @Override\n  protected List\u003cReactPackage\u003e getPackages() {\n    return Arrays.\u003cReactPackage\u003easList(\n        new MainReactPackage(),\n        new CrosswalkWebViewPackage(this)    // \u003c--- add this line\n    );\n  }\n\n  ......\n\n}\n```\n\nIf [0.3.0](https://github.com/jordansexton/react-native-webview-crosswalk/releases/tag/v0.3.0)+ used add code into MainApplication.java\n\n```java\nimport com.jordansexton.react.crosswalk.webview.CrosswalkWebViewPackage;    // \u003c--- add this line\n\npublic class MainApplication extends Application implements ReactApplication {\n  ......\n\n  @Override\n  protected List\u003cReactPackage\u003e getPackages() {\n    return Arrays.\u003cReactPackage\u003easList(\n        new MainReactPackage(),\n        new CrosswalkWebViewPackage()    // \u003c--- add this line\n    );\n  }\n\n  ......\n\n}\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordaaash%2Freact-native-webview-crosswalk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjordaaash%2Freact-native-webview-crosswalk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordaaash%2Freact-native-webview-crosswalk/lists"}