File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,22 +21,28 @@ export const HomeScreen = ({ navigation }) => {
2121 />
2222 < Text style = { styles . heading } > Performance</ Text >
2323 < Divider />
24- < View style = { styles . progressContainer } >
25- { DUMMY . map ( ( item ) => (
26- < Progress
27- key = { item . color }
28- color = { item . color }
29- percent = { item . percentage }
30- label = { item . label }
31- />
32- ) ) }
33- </ View >
34- < Text style = { styles . heading } > Transactions</ Text >
35- < Divider />
36- < ScrollView style = { styles . body } >
37- { DUMMY . map ( ( item ) => (
38- < List key = { item . label } item = { item . users } navigation = { navigation } />
39- ) ) }
24+ < ScrollView >
25+ < View style = { styles . progressContainer } >
26+ { DUMMY . map ( ( item ) => (
27+ < Progress
28+ key = { item . color }
29+ color = { item . color }
30+ percent = { item . percentage }
31+ label = { item . label }
32+ />
33+ ) ) }
34+ </ View >
35+ < Text style = { styles . heading } > Transactions</ Text >
36+ < Divider />
37+ < View style = { styles . body } >
38+ { DUMMY . map ( ( item ) => (
39+ < List
40+ key = { item . label }
41+ item = { item . operations }
42+ navigation = { navigation }
43+ />
44+ ) ) }
45+ </ View >
4046 </ ScrollView >
4147 </ View >
4248 ) ;
@@ -69,6 +75,7 @@ const styles = StyleSheet.create({
6975 width : "100%" ,
7076 justifyContent : "space-between" ,
7177 marginVertical : 20 ,
78+ paddingHorizontal : 15 ,
7279 } ,
7380 body : {
7481 paddingTop : 20 ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export const DUMMY = [
77 label : "Current week" ,
88 percentage : 64 ,
99 color : "#80e1ae" ,
10- users : [
10+ operations : [
1111 {
1212 uri : p1 ,
1313 name : "Ada Lovelace" ,
@@ -37,7 +37,7 @@ export const DUMMY = [
3737 label : "Last week" ,
3838 percentage : 40 ,
3939 color : "#f8606a" ,
40- users : [
40+ operations : [
4141 {
4242 uri : p1 ,
4343 name : "Ada Lovelace" ,
@@ -67,7 +67,7 @@ export const DUMMY = [
6767 label : "Last month" ,
6868 percentage : 90 ,
6969 color : "#606af9" ,
70- users : [
70+ operations : [
7171 {
7272 uri : p1 ,
7373 name : "Ada Lovelace" ,
You can’t perform that action at this time.
0 commit comments