Skip to content

Commit

Permalink
Update LoadingScreen.js
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosrdz authored and Overtorment committed Jun 22, 2020
1 parent 9a36758 commit 7c3c015
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions LoadingScreen.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -25,7 +25,10 @@ const LoadingScreen = () => {
}
};

walletMigrate.current.start();
useEffect(() => {
walletMigrate.current.start();
}, [walletMigrate]);

return (
<LottieView
ref={loadingAnimation}
Expand Down

0 comments on commit 7c3c015

Please sign in to comment.