import React from 'react'; import { Animated, KeyboardAvoidingView, Modal, Platform, SafeAreaView, StyleSheet, TouchableOpacity, View, } from 'react-native'; import {useTracked} from '../../provider'; const BaseDialog = ({ visible, onRequestClose, children, onShow, animation = 'fade', premium, statusBarTranslucent = true, transparent, centered=true }) => { const [state, dispatch] = useTracked(); const scaleValue = new Animated.Value(1); return ( { if (onShow) { onShow(); } }} animationType={animation} onRequestClose={onRequestClose}> {premium} {children} ); }; const styles = StyleSheet.create({ backdrop: { width: '100%', height: '100%', justifyContent: 'center', alignItems: 'center', }, overlayButton: { width: '100%', height: '100%', position: 'absolute', }, }); export default BaseDialog;