Fixed webview crash on android 9+
这个提交包含在:
父节点
0c9b70998d
当前提交
cbc1e88a37
共有 2 个文件被更改,包括 3 次插入 和 3 次删除
4
App.js
4
App.js
|
@ -15,11 +15,11 @@ import Update from "./src/constants/Update";
|
|||
import ConnectionManager from "./src/managers/ConnectionManager";
|
||||
import URLHandler from "./src/utils/URLHandler";
|
||||
import {setSafeBounceHeight} from "react-navigation-collapsible";
|
||||
import {enableScreens} from 'react-native-screens';
|
||||
import SplashScreen from 'react-native-splash-screen'
|
||||
|
||||
// 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
|
||||
|
|
|
@ -160,7 +160,7 @@ class ErrorView extends React.PureComponent<Props, State> {
|
|||
|
||||
const styles = StyleSheet.create({
|
||||
outer: {
|
||||
height: '99%', // using 100% crashes planex screen for some reason on android 9+
|
||||
height: '100%',
|
||||
},
|
||||
inner: {
|
||||
marginTop: 'auto',
|
||||
|
|
正在加载…
在新工单中引用