Skip to content

Commit

Permalink
0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Jan 3, 2022
1 parent a74c923 commit 5a7cd97
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 10 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ npm install preact

| react-native-react-bridge | react-native |
| ------------------------- | ------------ |
| >=0.9.0 | >=0.65.0 |
| 0.0.0 - 0.8.1 | <=0.64.2 |

## Usage
Expand Down
7 changes: 6 additions & 1 deletion examples/DemoApp/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ const App = () => {
return (
<SafeAreaView style={styles.container}>
<View style={styles.top}>
<WebView ref={ref} source={{html: webApp}} onMessage={onMessage} />
<WebView
ref={ref}
source={{html: webApp}}
onMessage={onMessage}
onError={console.log}
/>
</View>
<View style={styles.bottom}>
<TextInput
Expand Down
2 changes: 1 addition & 1 deletion examples/DemoApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react": "17.0.2",
"react-dom": "17.0.2",
"react-native": "0.66.3",
"react-native-react-bridge": "0.8.1",
"react-native-react-bridge": "0.9.0",
"react-native-webview": "11.0.2"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions examples/DemoApp/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5252,10 +5252,10 @@ react-native-codegen@^0.0.7:
jscodeshift "^0.11.0"
nullthrows "^1.1.1"

react-native-react-bridge@0.8.1:
version "0.8.1"
resolved "https://registry.yarnpkg.com/react-native-react-bridge/-/react-native-react-bridge-0.8.1.tgz#874c22075a06b3ba3a53f3001c2afe588535a78d"
integrity sha512-HE5jjMzILtxz9JFQyKVhtIn4UutPAOMq6F/LSt/F77wzZ0Qq35OaFH9SwS1gd6yzauhr5yj5YAifOpivfOzEbQ==
react-native-react-bridge@0.9.0:
version "0.9.0"
resolved "https://registry.yarnpkg.com/react-native-react-bridge/-/react-native-react-bridge-0.9.0.tgz#357d98db72bf1e5dd063997eba37eba02c2ab1c2"
integrity sha512-d+rRThq7Mu6OgVC+pMBQEg5reyXTorT3nnJ+xfeX+6ACSn/+RpQBIpuawEyFs7KuSrcUAjcDHs0T04jnGLxdvA==
dependencies:
babel-plugin-module-resolver "4.1.0"

Expand Down
7 changes: 6 additions & 1 deletion examples/DemoAppExpo/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ export default function App() {
return (
<SafeAreaView style={styles.container}>
<View style={styles.top}>
<WebView ref={ref} source={{ html: webApp }} onMessage={onMessage} />
<WebView
ref={ref}
source={{ html: webApp }}
onMessage={onMessage}
onError={console.log}
/>
</View>
<View style={styles.bottom}>
<TextInput
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-react-bridge",
"version": "0.8.1",
"version": "0.9.0",
"description": "An easy way to integrate your React (or Preact) app into React Native app with WebView.",
"main": "lib/index.js",
"module": "lib/index.mjs",
Expand Down

0 comments on commit 5a7cd97

Please sign in to comment.