Skip to content

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

hide search button in Search page

ammarahm-ed5a618d8f6817
diff --git a/apps/mobile/src/components/Header/HeaderRightMenu.js b/apps/mobile/src/components/Header/HeaderRightMenu.js
index 2f57cc94c..875515f69 100644
--- a/apps/mobile/src/components/Header/HeaderRightMenu.js
+++ b/apps/mobile/src/components/Header/HeaderRightMenu.js
@@ -17,18 +17,20 @@ export const HeaderRightMenu = () => {
<View style={styles.rightBtnContainer}>
{syncing && <ActivityIndicator size={SIZE.xl} color={colors.accent} />}
- <ActionIcon
- onPress={async () => {
- Navigation.navigate('Search', {
- menu: false,
- });
- }}
- testID={notesnook.ids.default.header.buttons.left}
- name="magnify"
- size={SIZE.xxxl}
- color={colors.pri}
- customStyle={styles.rightBtn}
- />
+ {
+ currentScreen !== "settings" && <ActionIcon
+ onPress={async () => {
+ Navigation.navigate('Search', {
+ menu: false,
+ });
+ }}
+ testID={notesnook.ids.default.header.buttons.left}
+ name="magnify"
+ size={SIZE.xxxl}
+ color={colors.pri}
+ customStyle={styles.rightBtn}
+ />
+ }
{DDS.isLargeTablet() && containerBottomButton.onPress ? (
<Button