Skip to content

Commit 3ae80ba

Browse files
committed
Update demo
1 parent 854e0ba commit 3ae80ba

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

examples/DemoApp/Octocat.png

2.03 MB
Loading

examples/DemoApp/WebApp.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
useSubscribe,
77
} from 'react-native-react-bridge/lib/web';
88
import './example.css';
9+
import png from './Octocat.png';
910

1011
const style = {
1112
width: '100vw',
@@ -23,6 +24,9 @@ const Root = () => {
2324
});
2425
return (
2526
<div style={style}>
27+
<div>
28+
<img src={png} width={100} height={'auto'} />
29+
</div>
2630
<textarea value={data} onChange={(e) => setData(e.target.value)} />
2731
<div>
2832
<button onClick={() => emit({type: 'hi', data: data})}>

examples/DemoApp/package-lock.json

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

examples/DemoApp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"react": "16.13.1",
1515
"react-dom": "16.13.1",
1616
"react-native": "0.63.4",
17-
"react-native-react-bridge": "0.2.0",
17+
"react-native-react-bridge": "0.3.0",
1818
"react-native-webview": "11.0.2"
1919
},
2020
"devDependencies": {

0 commit comments

Comments
 (0)