- 博客(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
2038
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
1039
原创 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
156
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅