# react-native-webviewbridge

> react-native-webviewbridge react-native-autoheight-webview react-native-auto-height-webview react-native-webview-bridge react-native-bridge-webview react-native-bridgewebview

Latest version **3.2.2** (published 2017-11-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-webviewbridge
pnpm add react-native-webviewbridge
yarn add react-native-webviewbridge
bun add react-native-webviewbridge
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.2.2 |
| Published | 2017-11-14 |
| First published | 2017-05-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | root@68xg.com |
| Maintainers | techbin |
| Keywords | react-native-webview-bridge, react-native-bridge-webview, react-native-webviewbridge, react-native-bridgewebview, react-native-autoheight-webview, react-native-auto-height-webview |

## Links

- npm: https://www.npmjs.com/package/react-native-webviewbridge
- Repository: https://github.com/shenzhenjinma/react-native-webview-bridge
- Homepage: https://github.com/shenzhenjinma/react-native-webview-bridge#readme
- Issues: https://github.com/shenzhenjinma/react-native-webview-bridge/issues
- npm.io page: https://npm.io/package/react-native-webviewbridge

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 3.2.2 (latest) — 2017-11-14
- 3.2.1 — 2017-11-14
- 3.2.0 — 2017-11-13
- 3.1.9 — 2017-05-05

## README

# react-native-webview-bridge
An  webview bridge for React Native.

`npm install react-native-webviewbridge --save`



# usage

```javascript
<WebViewBridge
	ref={webview => this.WebViewBridge = webview}
	onMessage={this.onMessage}
	autoHeight={true}//如果使用自动高度
	source={{uri:'http://youurl.com/aaa.html'}}
/>
//网页发送信息给rn（string类型）  window.postMessage("发送的信息内容")
//rn发送信息给网页（必须是js代码）  this.WebViewBridge.runjs("alert('h5会弹出一个弹出框')")
```

---
_Source: https://npm.io/package/react-native-webviewbridge · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
