diff --git a/src/core/components/BottomModal.tsx b/src/core/components/BottomModal.tsx index c8fa70f8..d960ca2a 100644 --- a/src/core/components/BottomModal.tsx +++ b/src/core/components/BottomModal.tsx @@ -1,9 +1,7 @@ import { PropsWithChildren } from 'react'; -import { View } from 'react-native'; +import { View, useWindowDimensions } from 'react-native'; import Modal from 'react-native-modal'; -import { SCREEN_HEIGHT, SCREEN_WIDTH } from '@gorhom/bottom-sheet'; - export type BottomModalProps = PropsWithChildren<{ visible: boolean; onClose?: () => void; @@ -20,6 +18,8 @@ export const BottomModal = ({ dismissable && onClose?.(); }; + const { width, height } = useWindowDimensions(); + return (