Skip to content

Commit d4ed8b5

Browse files
committed
Update README.md
1 parent 361b6ce commit d4ed8b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ The communication between React app and React Native app will be also simplified
2222
- `.js`, `.ts`, `.jsx`, `.tsx` will be packed into one source.
2323
- NOTE: Only the edits in the entry file of web will invoke rebuild because of the limitation of [metro](https://github.com/facebook/metro)'s build process.
2424
- Handle communication between React Native and WebView with React hook style
25+
- With `useBridge` hook, you can subscribe messages from WebView.
26+
- With `useSubscribe` hook, you can subscribe messages from React Native.
27+
- `emit` function sends message.
2528
- Support bundling some assets in web side with ES6 import syntax
2629
- `.json` is imported as an object, like require in Node.js.
2730
- `.css` is injected to the HTML head of WebView, like [css-loader](https://github.com/webpack-contrib/css-loader).

0 commit comments

Comments
 (0)