mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-03 12:06:21 +01:00
FIX: fix wallet/transaction perfomance
This commit is contained in:
parent
85f1383d69
commit
ef546857f8
1 changed files with 4 additions and 3 deletions
|
@ -210,9 +210,6 @@ export default class WalletTransactions extends Component {
|
|||
EV(EV.enum.REMOTE_TRANSACTIONS_COUNT_CHANGED, this.refreshTransactionsFunction.bind(this), true);
|
||||
const wallet = props.route.params.wallet;
|
||||
this.props.navigation.setParams({ wallet: wallet, isLoading: true });
|
||||
this.interval = setInterval(() => {
|
||||
this.setState(prev => ({ timeElapsed: prev.timeElapsed + 1 }));
|
||||
}, 60000);
|
||||
this.state = {
|
||||
isHandOffUseEnabled: false,
|
||||
isLoading: true,
|
||||
|
@ -230,6 +227,9 @@ export default class WalletTransactions extends Component {
|
|||
componentDidMount() {
|
||||
this._unsubscribeFocus = this.props.navigation.addListener('focus', this.onFocus);
|
||||
this.props.navigation.setParams({ isLoading: false });
|
||||
this.interval = setInterval(() => {
|
||||
this.setState(prev => ({ timeElapsed: prev.timeElapsed + 1 }));
|
||||
}, 60000);
|
||||
HandoffSettings.isHandoffUseEnabled().then(enabled => this.setState({ isHandOffUseEnabled: enabled }));
|
||||
this.setState({ isLoading: false });
|
||||
}
|
||||
|
@ -742,6 +742,7 @@ export default class WalletTransactions extends Component {
|
|||
keyExtractor={this._keyExtractor}
|
||||
renderItem={this.renderItem}
|
||||
contentInset={{ top: 0, left: 0, bottom: 90, right: 0 }}
|
||||
getItemLayout={(data, index) => ({ length: 66, offset: 66 * index, index })}
|
||||
/>
|
||||
{this.renderManageFundsModal()}
|
||||
</View>
|
||||
|
|
Loading…
Add table
Reference in a new issue