瀏覽代碼

fixes black navigationBar on transitioning to screen with transparent navigationBar

yogevbd 6 年之前
父節點
當前提交
243a7bbd19
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      ios/RCCViewController.m

+ 2
- 1
ios/RCCViewController.m 查看文件

@@ -541,8 +541,9 @@ const NSInteger TRANSPARENT_NAVBAR_TAG = 78264803;
541 541
         UIView* backgroundView = [self.navigationController.navigationBar valueForKey:@"backgroundView"];
542 542
         CGFloat originalAlpha = backgroundView.alpha;
543 543
         backgroundView.alpha = navBarTransparentBool ? 0.0 : 1.0;
544
-        [self.transitionCoordinator animateAlongsideTransition:nil completion:^(id<UIViewControllerTransitionCoordinatorContext>  _Nonnull context) {
544
+        [self.transitionCoordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext>  _Nonnull context) {
545 545
             action();
546
+        } completion:^(id<UIViewControllerTransitionCoordinatorContext>  _Nonnull context) {
546 547
             backgroundView.alpha = originalAlpha;
547 548
         }];
548 549
     }