Skip to content

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

fix selection header not showing

ammarahm-edd42956983224
diff --git a/apps/mobile/src/components/SelectionHeader/index.js b/apps/mobile/src/components/SelectionHeader/index.js
index 02afb3516..097f54a3f 100644
--- a/apps/mobile/src/components/SelectionHeader/index.js
+++ b/apps/mobile/src/components/SelectionHeader/index.js
@@ -61,7 +61,7 @@ export const SelectionHeader = ({screen}) => {
<View
style={{
width: '100%',
- position: 'absolute',
+ position:"absolute",
height: 50 + insets.top,
paddingTop: insets.top,
backgroundColor: colors.accent,
diff --git a/apps/mobile/src/views/Favorites/index.js b/apps/mobile/src/views/Favorites/index.js
index 731df4601..5fb132082 100644
--- a/apps/mobile/src/views/Favorites/index.js
+++ b/apps/mobile/src/views/Favorites/index.js
@@ -98,8 +98,9 @@ export const Favorites = ({route, navigation}) => {
return (
<>
- <ContainerTopSection>
<SelectionHeader screen="Favorites" />
+ <ContainerTopSection>
+
<Header title="Favorites" isBack={false} screen="Favorites" />
</ContainerTopSection>
<SimpleList
diff --git a/apps/mobile/src/views/Folders/index.js b/apps/mobile/src/views/Folders/index.js
index 90ec72175..5b66e8a08 100644
--- a/apps/mobile/src/views/Folders/index.js
+++ b/apps/mobile/src/views/Folders/index.js
@@ -100,8 +100,9 @@ export const Folders = ({route, navigation}) => {
return (
<>
+ <SelectionHeader screen="Notebooks" />
<ContainerTopSection>
- <SelectionHeader screen="Notebooks" />
+
<Header
title="Notebooks"
isBack={false}
diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.js
index 944050514..11fdbdf79 100755
--- a/apps/mobile/src/views/Home/index.js
+++ b/apps/mobile/src/views/Home/index.js
@@ -114,8 +114,8 @@ export const Home = ({route, navigation}) => {
return (
<>
+ <SelectionHeader screen="Notes" />
<ContainerTopSection>
- <SelectionHeader screen="Notes" />
<Header
title="Notes"
isBack={false}
diff --git a/apps/mobile/src/views/Notebook/index.js b/apps/mobile/src/views/Notebook/index.js
index 4a036b985..72cc10e5e 100644
--- a/apps/mobile/src/views/Notebook/index.js
+++ b/apps/mobile/src/views/Notebook/index.js
@@ -126,8 +126,9 @@ export const Notebook = ({route, navigation}) => {
return (
<>
- <ContainerTopSection>
<SelectionHeader screen="Notebook" />
+ <ContainerTopSection>
+
<Header
title={params.title}
isBack={!params.menu}
diff --git a/apps/mobile/src/views/Notes/index.js b/apps/mobile/src/views/Notes/index.js
index 078062189..4a89660ca 100644
--- a/apps/mobile/src/views/Notes/index.js
+++ b/apps/mobile/src/views/Notes/index.js
@@ -260,8 +260,9 @@ export const Notes = ({route, navigation}) => {
return (
<>
+ <SelectionHeader screen="NotesPage" />
<ContainerTopSection>
- <SelectionHeader screen="NotesPage" />
+
<Header
title={headerProps.heading}
isBack={!params.menu}
diff --git a/apps/mobile/src/views/Search/index.js b/apps/mobile/src/views/Search/index.js
index 1daacbf8e..9b4857dce 100644
--- a/apps/mobile/src/views/Search/index.js
+++ b/apps/mobile/src/views/Search/index.js
@@ -52,9 +52,10 @@ export const Search = ({route, navigation}) => {
}, []);
return (
- <>
+ <>
+ <SelectionHeader screen="Search" />
<ContainerTopSection>
- <SelectionHeader screen="Search" />
+
<Header title="Search" isBack={true} screen="Search" />
</ContainerTopSection>
<SimpleList
diff --git a/apps/mobile/src/views/Tags/index.js b/apps/mobile/src/views/Tags/index.js
index 4f8c6cade..c738843de 100644
--- a/apps/mobile/src/views/Tags/index.js
+++ b/apps/mobile/src/views/Tags/index.js
@@ -90,9 +90,10 @@ export const Tags = ({route, navigation}) => {
};
return (
- <>
- <ContainerTopSection>
+ <>
<SelectionHeader screen="Tags" />
+ <ContainerTopSection>
+
<Header title="Tags" isBack={false} screen="Tags" />
</ContainerTopSection>
<SimpleList
diff --git a/apps/mobile/src/views/Trash/index.js b/apps/mobile/src/views/Trash/index.js
index 2de40b957..fb9d758fc 100644
--- a/apps/mobile/src/views/Trash/index.js
+++ b/apps/mobile/src/views/Trash/index.js
@@ -36,7 +36,7 @@ export const Trash = ({route, navigation}) => {
});
eSendEvent(eScrollEvent, {name: 'Trash', type: 'in'});
-
+
updateSearch();
ranAfterInteractions = false;
});
@@ -97,8 +97,8 @@ export const Trash = ({route, navigation}) => {
return (
<>
+ <SelectionHeader screen="Trash" />
<ContainerTopSection>
- <SelectionHeader screen="Trash" />
<Header
title="Trash"
isBack={false}