From fc47332d616bb8f56c8bc04abab6621a3b33dd94 Mon Sep 17 00:00:00 2001 From: keplyx Date: Sat, 9 Nov 2019 16:50:28 +0100 Subject: [PATCH] Fixed webview error on ios --- components/WebViewScreen.js | 4 +++- screens/AvailableRoomScreen.js | 2 +- screens/PlanexScreen.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/WebViewScreen.js b/components/WebViewScreen.js index 820475a..ef53fe5 100644 --- a/components/WebViewScreen.js +++ b/components/WebViewScreen.js @@ -200,7 +200,9 @@ export default class WebViewScreen extends React.Component { locked={true} style = {{ paddingTop: this.state.isLandscape ? 20 : 0, - backgroundColor: ThemeManager.getCurrentThemeVariables().brandPrimary + backgroundColor: Platform.OS === 'ios' ? + ThemeManager.getCurrentThemeVariables().tabDefaultBg : + ThemeManager.getCurrentThemeVariables().brandPrimary }} > diff --git a/screens/AvailableRoomScreen.js b/screens/AvailableRoomScreen.js index 04d1306..a3448e1 100644 --- a/screens/AvailableRoomScreen.js +++ b/screens/AvailableRoomScreen.js @@ -42,7 +42,7 @@ export default class AvailableRoomScreen extends React.Component { '' + '' + '' + - '");'; + '");true;'; } render() { diff --git a/screens/PlanexScreen.js b/screens/PlanexScreen.js index 277912d..5131b7c 100644 --- a/screens/PlanexScreen.js +++ b/screens/PlanexScreen.js @@ -29,7 +29,7 @@ export default class PlanexScreen extends React.Component { 'document.querySelector(\'head\').innerHTML += \'\';' + 'document.querySelector(\'head\').innerHTML += \'\';' + '$(".fc-toolbar .fc-center").append(\'

' + i18n.t("planexScreen.rotateToLandscape") + '

\');' + - '$(".fc-toolbar .fc-center").append(\'

' + i18n.t("planexScreen.rotateToPortrait") + '

\');'; + '$(".fc-toolbar .fc-center").append(\'

' + i18n.t("planexScreen.rotateToPortrait") + '

\');true;'; if (ThemeManager.getNightMode()) this.customInjectedJS += 'document.querySelector(\'head\').innerHTML += \'\';'; }