File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -158,8 +158,7 @@ import webApp from "./WebApp";
158158
159159const 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 / >
You can’t perform that action at this time.
0 commit comments