import * as React from 'react'; import { Modal, ModalProps, StyleSheet, View, ViewStyle } from 'react-native'; import { hasNotch } from 'react-native-device-info'; interface ModalElementProps extends ModalProps { children: React.ReactNode; containerStyle?: ViewStyle; elevation?: number; } const ModalElement: React.FC = ({ children, containerStyle, ...modalProps }) => { return ( {children} ); }; const styleSheet = StyleSheet.create({ modalContainer: { marginTop: hasNotch() ? 65 : 15, marginBottom: hasNotch() ? 35 : 15, }, }); export default ModalElement;