import { View, Text, TouchableOpacity, Modal } from "react-native"; import React from "react"; import { useTailwind } from "tailwind-rn"; export default function MyModal({ visible, setVisible, title, content, confirm, }) { const tailwind = useTailwind(); return ( {title} {content} setVisible(false)} style={tailwind( "border-r border-t border-gray-100 basis-1/2 pt-1 justify-center items-center" )} > 取消 确认 ); }