From 051c46c54eabbbea189e34caecce23c33ad76bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arda=20Sentu=CC=88rk?= Date: Tue, 27 Jun 2023 12:26:26 +0200 Subject: [PATCH] fix: resolve the error preventing the bbnavi website from opening - changed `applicationNameForUserAgent` to `undefined` for bbnavi website because bbnavi prevents the website from opening BBNAV-321 --- src/screens/WebScreen.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/screens/WebScreen.js b/src/screens/WebScreen.js index d0d15b846..3e25342ce 100644 --- a/src/screens/WebScreen.js +++ b/src/screens/WebScreen.js @@ -42,7 +42,9 @@ export const WebScreen = ({ route }) => { // https://github.com/react-native-webview/react-native-webview/blob/19980d888d66554875f3ac64b3e8a35bd7ad998b/src/WebViewTypes.ts#L378-L389 decelerationRate="normal" // https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#applicationnameforuseragent - applicationNameForUserAgent={appJson.expo.scheme} + applicationNameForUserAgent={ + !webUrl.includes('bbnavi.de') ? appJson.expo.scheme : undefined + } /> );