Merge pull request #2943 from happyfloat/patch-1

Update RCTVideo.swift
This commit is contained in:
Olivier Bouillet 2022-12-07 17:13:04 +01:00 committed by GitHub
commit 8013b9a197
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -652,7 +652,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
if _controls {
let viewController:UIViewController! = self.reactViewController()
viewController.addChild(_playerViewController)
viewController?.addChild(_playerViewController)
self.addSubview(_playerViewController.view)
}