{"id":14958630,"url":"https://github.com/brunobar79/react-native-web3-webview","last_synced_at":"2025-05-02T12:32:04.369Z","repository":{"id":57341404,"uuid":"146978916","full_name":"brunobar79/react-native-web3-webview","owner":"brunobar79","description":"A react native webview optimized for a web3 dApp browser application","archived":false,"fork":false,"pushed_at":"2019-09-09T21:34:46.000Z","size":142,"stargazers_count":35,"open_issues_count":5,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-21T05:07:45.130Z","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/brunobar79.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":"2018-09-01T07:46:01.000Z","updated_at":"2024-07-31T01:40:35.000Z","dependencies_parsed_at":"2022-09-14T04:30:15.551Z","dependency_job_id":null,"html_url":"https://github.com/brunobar79/react-native-web3-webview","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunobar79%2Freact-native-web3-webview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunobar79%2Freact-native-web3-webview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunobar79%2Freact-native-web3-webview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunobar79%2Freact-native-web3-webview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brunobar79","download_url":"https://codeload.github.com/brunobar79/react-native-web3-webview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252038231,"owners_count":21684657,"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-09-24T13:17:37.163Z","updated_at":"2025-05-02T12:31:59.356Z","avatar_url":"https://github.com/brunobar79.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-web3-webview\n\n[![npm](https://img.shields.io/npm/v/react-native-web3-webview.svg)](https://npmjs.com/package/react-native-web3-webview) [![npm](https://img.shields.io/npm/dm/react-native-web3-webview.svg)](https://npmjs.com/package/react-native-web3-webview)\n\n\nA cross platform react native webview with some improvements that allow a javascript injection, which is specifically used by web3 mobile dapp browsers.\n\nThe iOS version is based on [react-native-wkwebview-reborn](https://github.com/CRAlpha/react-native-wkwebview) and the Android version is based on [react-native-webview-bridge](https://github.com/alinz/react-native-webview-bridge) and [react-native-webview](https://github.com/react-native-community/react-native-webview/)\n \n## Getting started\n\n`$ npm install react-native-web3-webview --save`\n\n### Mostly automatic installation\n\n`$ react-native link react-native-web3-webview`\n\n### Manual installation\n\n\n#### iOS\n\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2. Go to `node_modules` ➜ `react-native-web3-webview` and add `RNWeb3Webview.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNWeb3Webview.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Run your project (`Cmd+R`)\u003c\n\n#### Android\n\n1. Open up `android/app/src/main/java/[...]/MainActivity.java`\n  - Add `import com.reactlibrary.RNWeb3WebviewPackage;` to the imports at the top of the file\n  - Add `new RNWeb3WebviewPackage()` to the list returned by the `getPackages()` method\n2. Append the following lines to `android/settings.gradle`:\n  \t```\n  \tinclude ':react-native-web3-webview'\n  \tproject(':react-native-web3-webview').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-web3-webview/android')\n  \t```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n  \t```\n      compile project(':react-native-web3-webview')\n  \t```\n\n\n## Usage\n```javascript\nimport Web3Webview from 'react-native-web3-webview';\n\n...\n\nrender(){\n  return (\n    \u003cWeb3Webview\n        injectedOnStartLoadingJavaScript={ jsStringToInject }\n        onProgress={this.onLoadProgress}\n        onMessage={this.onMessage}\n        onNavigationStateChange={this.onPageChange}\n        ref={this.webview}\n        source={{ uri: url }}\n        style={baseStyles.flexGrow}\n     /\u003e\n  );  \n}\n\n\n```\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunobar79%2Freact-native-web3-webview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrunobar79%2Freact-native-web3-webview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunobar79%2Freact-native-web3-webview/lists"}