📌  相关文章
📜  单击外部时反应本机模式关闭 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:07.482000             🧑  作者: Mango

代码示例1
 setalert(false)}>
     setalert(false)}>
        
            {/* Somethings */}
        
    


{/*TouchableOpacity close the modal when click and the TouchableWithoutFeedback block the touch inside the rectangle*/}
{/*Code take from: https://stackoverflow.com/questions/40483034/close-react-native-modal-by-clicking-on-overlay*/}