Explorar el Código

fixes statusBar visilibity

yogevbd hace 6 años
padre
commit
69ffb0e643
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6
    2
      lib/ios/RNNStatusBarOptions.m

+ 6
- 2
lib/ios/RNNStatusBarOptions.m Ver fichero

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