diff --git a/src/components/Dialog/index.tsx b/src/components/Dialog/index.tsx index 372c92ed1f..6b72f5e0c6 100644 --- a/src/components/Dialog/index.tsx +++ b/src/components/Dialog/index.tsx @@ -7,6 +7,7 @@ import { } from 'react-native-gesture-handler' import {KeyboardAwareScrollView} from 'react-native-keyboard-controller' import {useSafeAreaInsets} from 'react-native-safe-area-context' +import {StatusBar} from 'expo-status-bar' import {logger} from '#/logger' import {isIOS} from '#/platform/detection' @@ -98,31 +99,36 @@ export function Outer({ [close, snapPoint], ) + const isFullHeightIOS = isIOS && snapPoint === BottomSheetSnapPoint.Full + const Wrapper = isIOS ? View : GestureHandlerRootView return ( - - - { - setSnapPoint(e.nativeEvent.snapPoint) - }} - onStateChange={e => { - if (e.nativeEvent.state === 'closed') { - onCloseAnimationComplete() - } - }} - cornerRadius={20} - {...nativeOptions}> - - {children} - - - - + <> + + + { + setSnapPoint(e.nativeEvent.snapPoint) + }} + onStateChange={e => { + if (e.nativeEvent.state === 'closed') { + onCloseAnimationComplete() + } + }} + cornerRadius={20} + {...nativeOptions}> + + {children} + + + + + {isFullHeightIOS && } + ) }