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 toast position incorrect with keyboard opened
Ammar Ahmed9f995b861b60
diff --git a/apps/mobile/app/components/toast/index.tsx b/apps/mobile/app/components/toast/index.tsxindex 63a889177..6df84f252 100644--- a/apps/mobile/app/components/toast/index.tsx+++ b/apps/mobile/app/components/toast/index.tsx@@ -38,10 +38,10 @@ import {import { getElevationStyle } from "../../utils/elevation";import { eHideToast, eShowToast } from "../../utils/events";import { AppFontSize, defaultBorderRadius } from "../../utils/size";+import { DefaultAppStyles } from "../../utils/styles";import { Button } from "../ui/button";import Heading from "../ui/typography/heading";import Paragraph from "../ui/typography/paragraph";-import { DefaultAppStyles } from "../../utils/styles";export const Toast = ({ context = "global" }) => {const { colors, isDark } = useThemeColors();@@ -119,10 +119,7 @@ export const Toast = ({ context = "global" }) => {width: DDS.isTab ? dimensions.width / 2 : "100%",alignItems: "center",alignSelf: "center",- bottom:- insets.bottom +- 15 +- (keyboard.keyboardShown ? Math.max(0, keyboard.keyboardHeight) : 0),+ bottom: insets.bottom + 15,position: "absolute",zIndex: 999,elevation: 15