Skip to content

Commit

Permalink
[fix] Add fade out in ios
Browse files Browse the repository at this point in the history
  • Loading branch information
vivianmauer committed Jan 9, 2023
1 parent 29249b7 commit d4111b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ios/RNSplashScreen.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ + (void)hide {
if (isAnimationFinished) {
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)),
dispatch_get_main_queue(), ^{
[loadingView removeFromSuperview];
[UIView animateWithDuration:0.2
animations:^{loadingView.alpha = 0.0;}
completion:^(BOOL finished){ [loadingView removeFromSuperview]; }];
});
}
}
Expand Down

0 comments on commit d4111b4

Please sign in to comment.