Skip to content

Commit

Permalink
fix: downgrade react-native-webview to 13.8.2 to avoid turbomodulereg…
Browse files Browse the repository at this point in the history
…istry error
  • Loading branch information
Wei Shen committed Apr 14, 2024
1 parent 11355dc commit 6951e66
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
6 changes: 2 additions & 4 deletions leaflet-web/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import { createRoot } from 'react-dom/client';
import './styles/index.css';
import { NativeHarness } from './NativeHarness';

const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
const root = createRoot(document.getElementById('root') as HTMLElement);
root.render(
<React.StrictMode>
<NativeHarness />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"react-fast-compare": "^3.2.2",
"react-native": "0.73.0",
"react-native-builder-bob": "^0.20.0",
"react-native-webview": "^13.8.4",
"react-native-webview": "13.8.2",
"release-it": "^15.0.0",
"turbo": "^1.10.7",
"typescript": "^5.4.3"
Expand Down
15 changes: 14 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11076,7 +11076,7 @@ __metadata:
react-fast-compare: ^3.2.2
react-native: 0.73.0
react-native-builder-bob: ^0.20.0
react-native-webview: ^13.8.4
react-native-webview: 13.8.2
release-it: ^15.0.0
turbo: ^1.10.7
typescript: ^5.4.3
Expand All @@ -11088,6 +11088,19 @@ __metadata:
languageName: unknown
linkType: soft

"react-native-webview@npm:13.8.2":
version: 13.8.2
resolution: "react-native-webview@npm:13.8.2"
dependencies:
escape-string-regexp: 2.0.0
invariant: 2.2.4
peerDependencies:
react: "*"
react-native: "*"
checksum: ae58584e140e8b3acbc975960e0c5ede4c11c6bece3e5bc736ab165fffd9567bb97f9d6482d4b4579e39b291bb69e813209d1f176327ea17d0d363b2f43a0922
languageName: node
linkType: hard

"react-native-webview@npm:^13.8.4":
version: 13.8.4
resolution: "react-native-webview@npm:13.8.4"
Expand Down

0 comments on commit 6951e66

Please sign in to comment.