A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: fix glitch on app launch ios
ammarahm-ed964180a18341
diff --git a/apps/mobile/app/components/container/index.js b/apps/mobile/app/components/container/index.jsindex 9062e5a43..a829b78d0 100644--- a/apps/mobile/app/components/container/index.js+++ b/apps/mobile/app/components/container/index.js@@ -18,7 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import React from "react";-import { KeyboardAvoidingView, Platform, SafeAreaView } from "react-native";+import { KeyboardAvoidingView, Platform, View } from "react-native";+import useGlobalSafeAreaInsets from "../../hooks/use-global-safe-area-insets";import useIsFloatingKeyboard from "../../hooks/use-is-floating-keyboard";import { useSettingStore } from "../../stores/use-setting-store";import { Header } from "../header";@@ -28,6 +29,7 @@ export const Container = ({ children }) => {const introCompleted = useSettingStore((state) => state.settings.introCompleted);+ const insets = useGlobalSafeAreaInsets();return (<KeyboardAvoidingViewbehavior="padding"@@ -36,10 +38,12 @@ export const Container = ({ children }) => {flex: 1}}>- <SafeAreaView+ <Viewstyle={{flex: 1,- overflow: "hidden"+ overflow: "hidden",+ paddingTop: Platform.OS === "android" ? 0 : insets.top,+ paddingBottom: Platform.OS === "android" ? 0 : insets.bottom}}>{!introCompleted ? null : (@@ -50,7 +54,7 @@ export const Container = ({ children }) => {)}{children}- </SafeAreaView>+ </View></KeyboardAvoidingView>);};diff --git a/apps/mobile/package-lock.json b/apps/mobile/package-lock.jsonindex 53ef086af..749e24109 100644--- a/apps/mobile/package-lock.json+++ b/apps/mobile/package-lock.json@@ -1,12 +1,12 @@{"name": "@notesnook/mobile",- "version": "2.4.0",+ "version": "2.4.2","lockfileVersion": 2,"requires": true,"packages": {"": {"name": "@notesnook/mobile",- "version": "2.4.0",+ "version": "2.4.2","license": "GPL-3.0-or-later","workspaces": ["native/",