06 2023 档案

摘要:React Navigation是React社区自己维护的导航的解决方案。文档参见:https://reactnavigation.org/docs/getting-started 常见的几种类型的navigation如下:1. Tab菜单: 参见https://reactnavigation.or 阅读全文
posted @ 2023-06-28 18:10 saaspeter 阅读(16) 评论(0) 推荐(0) 编辑
摘要:Notes: 1. With reducers in place, Redux will know how to make changes to the store when actions are dispatched. In a moderately complex app, you’ll us 阅读全文
posted @ 2023-06-15 11:13 saaspeter 阅读(4) 评论(0) 推荐(0) 编辑
摘要:我用了最新的xcode和新的react native。 Chapter6: Navigation 这一章中的事例跑不起来,应该是程序用了就的版本的react navigation ("react-navigation": "^2.0.1"),同时关于Navigation的用法也做了不小的改动,因此需 阅读全文
posted @ 2023-06-13 17:51 saaspeter 阅读(6) 评论(0) 推荐(0) 编辑
摘要:摘抄自:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures Closures A closure is the combination of a function bundled together (enclosed) w 阅读全文
posted @ 2023-06-09 17:36 saaspeter 阅读(12) 评论(0) 推荐(0) 编辑
摘要:1. 进入工程目录,启动:Metro npx react-native start 2. 然后在新的terminal窗口中运行app npx react-native run-ios 第1,2步参考:https://reactnative.dev/docs/environment-setup#run 阅读全文
posted @ 2023-06-06 12:42 saaspeter 阅读(153) 评论(0) 推荐(0) 编辑
摘要:以下用的是react native cli的方式。如果使用Expo Go,请参考:https://reactnative.dev/docs/environment-setup?guide=quickstart 1. 安装cli命令: npm uninstall -g react-native-cli 阅读全文
posted @ 2023-06-03 00:36 saaspeter 阅读(678) 评论(0) 推荐(0) 编辑

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