Commit a2a7cf14 authored by Ahmed Barakat's avatar Ahmed Barakat
Browse files

Fix partial swiping on video shows black screen

In iOS 11, Apple added a feature to close the Video Player via a swipe gesture. Partial swiping cases viewWillDisappear to be called without viewDidDisappear which cases a black screen.
parent 7f011aba
Loading
Loading
Loading
Loading
+1 −5
Changes for ios/RCTVideoPlayerViewController.m: 1 added line, 5 removed lines.
Original line number Diff line number Diff line
@@ -9,12 +9,8 @@
- (void)viewDidDisappear:(BOOL)animated
{
  [super viewDidDisappear:animated];
    [_rctDelegate videoPlayerViewControllerDidDismiss:self];
}

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

@end