rename argument mode -> isFullscreen

This commit is contained in:
Akinwale Ariwodola 2019-11-18 06:50:10 +01:00
parent eb18871015
commit 858c2dadaf

View file

@ -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();