react native Echarts 更新到最新版本


轉載:https://www.jianshu.com/p/0da6d216fe2e

在React native 項目導入圖表的第三方庫react-native-echarts

源碼地址如下:https://github.com/somonus/react-native-echarts

打開package.json文件

image-20200924100735138

看出echarts的版本是“3.2.3”,而現在echarts的版本已經到了4.9.0

image-20200924100809269

版本還是使用舊的話,很多新的api函數沒法使用,所以我們就需要將版本升級。

1 我們現在官網上下載所需要的echart.min.js
https://echarts.apache.org/zh/download.html

image-20200924100826950

image-20200924100853214

2 把 native echarts 中的tpl.html和echarts.min.js文件中的script部分替換成 echart.min.js的代碼。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM