mirror of
https://github.com/jellyfin/jellyfin-expo.git
synced 2024-11-27 08:10:32 +00:00
Fix use of deprecated method
This commit is contained in:
parent
19a008a1cd
commit
b65bc0f740
@ -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) ?
|
||||
|
Loading…
Reference in New Issue
Block a user