Skip to content

Commit 43ac6d0

Browse files
committed
Update README.md
1 parent 062a71d commit 43ac6d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ import webApp from "./WebApp";
158158

159159
const App = () => {
160160
// useBridge hook create props for WebView and handle communication
161-
// 1st argument is the source code of React app
162-
// 2nd argument is callback to receive message from React
161+
// The argument is callback to receive message from React
163162
const { ref, onMessage, emit } = useBridge((message) => {
164163
// emit sends message to React
165164
// type: event name
@@ -173,6 +172,7 @@ const App = () => {
173172
<WebView
174173
// ref, source and onMessage must be passed to react-native-webview
175174
ref={ref}
175+
// Pass the source code of React app
176176
source={{ html: webApp }}
177177
onMessage={onMessage}
178178
/>

0 commit comments

Comments
 (0)