chore: add setFullScreen to component's ref (#3855)

* chore: add setFullScreen to component's ref and remove presentFullscreenPlayer & dismissFullscreenPlayer
This commit is contained in:
Seyed Mostafa Hasani
2024-06-11 00:11:26 +03:30
committed by GitHub
parent 016fca8a2a
commit 3a4a13011a
9 changed files with 56 additions and 19 deletions

View File

@@ -93,6 +93,13 @@ class RCTVideoManager: RCTViewManager {
})
}
@objc(setFullScreen:reactTag:)
func setFullScreen(fullScreen: Bool, reactTag: NSNumber) {
performOnVideoView(withReactTag: reactTag, callback: { videoView in
videoView?.setFullscreen(fullScreen)
})
}
override class func requiresMainQueueSetup() -> Bool {
return true
}