rn-bd-echarts
Baidu echarts for React Native
Installation
$ npm install --save rn-bd-echartsor$ yarn add rn-bd-echarts
Automatic Install
react-native link rn-bd-echarts
Manual Install
Android
-
Add the following lines to
android/settings.gradle
:include ':rn-bd-echarts'project(':rn-bd-echarts').projectDir = new File(settingsDir, '../node_modules/rn-bd-echarts/android') -
Add the compile line to the dependencies in
android/app/build.gradle
:dependencies {...compile project(':rn-bd-echarts')} -
Add the import and link the package in
MainApplication.java
:// <-- add this import
Usage
/** The formatter does not support function in the configuration items support `formatter: '{b}: {c}'` not support `formatter: function(){}`**/; { return <RNECharts ref= thischarts = charts option=thisstateoption /> }
Methods
Actions
thischarts;
Events
thischarts;thischarts;