Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix heade title showing in search

ammarahm-ed785b3ebb0eaa
diff --git a/apps/mobile/src/components/Header/HeaderTitle.js b/apps/mobile/src/components/Header/HeaderTitle.js
index c0e43ff03..e1ae815f5 100644
--- a/apps/mobile/src/components/Header/HeaderTitle.js
+++ b/apps/mobile/src/components/Header/HeaderTitle.js
@@ -51,7 +51,7 @@ export const HeaderTitle = () => {
eUnSubscribeEvent(eScrollEvent, onScroll);
};
}, [headerTextState.heading]);
-
+
return (
<Animated.View
style={{
diff --git a/apps/mobile/src/components/Header/index.js b/apps/mobile/src/components/Header/index.js
index 998342075..a0ed1aeb7 100644
--- a/apps/mobile/src/components/Header/index.js
+++ b/apps/mobile/src/components/Header/index.js
@@ -50,8 +50,8 @@ export const Header = ({root}) => {
<View style={styles.leftBtnContainer}>
<HeaderLeftMenu />
- {(Platform.OS === 'android' && currentScreen !== 'search') ||
- Platform.isPad ? (
+ {(Platform.OS === 'android' ||
+ Platform.isPad) && currentScreen !== 'search' ? (
<HeaderTitle root={root} />
) : null}
</View>