Skip to content

Commit 3fb37b4

Browse files
rickhanloniifacebook-github-bot
authored andcommitted
Speed up loading banner animations
Summary: This diff reduces the minimum loading banner time and animation time to make the locating banner faster. Changelog: [General] [iOS] Speed up loading banner animations Reviewed By: PeteTheHeat Differential Revision: D21290517 fbshipit-source-id: 111dff41df53b0246548e1da1db80c2188498a9c
1 parent 2b771b0 commit 3fb37b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

React/CoreModules/RCTDevLoadingView.mm

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ - (void)showMessage:(NSString *)message color:(UIColor *)color backgroundColor:(
186186

187187
dispatch_async(dispatch_get_main_queue(), ^{
188188
self->_hiding = true;
189-
const NSTimeInterval MIN_PRESENTED_TIME = 0.6;
189+
const NSTimeInterval MIN_PRESENTED_TIME = 0.5;
190190
NSTimeInterval presentedTime = [[NSDate date] timeIntervalSinceDate:self->_showDate];
191191
NSTimeInterval delay = MAX(0, MIN_PRESENTED_TIME - presentedTime);
192192
CGRect windowFrame = self->_window.frame;
193-
[UIView animateWithDuration:0.25
193+
[UIView animateWithDuration:0.1
194194
delay:delay
195195
options:0
196196
animations:^{

0 commit comments

Comments
 (0)