From eccb3d593d02f24f7d114b4b7df95ebc3a55ffb4 Mon Sep 17 00:00:00 2001 From: kee23 Date: Sun, 19 Dec 2021 23:22:26 -0800 Subject: [PATCH] Fix header for iOS during scroll --- screens/Reader.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/screens/Reader.js b/screens/Reader.js index d3fdc9eb..43e0e9f8 100644 --- a/screens/Reader.js +++ b/screens/Reader.js @@ -35,7 +35,6 @@ class Reader extends React.Component { scrollMultiplier: 1.0, isLoading: false, animationPosition: new Animated.Value(0), // The header and footer position - headerVisible: true, // Is the header currently visible headerHeight: 0, }; @@ -51,9 +50,7 @@ class Reader extends React.Component { toValue: state == "hide" ? HEADER_POSITION : 0, }).start(); - this.setState({ - headerVisible: state == "show", - }); + StatusBar.setHidden(state == "hide", 'fade'); } loadShabad() { @@ -484,7 +481,6 @@ class Reader extends React.Component { } barStyle={ this.props.nightMode || - this.state.headerVisible || Platform.OS === "android" ? "light-content" : "dark-content" @@ -560,7 +556,7 @@ class Reader extends React.Component { { position: "absolute", bottom: this.state.animationPosition, - paddingBottom: 10, + paddingBottom: 25, backgroundColor: GLOBAL.COLOR.READER_FOOTER_COLOR, }, ]}>