10 2019 档案

摘要:这个还要取决于手机系统设置 阅读全文
posted @ 2019-10-25 17:03 liuw_flexi 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-10-25 17:01 liuw_flexi 阅读(515) 评论(0) 推荐(0) 编辑
摘要:在现有的iOS工程中集成react native, 或者说将react native引入到iOS 项目,是RN和iOS混合开发的必经之路 参考官网教程:https://reactnative.cn/docs/integration-with-existing-apps/ 但是会有一些步骤报错,这里记 阅读全文
posted @ 2019-10-18 16:13 liuw_flexi 阅读(1156) 评论(0) 推荐(0) 编辑
摘要:参考:https://www.jianshu.com/p/02c630ed7725 tabBar1页面有按钮,点击切换到tabBar2 直接用this.props.navigation.navigate('tabBar2'); //这里tabBar1,tabBar2都在createBottomTab 阅读全文
posted @ 2019-10-12 14:05 liuw_flexi 阅读(245) 评论(0) 推荐(0) 编辑
摘要:https://github.com/crazycodeboy/react-native-easy-toast 用法: 在render()方法的return()中的最末尾: 在需要吐司的地方: 阅读全文
posted @ 2019-10-11 13:26 liuw_flexi 阅读(902) 评论(0) 推荐(0) 编辑
摘要:https://github.com/crazycodeboy/react-native-event-bus 用法: A页面和B页面中都有相同的列表,点击B页面中的收藏按钮,A页面会跟着更新 阅读全文
posted @ 2019-10-11 13:21 liuw_flexi 阅读(1409) 评论(0) 推荐(0) 编辑
摘要:使用Context,可以跨越组件进行数据传递 通过静态方法React.createContext()创建一个Context对象,这个Context对象包含两个组件,<Provider />和<Consumer />。 <Provider />的value相当于现在的getChildContext() 阅读全文
posted @ 2019-10-11 10:40 liuw_flexi 阅读(2797) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示