mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-21 14:34:55 +01:00
Update LoadingScreen.js
This commit is contained in:
parent
9a367585a9
commit
7c3c015933
1 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
import React, { useState, useRef } from 'react';
|
||||
import React, { useEffect, useState, useRef } from 'react';
|
||||
import LottieView from 'lottie-react-native';
|
||||
import WalletMigrate from './screen/wallets/walletMigrate';
|
||||
import * as NavigationService from './NavigationService';
|
||||
|
@ -25,7 +25,10 @@ const LoadingScreen = () => {
|
|||
}
|
||||
};
|
||||
|
||||
walletMigrate.current.start();
|
||||
useEffect(() => {
|
||||
walletMigrate.current.start();
|
||||
}, [walletMigrate]);
|
||||
|
||||
return (
|
||||
<LottieView
|
||||
ref={loadingAnimation}
|
||||
|
|
Loading…
Add table
Reference in a new issue