import { PropsWithChildren } from 'react'; import { Platform } from 'react-native'; import { Dialog, Portal } from 'react-native-paper'; import { AppButton } from '../../buttons'; import { AppBox } from '../../layout'; import { useKeyboard } from '~/utils'; import { useAppTheme } from '~/view/theme'; type Props = { visible: boolean; onDismiss?: () => void; onPositivePress?: () => void; positiveButtonTitle?: string; animStyle?: any; }; export const AppAlert = ({ visible, onDismiss, onPositivePress, positiveButtonTitle, children }: PropsWithChildren) => { const { colors } = useAppTheme(); const keyboard = useKeyboard(); return ( {children} ); };