mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
18 lines
582 B
JavaScript
18 lines
582 B
JavaScript
import React from 'react';
|
|
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 = () => {
|
|
replaceStackNavigation();
|
|
};
|
|
|
|
return <LottieView source={require('./img/bluewalletsplash.json')} autoPlay loop={false} onAnimationFinish={onAnimationFinish} />;
|
|
};
|
|
export default LoadingScreen;
|