2021-02-22 22:25:57 -05:00
|
|
|
import React from 'react';
|
2020-06-20 00:18:17 -04:00
|
|
|
import LottieView from 'lottie-react-native';
|
|
|
|
import * as NavigationService from './NavigationService';
|
|
|
|
import { StackActions } from '@react-navigation/native';
|
|
|
|
|
|
|
|
const LoadingScreen = () => {
|
|
|
|
const replaceStackNavigation = () => {
|
|
|
|
NavigationService.dispatch(StackActions.replace('UnlockWithScreenRoot'));
|
|
|
|
};
|
|
|
|
|
|
|
|
const onAnimationFinish = () => {
|
2021-02-22 22:25:57 -05:00
|
|
|
replaceStackNavigation();
|
2020-06-20 00:18:17 -04:00
|
|
|
};
|
|
|
|
|
2021-02-22 22:25:57 -05:00
|
|
|
return <LottieView source={require('./img/bluewalletsplash.json')} autoPlay loop={false} onAnimationFinish={onAnimationFinish} />;
|
2020-06-20 00:18:17 -04:00
|
|
|
};
|
|
|
|
export default LoadingScreen;
|