Skip to content

Commit

Permalink
fixes black navigationBar on transitioning to screen with transparent…
Browse files Browse the repository at this point in the history
… navigationBar
  • Loading branch information
yogevbd committed Apr 10, 2018
1 parent 8cbb947 commit 243a7bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ios/RCCViewController.m
Expand Up @@ -541,8 +541,9 @@ -(void)setStyleOnAppearForViewController:(UIViewController*)viewController appea
UIView* backgroundView = [self.navigationController.navigationBar valueForKey:@"backgroundView"];
CGFloat originalAlpha = backgroundView.alpha;
backgroundView.alpha = navBarTransparentBool ? 0.0 : 1.0;
[self.transitionCoordinator animateAlongsideTransition:nil completion:^(id<UIViewControllerTransitionCoordinatorContext> _Nonnull context) {
[self.transitionCoordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> _Nonnull context) {
action();
} completion:^(id<UIViewControllerTransitionCoordinatorContext> _Nonnull context) {
backgroundView.alpha = originalAlpha;
}];
}
Expand Down

0 comments on commit 243a7bb

Please sign in to comment.