From 0cc648518136987e31af5853fde74b52c845a849 Mon Sep 17 00:00:00 2001 From: Wei Shen Date: Sun, 14 Apr 2024 14:52:38 +0800 Subject: [PATCH] fix: downgrade react-native-webview to 13.8.2 to avoid turbomoduleregistry error --- leaflet-web/src/index.tsx | 6 ++---- package.json | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/leaflet-web/src/index.tsx b/leaflet-web/src/index.tsx index 37160da..d5c106d 100644 --- a/leaflet-web/src/index.tsx +++ b/leaflet-web/src/index.tsx @@ -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( diff --git a/package.json b/package.json index 5cabd94..fa962d3 100644 --- a/package.json +++ b/package.json @@ -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"