react-native学习记录1(都是坑,各种版本问题,让人望而却步)

1.环境搭建
https://zhuanlan.zhihu.com/p/528196912?utm_id=0
2.创建项目
npx react-native init someProject --version 0.66.0
npx react-native run-android

生命周期,路由,数据存储,页面跳转,Ajax获取接口数据,请求拦截,组件通信

https://reactnative.cn/docs/flatlist(React Native 中文网)
https://www.jianshu.com/p/1544e81826ab(react native开发完成后android打包为测试apk步骤)
https://www.cnblogs.com/laoxingxuzhou/p/10561098.html(react native开发完成后android打包为apk步骤)
https://blog.csdn.net/qq_38719039/article/details/82773609(React Native - 持久化存储(AsyncStorage)的使用详解 (值得学习的网站))

https://blog.csdn.net/CSDN_GYG/article/details/71125479/(react-native listview使用)
https://blog.csdn.net/gongch0604/article/details/83417758(FlatList高性能的简单列表组件)
https://www.jianshu.com/p/32bf0cfb6164(react中pureComponent和Component区别)
主要在于pureComponent可以减少不必要的render,从而提高了性能,另外就是,不需要再手写shouldComponentUpdate里面的代码,从而节省了代码量;

npm install react-native-gesture-handler --save
npm i react-navigation --save

//指定安装某一版本
npm i react-navigation@3.9.1 --save

矢量图标库
react-native-vector-icons

React-Native笔记--react-native-router-flux
https://blog.csdn.net/ljt2724960661/article/details/104737039/

posted @ 2023-02-28 18:35  热心市民~菜先生  阅读(49)  评论(0编辑  收藏  举报