chore: fix webview
This commit is contained in:
@@ -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"
|
||||
/>
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user