-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
88 lines (86 loc) · 2.15 KB
/
App.tsx
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
76
77
78
79
80
81
82
83
84
85
86
87
88
import { StatusBar } from 'expo-status-bar'
import { Image, StyleSheet, Text, View } from 'react-native'
import Constants from 'expo-constants'
import Chart from './components/Chart'
import Card from './components/Card'
import Bar from './components/Bar'
export default function App() {
return (
<View style={styles.container}>
<StatusBar style='auto' />
<Image source={require('./assets/logo.png')} style={styles.logo} />
<Text style={styles.title}>Transactions history</Text>
<Text>These are your monthly and daily actions. 📊</Text>
<View
style={{
flexDirection: 'row',
justifyContent: 'space-between',
marginVertical: 20,
}}
>
<Card title='Transactions' number={35} subtitle='LAST MONTH' />
<Card title='Transactions' number={3} subtitle='TODAY' />
</View>
<View style={[styles.cardChart]}>
<Text style={styles.mediumTitle}>Transactions Last Year</Text>
<View style={styles.tabs}>
<Text
style={{
color: '#6979F8',
borderBottomWidth: 3,
borderBottomColor: '#6979F8',
paddingHorizontal: 10,
paddingVertical: 5,
}}
>
Monthly
</Text>
<Text style={{ color: 'rgba(105, 121, 248, 0.5)' }}>Daily</Text>
</View>
<Chart />
</View>
<Bar />
</View>
)
}
const styles = StyleSheet.create({
container: {
paddingTop: Constants.statusBarHeight + 10,
paddingHorizontal: 20,
backgroundColor: '#F2F6F9',
minHeight: '100%',
},
logo: {
width: 214,
height: 24,
},
title: {
fontSize: 25,
marginTop: 20,
},
center: {
textAlign: 'center',
},
mediumTitle: {
fontSize: 15,
fontWeight: 'bold',
},
cardChart: {
backgroundColor: '#fff',
borderRadius: 10,
padding: 20,
shadowColor: '#000',
shadowOffset: {
width: 0,
height: 12,
},
shadowOpacity: 0.58,
shadowRadius: 16.0,
elevation: 24,
},
tabs: {
flexDirection: 'row',
justifyContent: 'space-around',
paddingVertical: 10,
},
})