Fix use of deprecated method

This commit is contained in:
Bill Thornton 2020-01-17 12:59:27 -05:00
parent 19a008a1cd
commit b65bc0f740

View File

@ -146,6 +146,9 @@ export default class HomeScreen extends React.Component {
}
componentDidUpdate(prevProps, prevState) {
if (typeof this.props.navigation.state.params.activeServer != 'undefined') {
this.bootstrapAsync();
}
if (prevState.isFullscreen !== this.state.isFullscreen) {
// Update the screen orientation
this.updateScreenOrientation();
@ -158,12 +161,6 @@ export default class HomeScreen extends React.Component {
}
}
componentWillReceiveProps(nextProps) {
if (typeof nextProps.navigation.state.params.activeServer != 'undefined') {
this.bootstrapAsync();
}
}
render() {
// Hide webview until loaded
const webviewStyle = (this.state.isError || this.state.isLoading) ?