import React, { useState } from 'react'; import { Modal, View, Text, Pressable, StyleSheet, TouchableWithoutFeedback } from 'react-native'; const BootstrapModal = ({ visible, setVisible }) => { return ( setVisible(false)} > setVisible(false)}> This is a Bootstrap-like Modal! setVisible(false)} > Close ); }; const styles = StyleSheet.create({ centeredView: { flex: 1, justifyContent: 'center', alignItems: 'center', zIndex: 10, }, backdrop: { ...StyleSheet.absoluteFillObject, backgroundColor: 'rgba(0,0,0,0.5)', }, modalView: { width: '80%', backgroundColor: 'white', borderRadius: 12, padding: 20, alignItems: 'center', shadowColor: '#000', shadowOpacity: 0.3, shadowRadius: 4, elevation: 5, }, openButton: { backgroundColor: '#007bff', borderRadius: 6, padding: 10, elevation: 2, }, button: { marginTop: 15, padding: 10, borderRadius: 6, }, buttonClose: { backgroundColor: '#dc3545', }, textStyle: { color: 'white', fontWeight: '600', textAlign: 'center', }, modalText: { fontSize: 18, textAlign: 'center', }, }); export default BootstrapModal;