- 博客(3)
- 收藏
- 关注
原创 在react-native中使用echart绘制图表
引用自:https://www.jianshu.com/p/6eae23b3ece9. 有前辈做好了echart的封装 native-echarts. cd到你项目目录,然后通过npm install native-echarts --save去安装 在需要调用的界面import Echarts from 'native-echarts’可以调用 代码与效果图如下: /** * Sample React Native App * https://github.com/facebook/react-nat
2020-10-09 11:57:11
1875
1
原创 cannot find module ‘babel-preset-react-native‘
运行yarn run android 报错cannot find module ‘babel-preset-react-native’ from '文件夹’解决办法 link. npm install --save-dev babel-cli babel-preset-react-native 记录一下
2020-09-28 11:19:10
882
原创 React Native关于初始化状态时遇到问题
React Native写选中状态时遇到问题 当时写的是 getInitialState() { return { selectedTab: 'home', }; } 报错为null is not an object evaluating ‘this.state.selectedTab’ 是因为在react native用到es6的时候初始化state应该在constructor ()内,而不是用getInitialState() class Main extends Co
2020-09-27 11:08:05
109
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人