File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,14 @@ npm install react-native-react-bridge react-native-webview
4747npm install react-dom
4848
4949# Necessary only if you render Preact app in WebView
50+ # preact >= 10.0
5051npm install preact
5152```
5253
5354### Requirements
5455
5556- react >= 16.8
5657- react-native >= 0.60
57- - (preact >= 10.0)
5858
5959### Supported react-native versions
6060
@@ -78,11 +78,14 @@ module.exports = {
7878 babelTransformerPath: require .resolve (' react-native-react-bridge/lib/plugin' ),
7979 ...
8080 },
81+ /*
82+ // optional config
8183 rnrb: {
8284 // Set `true` if you use Preact in web side.
8385 // This will alias imports from `react` and `react-dom` to `preact/compat` automatically.
8486 preact: true
8587 },
88+ */
8689 ...
8790};
8891```
You can’t perform that action at this time.
0 commit comments