@@ -7,15 +7,8 @@ import {
7
7
import PropTypes from "prop-types" ;
8
8
import { systemWeights } from "react-native-typography" ;
9
9
import TransactionRow from "./TransactionRow" ;
10
- import LottieView from "lottie-react-native" ;
11
10
import { View , Text } from "../styles/components" ;
12
11
13
- const {
14
- Constants : {
15
- colors
16
- }
17
- } = require ( "../../ProjectData.json" ) ;
18
-
19
12
interface DisplayItemComponent {
20
13
transaction : {
21
14
item : Transaction
@@ -130,24 +123,6 @@ const _TransactionList = (
130
123
onTransactionPress = ( ) => null
131
124
} : TransactionListComponent ) => {
132
125
133
- const displayEmptyComponent = ( ) => {
134
- try {
135
- return (
136
- < View style = { { position : "absolute" , alignItems : "center" , justifyContent : "center" , top : 0 , bottom : 0 , left : 0 , right : 0 , borderWidth : 1 , borderColor : "blue" } } >
137
- < Text style = { [ styles . boldText , { marginTop : 20 } ] } > No items to display...</ Text >
138
- < LottieView
139
- source = { require ( "../assets/lottie/empty_list" ) }
140
- autoPlay = { true }
141
- loop = { true }
142
- style = { { width : 150 , height : 150 , marginTop : 10 } }
143
- />
144
- </ View >
145
- ) ;
146
- } catch ( e ) {
147
- console . log ( e ) ;
148
- }
149
- } ;
150
-
151
126
//Returns all transactions for the selected crypto.
152
127
const getTransactions = ( ) => {
153
128
try {
@@ -172,7 +147,7 @@ const _TransactionList = (
172
147
return (
173
148
< View style = { styles . container } >
174
149
{ ! hasTransactions ( ) &&
175
- < View type = "background2" style = { styles . emptyComponentContainer } >
150
+ < View style = { styles . emptyComponentContainer } >
176
151
< Text style = { styles . text } > No transactions to display...</ Text >
177
152
</ View >
178
153
}
@@ -182,7 +157,6 @@ const _TransactionList = (
182
157
data = { transactions }
183
158
extraData = { getTransactions ( ) }
184
159
keyExtractor = { ( transaction ) => `${ transaction . hash } ` }
185
- ListEmptyComponent = { displayEmptyComponent ( ) }
186
160
renderItem = { ( transaction ) : any => {
187
161
let isBlacklisted = false ;
188
162
try { isBlacklisted = blacklistedUtxos . includes ( transaction . item . hash ) ; } catch ( e ) { }
@@ -197,7 +171,7 @@ const _TransactionList = (
197
171
cryptoUnit = { cryptoUnit }
198
172
isBlacklisted = { isBlacklisted }
199
173
/>
200
- ) ;
174
+ ) ;
201
175
} }
202
176
refreshControl = {
203
177
< RefreshControl
@@ -207,7 +181,7 @@ const _TransactionList = (
207
181
onRefresh = { onRefresh }
208
182
tintColor = { "transparent" }
209
183
progressBackgroundColor = { "transparent" }
210
- colors = { [ colors . white ] }
184
+ colors = { [ "transparent" ] }
211
185
/>
212
186
}
213
187
/> }
0 commit comments