Browse Source

fixes black navigationBar on transitioning to screen with transparent navigationBar

yogevbd 6 years ago
parent
commit
243a7bbd19
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      ios/RCCViewController.m

+ 2
- 1
ios/RCCViewController.m View File

541
         UIView* backgroundView = [self.navigationController.navigationBar valueForKey:@"backgroundView"];
541
         UIView* backgroundView = [self.navigationController.navigationBar valueForKey:@"backgroundView"];
542
         CGFloat originalAlpha = backgroundView.alpha;
542
         CGFloat originalAlpha = backgroundView.alpha;
543
         backgroundView.alpha = navBarTransparentBool ? 0.0 : 1.0;
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
             action();
545
             action();
546
+        } completion:^(id<UIViewControllerTransitionCoordinatorContext>  _Nonnull context) {
546
             backgroundView.alpha = originalAlpha;
547
             backgroundView.alpha = originalAlpha;
547
         }];
548
         }];
548
     }
549
     }