From 858c2dadaf43bab7d8ece233cbb5e10dd03f96b8 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Mon, 18 Nov 2019 06:50:10 +0100 Subject: [PATCH] rename argument mode -> isFullscreen --- src/page/file/view.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/page/file/view.js b/src/page/file/view.js index bc3199a..6eec27b 100644 --- a/src/page/file/view.js +++ b/src/page/file/view.js @@ -214,14 +214,14 @@ class FilePage extends React.PureComponent { } } - handleFullscreenToggle = mode => { + handleFullscreenToggle = isFullscreen => { const { toggleFullscreenMode } = this.props; - this.setState({ fullscreenMode: mode }); - toggleFullscreenMode(mode); + this.setState({ fullscreenMode: isFullscreen }); + toggleFullscreenMode(isFullscreen); - StatusBar.setHidden(mode); + StatusBar.setHidden(isFullscreen); - if (mode) { + if (isFullscreen) { // fullscreen, so change orientation to landscape mode NativeModules.ScreenOrientation.lockOrientationLandscape();