Browse Source

Fixed webview crash on android 9+

Arnaud Vergnet 4 years ago
parent
commit
cbc1e88a37
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      App.js
  2. 1
    1
      src/components/Screens/ErrorView.js

+ 2
- 2
App.js View File

@@ -15,11 +15,11 @@ import Update from "./src/constants/Update";
15 15
 import ConnectionManager from "./src/managers/ConnectionManager";
16 16
 import URLHandler from "./src/utils/URLHandler";
17 17
 import {setSafeBounceHeight} from "react-navigation-collapsible";
18
-import {enableScreens} from 'react-native-screens';
19 18
 import SplashScreen from 'react-native-splash-screen'
20 19
 
21 20
 // Native optimizations https://reactnavigation.org/docs/react-native-screens
22
-enableScreens(true);
21
+// Crashes app when navigating away from webview on android 9+
22
+// enableScreens(true);
23 23
 
24 24
 
25 25
 YellowBox.ignoreWarnings([ // collapsible headers cause this warning, just ignore as it is not an issue

+ 1
- 1
src/components/Screens/ErrorView.js View File

@@ -160,7 +160,7 @@ class ErrorView extends React.PureComponent<Props, State> {
160 160
 
161 161
 const styles = StyleSheet.create({
162 162
     outer: {
163
-        height: '99%', // using 100% crashes planex screen for some reason on android 9+
163
+        height: '100%',
164 164
     },
165 165
     inner: {
166 166
         marginTop: 'auto',

Loading…
Cancel
Save