Skip to content

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

mobile: do not move login dialog on keyboard change

ammarahm-ed2e0f9d8524c7
diff --git a/apps/mobile/app/components/auth/auth-modal.js b/apps/mobile/app/components/auth/auth-modal.js
index 459aa36c7..abf3d0a0c 100644
--- a/apps/mobile/app/components/auth/auth-modal.js
+++ b/apps/mobile/app/components/auth/auth-modal.js
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import React, { useEffect, useRef, useState } from "react";
-import { Platform, View } from "react-native";
+import { View } from "react-native";
import useGlobalSafeAreaInsets from "../../hooks/use-global-safe-area-insets";
import {
eSubscribeEvent,
@@ -75,7 +75,7 @@ const AuthModal = () => {
return !visible ? null : (
<BaseDialog
overlayOpacity={0}
- statusBarTranslucent={false}
+ statusBarTranslucent={true}
onRequestClose={currentAuthMode !== AuthMode.welcomeSignup && close}
visible={true}
onClose={close}
@@ -101,7 +101,7 @@ const AuthModal = () => {
<View
style={{
position: "absolute",
- top: Platform.OS === "ios" ? insets.top : 0,
+ top: insets.top,
zIndex: 999,
flexDirection: "row",
alignItems: "center",