import React from 'react'; import { View, ScrollView, Text } from 'react-native'; import TransactionList from '../../component/transactionList'; import walletStyle from '../../styles/wallet'; class TransactionHistoryPage extends React.PureComponent { componentDidMount() { this.props.fetchTransactions(); } render() { const { fetchingTransactions, transactions } = this.props; return ( {fetchingTransactions && !transactions.length && ( Loading transactions... )} {transactions && transactions.length && ( )} ); } } export default TransactionHistoryPage;