fix(ios): fix missing bridge in bridgeless mode (#3570)

This commit is contained in:
Krzysztof Moch 2024-03-07 20:16:11 +01:00 committed by GitHub
parent 75c5c1cd93
commit 46c8c498c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@ import React
@objc(RCTVideoManager)
class RCTVideoManager: RCTViewManager {
override func view() -> UIView {
return RCTVideo(eventDispatcher: bridge.eventDispatcher() as! RCTEventDispatcher)
return RCTVideo(eventDispatcher: (RCTBridge.current().eventDispatcher() as! RCTEventDispatcher))
}
func methodQueue() -> DispatchQueue {