a2a7cf1452
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.
17 lines
344 B
Objective-C
17 lines
344 B
Objective-C
#import "RCTVideoPlayerViewController.h"
|
|
|
|
@interface RCTVideoPlayerViewController ()
|
|
|
|
@end
|
|
|
|
@implementation RCTVideoPlayerViewController
|
|
|
|
- (void)viewDidDisappear:(BOOL)animated
|
|
{
|
|
[super viewDidDisappear:animated];
|
|
[_rctDelegate videoPlayerViewControllerWillDismiss:self];
|
|
[_rctDelegate videoPlayerViewControllerDidDismiss:self];
|
|
}
|
|
|
|
@end
|