chore: fix webview

This commit is contained in:
2026-02-21 15:51:56 +01:00
parent 7c8ea006f6
commit 0f02e7e114
5 changed files with 174 additions and 42 deletions
+4 -1
View File
@@ -177,7 +177,7 @@ const TomTomMap = forwardRef<TomTomMapRef, TomTomMapProps>(
<WebView
ref={webViewRef}
style={[styles.map, style]}
source={{ html }}
source={{ html, baseUrl: "https://api.tomtom.com" }}
onMessage={onMessage}
javaScriptEnabled
domStorageEnabled
@@ -185,6 +185,9 @@ const TomTomMap = forwardRef<TomTomMapRef, TomTomMapProps>(
bounces={false}
originWhitelist={["*"]}
mixedContentMode="always"
allowFileAccessFromFileURLs
allowUniversalAccessFromFileURLs
androidLayerType="hardware"
/>
);
},