diff --git a/src/entities/modal/WebViewModal.tsx b/src/entities/modal/WebViewModal.tsx new file mode 100644 index 0000000..8ce9747 --- /dev/null +++ b/src/entities/modal/WebViewModal.tsx @@ -0,0 +1,51 @@ +import { Image, Modal, StyleSheet } from 'react-native'; +import { WebView, WebViewProps } from 'react-native-webview'; + +import SafeScreenWithHeader from '../safeScreen/SafeScreenWithHeader'; + +import { colors } from '@/constants'; + +type WebViewModalProps = { + visible: boolean; + close: () => void; + title?: string; +} & Required>; + +export default function WebViewModal({ + visible, + source, + close, + title, +}: WebViewModalProps) { + return ( + + + ), + }}> + + + + ); +} + +const styles = StyleSheet.create({ + safeArea: { + flex: 1, + backgroundColor: colors.primary[8], + }, + scroll: { + flexGrow: 1, + }, +});