Skip to content

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

mobile: fix footer size for notebook screen

Ammar Ahmedbace90808d70
diff --git a/apps/mobile/app/components/list-items/footer/index.js b/apps/mobile/app/components/list-items/footer/index.js
index f2b61d6ae..5565ea9f1 100644
--- a/apps/mobile/app/components/list-items/footer/index.js
+++ b/apps/mobile/app/components/list-items/footer/index.js
@@ -19,6 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import { View } from "react-native";
import React from "react";
-export const Footer = () => {
- return <View style={{ height: 150 }} />;
+export const Footer = ({ height = 150 }) => {
+ return <View style={{ height: height }} />;
};
diff --git a/apps/mobile/app/components/list/index.tsx b/apps/mobile/app/components/list/index.tsx
index c5e432140..2e9f5c279 100644
--- a/apps/mobile/app/components/list/index.tsx
+++ b/apps/mobile/app/components/list/index.tsx
@@ -192,7 +192,9 @@ export default function List(props: ListProps) {
/>
) : null
}
- ListFooterComponent={<Footer />}
+ ListFooterComponent={
+ <Footer height={props.renderedInRoute === "Notebook" ? 300 : 150} />
+ }
ListHeaderComponent={
<>
{props.CustomLisHeader ? (