Quantcast
Channel: Active questions tagged cocoapods - Stack Overflow
Viewing all articles
Browse latest Browse all 1029

Invariant Violation: requireNativeComponent: "RNJWPlayerView" was not found in the UIManager [closed]

$
0
0

I am experiencing a package linking issue only on iOS. The invariant violation error occurs when attempting to stream a video that utilizes the below package.

@jwplayer/jwplayer-react-native": "^1.0.3"

When running 'pod install' with CocoaPods the likely problematic pods are:

'JWPlayerKit''RNJWPlayer'

My minimum iOS version is 14.

Relevant Code:

return (<Background><View style={styles.videoContainer}><JWPlayer          style={styles.player}          config={config}          ref={(p) => (jwplayer.current = p)}          onPlay={async () => {}}          onPause={async () => {saveProgress()}}          onComplete={async () => {saveProgress()}}          onFullScreen={PresentFullScreen}          onFullScreenExit={DismissFullScreen}          onTime={(event) => {            const { position, duration } = event.nativeEvent;            setVideoPosition(position);          }}          onPlaybackRateChanged={(event) => {}}          onAudioTracks={(event) => {}}          onLockScreenMetadata={(event) => {updateLockScreenMetadata(event)}}        /></View></Background>  );}

Things I have already attempted:

  1. Creating a test environment with only the necessary packages to stream videos using '@jwplayer/jwplayer-react-native'.
  2. Deleting my Pods folder and Podfile.lock and reinstalling.
  3. Specifying lower versions of 'JWPlayerKit' in my Podfile to be installed. Particularly version 4.19.2 and 4.21.0

Thank you for any help!


Viewing all articles
Browse latest Browse all 1029

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>