Skip to content

Commit 5a7cd97

Browse files
committed
0.9.0
1 parent a74c923 commit 5a7cd97

File tree

7 files changed

+21
-10
lines changed

7 files changed

+21
-10
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

examples/DemoApp/App.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

examples/DemoApp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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": {

examples/DemoApp/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

examples/DemoAppExpo/App.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)