#ios
npm install react-native-line-chart --save
react-native link react-native-line-chart
#####ios a.打开XCode's工程中, 右键点击Libraries文件夹 ➜ Add Files to <...> b.去node_modules ➜ react-native-line-chart➜ ios ➜ 选择 RCTRNchart.xcodeproj c.在工程Build Phases ➜ Link Binary With Libraries中添加RCTRNchart.a
1、import ZKChartView from 'react-native-line-chart'; 2、 <ZKChartView style={{height:200,width:375}} DataArr={['10.0','8.34','6.26','4.18','2.10','0.02','0.5']} dataArrOfX = {['12-27','12-28','12-29','12-31','01-01','01-02','01-03']}