-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
74 lines (72 loc) · 1.89 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
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, ScrollView, View } from 'react-native';
import CardList from './components/CardList';
import CustomButton from './components/CustomButton';
import TableList from './components/TableList';
export default function App() {
const mockData = [
{
id: 0,
title: 'Bitcoin',
subtitle: 'BTC',
icon: require('./assets/bitcoin.png'),
},
{
id: 1,
title: 'Ethereum',
subtitle: 'ETH',
icon: require('./assets/ethereum.png'),
},
{
id: 2,
title: 'Bitcoin',
subtitle: 'BTC',
icon: require('./assets/bitcoin.png'),
},
{
id: 3,
title: 'Ethereum',
subtitle: 'ETH',
icon: require('./assets/ethereum.png'),
},
{
id: 4,
title: 'Bitcoin',
subtitle: 'BTC',
icon: require('./assets/bitcoin.png'),
},
{
id: 5,
title: 'Dogecoin',
subtitle: 'DOGE',
icon: '',
},
];
return (
<ScrollView contentContainerStyle={{ flex: 1, justifyContent: 'center', marginTop: 50 }}>
<CardList data={mockData} />
<View style={{ display: 'flex', flexDirection: 'row' }}>
<CustomButton type="validate" title="VALIDATE" />
<CustomButton type="login" title="LOGIN" />
</View>
<View style={{ display: 'flex', flexDirection: 'row', marginTop: 5 }}>
<CustomButton type="validate" title="VALIDATE" disabled={true} />
<CustomButton type="login" title="LOGIN" disabled={true} />
</View>
<View style={{ height: 200, width: '100%', marginTop: 40 }}>
<ScrollView style={{ width: '100%' }}>
<TableList />
</ScrollView>
</View>
</ScrollView>
);
}
const styles = StyleSheet.create({
container: {
marginTop: 50,
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});