import React from 'react'; import { Text, Pressable } from 'react-native'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; import PopupDialog from '../Popup/Dialog'; import { useThemeFactory } from '../Theme'; import { createStyle } from './style'; import type { NotifyProps, NotifyPrivateProps } from './type'; export const Notify = (props: NotifyProps & NotifyPrivateProps): JSX.Element => { const { type = 'danger', visible, color, background } = props; const insets = useSafeAreaInsets(); const { styles } = useThemeFactory(createStyle); return ( {props.children || props.message} ); };