File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import { useCurrentSender } from "../authentication/multi-inbox.store";
25
25
import { TextField } from "@/design-system/TextField/TextField" ;
26
26
import { VStack } from "@/design-system/VStack" ;
27
27
import { Text } from "@/design-system/Text" ;
28
+ import { useSafeAreaInsets } from "react-native-safe-area-context" ;
28
29
29
30
export function ProfileMe ( props : { inboxId : InboxId } ) {
30
31
const { inboxId } = props ;
@@ -35,6 +36,8 @@ export function ProfileMe(props: { inboxId: InboxId }) {
35
36
36
37
const { logout } = useLogout ( ) ;
37
38
39
+ const insets = useSafeAreaInsets ( ) ;
40
+
38
41
// Get the edit mode state from the store
39
42
const editMode = useProfileMeStoreValue ( inboxId , ( state ) => state . editMode ) ;
40
43
@@ -50,7 +53,12 @@ export function ProfileMe(props: { inboxId: InboxId }) {
50
53
useProfileMeScreenHeader ( { inboxId } ) ;
51
54
52
55
return (
53
- < Screen preset = "fixed" backgroundColor = { theme . colors . background . surface } >
56
+ < Screen
57
+ preset = "scroll"
58
+ backgroundColor = { theme . colors . background . surface }
59
+ keyboardOffset = { insets . bottom }
60
+ keyboardShouldPersistTaps = "handled"
61
+ >
54
62
< ProfileSection >
55
63
{ /* Show editable avatar and name when in edit mode */ }
56
64
{ editMode ? (
You can’t perform that action at this time.
0 commit comments