Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChartsExample.js
More file actions
Latest commit
61 lines (57 loc) · 1.21 KB
/
Copy pathChartsExample.js
File metadata and controls
61 lines (57 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
importReact,{
Component,
StyleSheet,
Text,
View,
WebView
}from'react-native';
importDimensionsfrom'Dimensions';
exportdefaultclassChartsExampleextendsComponent{
render(){
return(
<Viewstyle={styles.container}>
<WebViewstyle={styles.webview}
source={require('./www/amcharts-example.html')}
/>
<Textstyle={styles.welcome}>
Welcome to React Native!
</Text>
<Textstyle={styles.instructions}>
To get started, edit index.ios.js
</Text>
<Textstyle={styles.instructions}>
Press Cmd+R to reload,{'\n'}
Cmd+D or shake for dev menu
</Text>
</View>
);
}
}
conststyles=StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
webview: {
flex: 1,
height: 200,
width: Dimensions.get('window').width
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});