File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,14 @@ const rocketSize = 256;
32
32
Animated . addWhitelistedNativeProps ( { text : true } ) ;
33
33
const AnimatedText = Animated . createAnimatedComponent ( TextInput ) ;
34
34
35
- const LoadingWalletScreen = ( ) : ReactElement => {
35
+ const LoadingWalletScreen = ( {
36
+ isRestoring = false ,
37
+ } : {
38
+ isRestoring ?: boolean ;
39
+ } ) : ReactElement => {
36
40
const { t } = useTranslation ( 'onboarding' ) ;
37
41
const { width } = useWindowDimensions ( ) ;
42
+ const animationDuration = isRestoring ? 16000 : 1500 ;
38
43
39
44
const progressValue = useSharedValue ( 0 ) ;
40
45
const progressText = useDerivedValue ( ( ) => {
@@ -46,7 +51,7 @@ const LoadingWalletScreen = (): ReactElement => {
46
51
47
52
useEffect ( ( ) => {
48
53
progressValue . value = withTiming ( 100 , {
49
- duration : 4000 ,
54
+ duration : animationDuration ,
50
55
easing : Easing . linear ,
51
56
} ) ;
52
57
// eslint-disable-next-line react-hooks/exhaustive-deps
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ const RestoringScreen = (): ReactElement => {
84
84
} , [ profile . name , onboardingStep , dispatch ] ) ;
85
85
86
86
let color : keyof IColors = 'brand' ;
87
- let content = < LoadingWalletScreen /> ;
87
+ let content = < LoadingWalletScreen isRestoring = { true } /> ;
88
88
89
89
if ( showRestored || showFailed ) {
90
90
color = showRestored ? 'green' : 'red' ;
You can’t perform that action at this time.
0 commit comments