File tree Expand file tree Collapse file tree 7 files changed +21
-10
lines changed Expand file tree Collapse file tree 7 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ npm install preact
6060
6161| react-native-react-bridge | react-native |
6262| ------------------------- | ------------ |
63+ | >=0.9.0 | >=0.65.0 |
6364| 0.0.0 - 0.8.1 | <=0.64.2 |
6465
6566## Usage
Original file line number Diff line number Diff line change @@ -30,7 +30,12 @@ const App = () => {
3030 return (
3131 < SafeAreaView style = { styles . container } >
3232 < View style = { styles . top } >
33- < WebView ref = { ref } source = { { html : webApp } } onMessage = { onMessage } />
33+ < WebView
34+ ref = { ref }
35+ source = { { html : webApp } }
36+ onMessage = { onMessage }
37+ onError = { console . log }
38+ />
3439 </ View >
3540 < View style = { styles . bottom } >
3641 < TextInput
Original file line number Diff line number Diff line change 1414 "react" : " 17.0.2" ,
1515 "react-dom" : " 17.0.2" ,
1616 "react-native" : " 0.66.3" ,
17- "react-native-react-bridge" : " 0.8.1 " ,
17+ "react-native-react-bridge" : " 0.9.0 " ,
1818 "react-native-webview" : " 11.0.2"
1919 },
2020 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -5252,10 +5252,10 @@ react-native-codegen@^0.0.7:
52525252 jscodeshift "^0.11.0"
52535253 nullthrows "^1.1.1"
52545254
5255- react-native-react-bridge@0.8.1 :
5256- version "0.8.1 "
5257- resolved "https://registry.yarnpkg.com/react-native-react-bridge/-/react-native-react-bridge-0.8.1 .tgz#874c22075a06b3ba3a53f3001c2afe588535a78d "
5258- integrity sha512-HE5jjMzILtxz9JFQyKVhtIn4UutPAOMq6F/LSt/F77wzZ0Qq35OaFH9SwS1gd6yzauhr5yj5YAifOpivfOzEbQ ==
5255+ react-native-react-bridge@0.9.0 :
5256+ version "0.9.0 "
5257+ resolved "https://registry.yarnpkg.com/react-native-react-bridge/-/react-native-react-bridge-0.9.0 .tgz#357d98db72bf1e5dd063997eba37eba02c2ab1c2 "
5258+ integrity sha512-d+rRThq7Mu6OgVC+pMBQEg5reyXTorT3nnJ+xfeX+6ACSn/+RpQBIpuawEyFs7KuSrcUAjcDHs0T04jnGLxdvA ==
52595259 dependencies :
52605260 babel-plugin-module-resolver "4.1.0"
52615261
Original file line number Diff line number Diff line change @@ -22,7 +22,12 @@ export default function App() {
2222 return (
2323 < SafeAreaView style = { styles . container } >
2424 < View style = { styles . top } >
25- < WebView ref = { ref } source = { { html : webApp } } onMessage = { onMessage } />
25+ < WebView
26+ ref = { ref }
27+ source = { { html : webApp } }
28+ onMessage = { onMessage }
29+ onError = { console . log }
30+ />
2631 </ View >
2732 < View style = { styles . bottom } >
2833 < TextInput
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-react-bridge" ,
3- "version" : " 0.8.1 " ,
3+ "version" : " 0.9.0 " ,
44 "description" : " An easy way to integrate your React (or Preact) app into React Native app with WebView." ,
55 "main" : " lib/index.js" ,
66 "module" : " lib/index.mjs" ,
You can’t perform that action at this time.
0 commit comments