Browse Source

fixes statusBar visilibity

yogevbd 6 years ago
parent
commit
69ffb0e643
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      lib/ios/RNNStatusBarOptions.m

+ 6
- 2
lib/ios/RNNStatusBarOptions.m View File

21
 	}
21
 	}
22
 	
22
 	
23
 	if (self.style || self.visible) {
23
 	if (self.style || self.visible) {
24
-		[UIView animateWithDuration:[self statusBarAnimationDuration] animations:^{
24
+		if (self.animate) {
25
+			[UIView animateWithDuration:[self statusBarAnimationDuration] animations:^{
26
+				[viewController setNeedsStatusBarAppearanceUpdate];
27
+			}];
28
+		} else {
25
 			[viewController setNeedsStatusBarAppearanceUpdate];
29
 			[viewController setNeedsStatusBarAppearanceUpdate];
26
-		}];
30
+		}
27
 	}
31
 	}
28
 }
32
 }
29
 
33