├── .eslintrc.json ├── .gitignore ├── .npmignore ├── .travis.yml ├── LICENSE ├── README.md ├── babel.config.js ├── docs ├── example.gif ├── example.webm └── symbol-error.png ├── example ├── .babelrc ├── .expo-shared │ └── assets.json ├── .flowconfig ├── .gitignore ├── App.js ├── App.test.js ├── README.md ├── app.json ├── html_to_js.sh ├── index.html ├── index.html.js ├── package-lock.json └── package.json ├── package.json ├── src ├── __tests__ │ ├── __snapshots__ │ │ └── webview-rpc-test.js.snap │ ├── dummy.js │ ├── message-channel-polyfill-test.js │ └── webview-rpc-test.js ├── common │ ├── common.js │ ├── global.js │ └── message-channel-polyfill.js ├── native.js ├── native │ ├── webview-endpoint.js │ └── webview-rpc.js ├── web.js └── web │ └── rn-rpc.js └── webpack.config.js /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/.npmignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/babel.config.js -------------------------------------------------------------------------------- /docs/example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/docs/example.gif -------------------------------------------------------------------------------- /docs/example.webm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/docs/example.webm -------------------------------------------------------------------------------- /docs/symbol-error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/docs/symbol-error.png -------------------------------------------------------------------------------- /example/.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/example/.babelrc -------------------------------------------------------------------------------- /example/.expo-shared/assets.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /example/.flowconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/example/.flowconfig -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/example/.gitignore -------------------------------------------------------------------------------- /example/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/example/App.js -------------------------------------------------------------------------------- /example/App.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/example/App.test.js -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/example/README.md -------------------------------------------------------------------------------- /example/app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/example/app.json -------------------------------------------------------------------------------- /example/html_to_js.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/example/html_to_js.sh -------------------------------------------------------------------------------- /example/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/example/index.html -------------------------------------------------------------------------------- /example/index.html.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/example/index.html.js -------------------------------------------------------------------------------- /example/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/example/package-lock.json -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/example/package.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/package.json -------------------------------------------------------------------------------- /src/__tests__/__snapshots__/webview-rpc-test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/src/__tests__/__snapshots__/webview-rpc-test.js.snap -------------------------------------------------------------------------------- /src/__tests__/dummy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/src/__tests__/dummy.js -------------------------------------------------------------------------------- /src/__tests__/message-channel-polyfill-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/src/__tests__/message-channel-polyfill-test.js -------------------------------------------------------------------------------- /src/__tests__/webview-rpc-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/src/__tests__/webview-rpc-test.js -------------------------------------------------------------------------------- /src/common/common.js: -------------------------------------------------------------------------------- 1 | export const rnRpcEventType = 'ReactNativeWebView'; -------------------------------------------------------------------------------- /src/common/global.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/src/common/global.js -------------------------------------------------------------------------------- /src/common/message-channel-polyfill.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/src/common/message-channel-polyfill.js -------------------------------------------------------------------------------- /src/native.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/src/native.js -------------------------------------------------------------------------------- /src/native/webview-endpoint.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/src/native/webview-endpoint.js -------------------------------------------------------------------------------- /src/native/webview-rpc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/src/native/webview-rpc.js -------------------------------------------------------------------------------- /src/web.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/src/web.js -------------------------------------------------------------------------------- /src/web/rn-rpc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/src/web/rn-rpc.js -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronhe/rn-webview-rpc/HEAD/webpack.config.js --------------------------------------------------------------------------------