From d35f7c1f1a9f35958ff3f6dacd002e31b0a824b0 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Sat, 22 Apr 2023 17:14:20 -0500 Subject: Android fixes (#515) * Fix profile screen performance on android and remove dead code * Correctly handle android hardware back btn * Fix EditProfile modal for android * Fix lint --- src/view/com/modals/Modal.tsx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src/view/com/modals/Modal.tsx') diff --git a/src/view/com/modals/Modal.tsx b/src/view/com/modals/Modal.tsx index 5d034a19d..df7d7f042 100644 --- a/src/view/com/modals/Modal.tsx +++ b/src/view/com/modals/Modal.tsx @@ -1,5 +1,6 @@ import React, {useRef, useEffect} from 'react' import {StyleSheet} from 'react-native' +import {SafeAreaView} from 'react-native-safe-area-context' import {observer} from 'mobx-react-lite' import BottomSheet from '@gorhom/bottom-sheet' import {useStores} from 'state/index' @@ -92,13 +93,22 @@ export const ModalsContainer = observer(function ModalsContainer() { return null } + if (snapPoints[0] === 'fullscreen') { + return ( + + {element} + + ) + } + return (