-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
97 lines (90 loc) · 2.27 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
89
90
91
92
93
94
95
96
97
/**
* @format
*/
import React from 'react';
import {SafeAreaView, StyleSheet, View, Text, StatusBar} from 'react-native';
import {SessionTypes, BaseTypes} from './src/Types/';
import {SessionDisplay} from './src/Sessions/SessionDisplay';
import {Colors, Fonts} from './src/styles/';
const App = () => {
const messagesList: SessionTypes.SessionMessageListProps = {
sessions: [
{
name: 'Edwards Moses',
status: BaseTypes.MessageStatusEnum.Completed,
date: 1598285158,
notes: "I'd like to work as a driver",
durationInHours: 3,
},
{
name: 'Joe Buey',
status: BaseTypes.MessageStatusEnum.Scheduled,
date: 1598457958,
notes: "I'd like to work as a driver",
durationInHours: 1,
},
{
name: 'Matthew Ruiz',
status: BaseTypes.MessageStatusEnum.Canceled,
date: 1598285158,
notes: "I'd like to work as a driver",
durationInHours: 3,
},
{
name: 'Types Working',
status: BaseTypes.MessageStatusEnum.Canceled,
date: 1598457958,
notes: "I'd like to work as a Type that's working",
durationInHours: 2,
},
{
name: 'Is this Working?',
status: BaseTypes.MessageStatusEnum.Scheduled,
date: 1598457958,
notes: "I'd like to work as a Toggle Tab that's working",
durationInHours: 2,
},
],
};
return (
<>
<StatusBar barStyle="dark-content" />
<SafeAreaView>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Help</Text>
<SessionDisplay sessions={messagesList.sessions} />
</View>
</SafeAreaView>
</>
);
};
const styles = StyleSheet.create({
sectionContainer: {
marginTop: 40,
paddingHorizontal: 24,
},
sectionTitle: {
fontSize: Fonts.larger,
fontWeight: '600',
color: Colors.Black,
paddingVertical: 10,
},
sectionDescription: {
marginTop: 8,
fontSize: Fonts.normal,
fontWeight: '400',
color: Colors.Black,
},
highlight: {
fontWeight: '700',
},
footer: {
color: Colors.Black,
fontSize: Fonts.small,
fontWeight: '600',
padding: 4,
paddingRight: 12,
textAlign: 'right',
},
});
export default App;