-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
77 lines (72 loc) · 1.7 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
76
77
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import CardSlider from './cardSlider';
import utils from './utils';
const data = {
"totalTransfered": 173.50,
"totalPaid": 123.40,
"totalReceived": 50.10,
"balance": 20586.09,
"recentTransfers": [
{
"type": "send",
"from": "[email protected]",
"to": "[email protected]",
"counterpartName": "Julia",
"value": 12,
"description": "churrasco",
"createdAt": "2018-08-30T15:20:35.569Z",
"qrcode": "data:image/png;base64,hash"
},
{
"type": "send",
"from": "[email protected]",
"to": "[email protected]",
"counterpartName": "Helena",
"value": 10,
"description": "camisa",
"createdAt": "2018-08-30T15:17:10.546Z",
"qrcode": "data:image/png;base64,hash"
},
{
"type": "receive",
"from": "[email protected]",
"to": "[email protected]",
"counterpartName": "Julia",
"value": 5,
"description": "cerveja",
"createdAt": "2018-08-30T15:18:26.286Z",
"qrcode": "data:image/png;base64,hash"
}
]
};
const sliderItems = utils.parseSummaryData(data);
export default class App extends Component {
render() {
return (
<View style={styles.container}>
<View style={styles.wrapper}>
<CardSlider sliderItems={sliderItems}></CardSlider>
</View>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#fff'
},
wrapper: {
height: 262,
}
});