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 app stuck on logout on ios
Ammar Ahmeddef5059ff1c4
diff --git a/apps/mobile/app/components/sheets/user/index.tsx b/apps/mobile/app/components/sheets/user/index.tsxindex d543c4ccd..333b45623 100644--- a/apps/mobile/app/components/sheets/user/index.tsx+++ b/apps/mobile/app/components/sheets/user/index.tsx@@ -40,6 +40,7 @@ import Sync from "../../../services/sync";import Clipboard from "@react-native-clipboard/clipboard";import { logoutUser } from "../../../screens/settings/logout";+import { sleep } from "../../../utils/time";export const UserSheet = () => {const ref = useSheetRef();const { colors } = useThemeColors();@@ -310,10 +311,11 @@ export const UserSheet = () => {{icon: "logout",title: strings.logout(),- onPress: () => {+ onPress: async () => {console.log("logout");- logoutUser();ref.current?.hide();+ await sleep(300);+ logoutUser();},hidden: !user}