Skip to content

Commit

Permalink
Merge pull request #1048 from blink22/fix/partial-swipe-black-screen
Browse files Browse the repository at this point in the history
Fix partial swipe on video in fullscreen shows a black screen
  • Loading branch information
cobarx authored Jun 4, 2018
2 parents ddc1c54 + a2a7cf1 commit 7882d5c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions ios/RCTVideoPlayerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ @implementation RCTVideoPlayerViewController

- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
[_rctDelegate videoPlayerViewControllerDidDismiss:self];
}

- (void)viewWillDisappear:(BOOL)animated {
[_rctDelegate videoPlayerViewControllerWillDismiss:self];
[super viewWillDisappear:animated];
[super viewDidDisappear:animated];
[_rctDelegate videoPlayerViewControllerWillDismiss:self];
[_rctDelegate videoPlayerViewControllerDidDismiss:self];
}

@end

0 comments on commit 7882d5c

Please sign in to comment.