Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo不能使用 Demo cannot be used #170

Open
Sura-zm opened this issue Apr 26, 2017 · 9 comments
Open

Demo不能使用 Demo cannot be used #170

Sura-zm opened this issue Apr 26, 2017 · 9 comments

Comments

@Sura-zm
Copy link

Sura-zm commented Apr 26, 2017

react:15.4.1
react-native : 0.39.2

react-native-chart : 1.0.8-beta #
qq20170426-155013

@Sura-zm
Copy link
Author

Sura-zm commented Apr 26, 2017

qq20170426-155426

Who gave me a valid Demo,thanks!

@shaoting0730
Copy link

/**

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 (

<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'])}
/>

);
}
}

const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: 'white',
},
chart: {
width: 200,
height: 200,
},
});

AppRegistry.registerComponent('newChart', () => newChart);

@Sura-zm
Copy link
Author

Sura-zm commented May 3, 2017

thanks! But I failed again!
qq20170503-172333
How to solve!Can you help me?thank you very mach!

@Sura-zm
Copy link
Author

Sura-zm commented May 3, 2017

@pheromone
有没有一个完整的demo,一个完整的项目。
我这儿各种问题,我都找不到解决办法
http://www.zhwios.cn/2016/07/28/reactnative-no-component-found-for-view-with-name-artsurfaceview/
这个办法到第二步我都不知道怎么办了。
才接触RN,求助,谢谢!!!

@shaoting0730
Copy link

shaoting0730 commented May 3, 2017

我怎么感觉你Xcode里面没有弄对啊. .... 还有react-native-chart这个好像X,Y轴好像只能设置数字.我需要设置汉字的. .我现在用这个 react-native-pathjs-charts . 这个配置环境很简单 @Sura-zm

@Sura-zm
Copy link
Author

Sura-zm commented May 3, 2017

我知道Xcode里面有问题,但是修改Xcode的时候指定的那个Libraries文件我没找到,不是react-native下面那个Libraries,是Xcode里面的Libraries没找到

@shaoting0730
Copy link

他上面不是有图例吗?就那几步....不行的话加我扣 510738319

@Sura-zm
Copy link
Author

Sura-zm commented May 4, 2017

非常感谢,问题已经解决了

@tomauty
Copy link
Owner

tomauty commented Jul 7, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants