rename argument mode -> isFullscreen
This commit is contained in:
parent
eb18871015
commit
858c2dadaf
1 changed files with 5 additions and 5 deletions
|
@ -214,14 +214,14 @@ class FilePage extends React.PureComponent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handleFullscreenToggle = mode => {
|
handleFullscreenToggle = isFullscreen => {
|
||||||
const { toggleFullscreenMode } = this.props;
|
const { toggleFullscreenMode } = this.props;
|
||||||
this.setState({ fullscreenMode: mode });
|
this.setState({ fullscreenMode: isFullscreen });
|
||||||
toggleFullscreenMode(mode);
|
toggleFullscreenMode(isFullscreen);
|
||||||
|
|
||||||
StatusBar.setHidden(mode);
|
StatusBar.setHidden(isFullscreen);
|
||||||
|
|
||||||
if (mode) {
|
if (isFullscreen) {
|
||||||
// fullscreen, so change orientation to landscape mode
|
// fullscreen, so change orientation to landscape mode
|
||||||
NativeModules.ScreenOrientation.lockOrientationLandscape();
|
NativeModules.ScreenOrientation.lockOrientationLandscape();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue