forked from vergnet/application-amicale
Fixed webview crash on android 9+
This commit is contained in:
parent
0c9b70998d
commit
cbc1e88a37
2 changed files with 3 additions and 3 deletions
4
App.js
4
App.js
|
@ -15,11 +15,11 @@ import Update from "./src/constants/Update";
|
||||||
import ConnectionManager from "./src/managers/ConnectionManager";
|
import ConnectionManager from "./src/managers/ConnectionManager";
|
||||||
import URLHandler from "./src/utils/URLHandler";
|
import URLHandler from "./src/utils/URLHandler";
|
||||||
import {setSafeBounceHeight} from "react-navigation-collapsible";
|
import {setSafeBounceHeight} from "react-navigation-collapsible";
|
||||||
import {enableScreens} from 'react-native-screens';
|
|
||||||
import SplashScreen from 'react-native-splash-screen'
|
import SplashScreen from 'react-native-splash-screen'
|
||||||
|
|
||||||
// Native optimizations https://reactnavigation.org/docs/react-native-screens
|
// Native optimizations https://reactnavigation.org/docs/react-native-screens
|
||||||
enableScreens(true);
|
// Crashes app when navigating away from webview on android 9+
|
||||||
|
// enableScreens(true);
|
||||||
|
|
||||||
|
|
||||||
YellowBox.ignoreWarnings([ // collapsible headers cause this warning, just ignore as it is not an issue
|
YellowBox.ignoreWarnings([ // collapsible headers cause this warning, just ignore as it is not an issue
|
||||||
|
|
|
@ -160,7 +160,7 @@ class ErrorView extends React.PureComponent<Props, State> {
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
outer: {
|
outer: {
|
||||||
height: '99%', // using 100% crashes planex screen for some reason on android 9+
|
height: '100%',
|
||||||
},
|
},
|
||||||
inner: {
|
inner: {
|
||||||
marginTop: 'auto',
|
marginTop: 'auto',
|
||||||
|
|
Loading…
Reference in a new issue