Demo不能使用 Demo cannot be used
react:15.4.1 react-native : 0.39.2
react-native-chart : 1.0.8-beta #


Who gave me a valid Demo,thanks!
/**
- Sample React Native App
- https://github.com/facebook/react-native
- @flow */
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import Chart from 'react-native-chart';
const data = [ [0, 1], [1, 3], [3, 7], [4, 9], ];
export default class newChart extends Component { render() { return ( <View style={styles.container}> <Chart style={styles.chart} data={data} verticalGridStep={4} type="line" showDataPoint={true} color={'#5FC3E5'} gridLineWidth={2} showXAxisLabels={true} gridColor={'#DCDCDC'} axisColor={'#969696'} xAxisHeight={15} xAxisTransform={()=>(['aaaa','bbbb'])} /> </View> ); } }
const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: 'white', }, chart: { width: 200, height: 200, }, });
AppRegistry.registerComponent('newChart', () => newChart);
thanks! But I failed again!
How to solve!Can you help me?thank you very mach!
@pheromone 有没有一个完整的demo,一个完整的项目。 我这儿各种问题,我都找不到解决办法 http://www.zhwios.cn/2016/07/28/reactnative-no-component-found-for-view-with-name-artsurfaceview/ 这个办法到第二步我都不知道怎么办了。 才接触RN,求助,谢谢!!!
我怎么感觉你Xcode里面没有弄对啊. .... 还有react-native-chart这个好像X,Y轴好像只能设置数字.我需要设置汉字的. .我现在用这个 react-native-pathjs-charts . 这个配置环境很简单 @Sura-zm
我知道Xcode里面有问题,但是修改Xcode的时候指定的那个Libraries文件我没找到,不是react-native下面那个Libraries,是Xcode里面的Libraries没找到
他上面不是有图例吗?就那几步....不行的话加我扣 510738319
非常感谢,问题已经解决了
As a generic FYI — I am no longer able to maintain this library. I recommend checking out victory-native as it's much more maintained.