-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
77 lines (50 loc) · 1.26 KB
/
App.js
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import React from 'react';
import { Text, View, StyleSheet, Image, ImageBackground, Dimensions } from 'react-native';
import Constants from 'expo-constants';
import Heading from './Components/Heading'
import Information from './Components/Information'
// You can import from local files
const screenHeight = Dimensions.get('window').height;
const screenWidth = Dimensions.get('window').width;
// or any pure javascript modules available in npm
/*
cd AwesomeProject
npm install expo
npm i react-native-chart-kit
npx expo start
plug into terminal^^
*/
const App = () => {
return (
<View style = {styles.container}>
<ImageBackground source={require('./assets/background4.jpg')} resizeMode='cover' style = {styles.image}>
<Heading/>
<Information/>
</ImageBackground>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
backgroundColor: '#F',
},
image: {
justifyContent: 'center',
height: screenHeight,
width: screenWidth,
},
paragraph: {
margin: 24,
fontSize: 18,
fontWeight: 'bold',
textAlign: 'center',
},
logo: {
flex: 1,
justifyContent: 'center',
height: 100,
width: 100,
}});
export default App