ios – Can’t discover kind ‘RCTEventDispatcher’ in scope | react-native-video

0
23
ios – Can’t discover kind ‘RCTEventDispatcher’ in scope | react-native-video


Can`t construct undertaking on IOS.

Error:

Can't discover kind 'RCTEventDispatcher' in scope  
React-native v0.73.6 + react-native-video ^6.5.0
import AVFoundation
import AVKit
import Basis
#if USE_GOOGLE_IMA
    import GoogleInteractiveMediaAds
#endif
import React

// MARK: - RCTVideo

class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverHandler {
    personal var _player: AVPlayer?
    personal var _playerItem: AVPlayerItem?
    personal var _source: VideoSource?
    personal var _playerLayer: AVPlayerLayer?
    personal var _chapters: [Chapter]?

    personal var _playerViewController: RCTVideoPlayerViewController?
    personal var _videoURL: NSURL?
    personal var _localSourceEncryptionKeyScheme: String?

    /* Required to publish occasions */
    personal var _eventDispatcher: RCTEventDispatcher?
    personal var _videoLoadStarted = false
init(eventDispatcher: RCTEventDispatcher!) {
        tremendous.init(body: CGRect(x: 0, y: 0, width: 100, top: 100))
        ReactNativeVideoManager.shared.registerView(newInstance: self)
        #if USE_GOOGLE_IMA
            _imaAdsManager = RCTIMAAdsManager(video: self, pipEnabled: isPipEnabled)
        #endif

        _eventDispatcher = eventDispatcher

        #if os(iOS)
            if _pictureInPictureEnabled {
                initPictureinPicture()
                _playerViewController?.allowsPictureInPicturePlayback = true
            } else {
                _playerViewController?.allowsPictureInPicturePlayback = false
            }
        #endif

Error in Xcode

Error in Xcode

pods reinstall doesnt work I’ve googled and all strategies described in subsequent points dont work: https://github.com/TheWidlarzGroup/react-native-video/points/3004
https://github.com/TheWidlarzGroup/react-native-video/points/3622
https://github.com/TheWidlarzGroup/react-native-video/points/3152 error: anticipated a sort – eventDispatcher:(nonnull RCTEventDispatcher *)eventDispatcher; AND ‘Undefined image’ errors throughout iOS construct

LEAVE A REPLY

Please enter your comment!
Please enter your name here