From 74b0929e4d79690394c1217f63e458da5bf7317b Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 17 Oct 2024 18:48:38 +0300 Subject: Logged out improvments (#5771) * fetch all accounts in one go * delete unused component * add safeareaview to logged out layout * add safe area insets to LoggedOut view * add safe area insets to the error boundary * sanitize displaynames/handles * use button for X * increase spacing --- src/view/shell/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/view/shell/index.tsx') diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx index 6f3d82c13..6dc4f95a5 100644 --- a/src/view/shell/index.tsx +++ b/src/view/shell/index.tsx @@ -2,6 +2,7 @@ import React from 'react' import {BackHandler, StyleSheet, useWindowDimensions, View} from 'react-native' import {Drawer} from 'react-native-drawer-layout' import Animated from 'react-native-reanimated' +import {useSafeAreaInsets} from 'react-native-safe-area-context' import * as NavigationBar from 'expo-navigation-bar' import {StatusBar} from 'expo-status-bar' import {useNavigation, useNavigationState} from '@react-navigation/native' @@ -41,6 +42,7 @@ function ShellInner() { const isDrawerSwipeDisabled = useIsDrawerSwipeDisabled() const setIsDrawerOpen = useSetDrawerOpen() const winDim = useWindowDimensions() + const insets = useSafeAreaInsets() const renderDrawerContent = React.useCallback(() => , []) const onOpenDrawer = React.useCallback( @@ -94,7 +96,8 @@ function ShellInner() { return ( <> - +