摘要: this.$Modal.info({ title: "标题", content: '内容', closable: true, // 就是这行代码 onOk: () => { }, }); 阅读全文
posted @ 2022-07-29 15:05 叶乘风 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 函数组件: 发送:const B = ({ navigation}) => { const toDetail = () => { navigation.navigate('detail', { id: 666 }); } }接收: const B = ({ navigation, route }) 阅读全文
posted @ 2022-07-29 13:47 叶乘风 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 注:本文来源 https://blog.csdn.net/weixin_39065287/article/details/123895097 定义一个工具: import { Dimensions } from 'react-native'; // 获取竖屏模式的宽度 const deviceWid 阅读全文
posted @ 2022-07-29 10:50 叶乘风 阅读(439) 评论(0) 推荐(0) 编辑