react-native-youtube-iframe icon indicating copy to clipboard operation
react-native-youtube-iframe copied to clipboard

Bug Version Android

Open NeuVanessa opened this issue 1 year ago • 2 comments

I'm trying to play the videos using the library, but I have this error.

ERROR Invariant Violation: Failed to call into JavaScript module method WebViewMessageHandler7.onMessage(). Module has not been registered as callable. Bridgeless Mode: false. Registered callable JavaScript modules (n = 12): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, HMRClient, AppRegistry, RCTEventEmitter, RNCWebViewMessagingModule. A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes

         <YoutubePlayer
          videoId={"cRlYOHIwUGw"}
          height={250}
          ref={playerRef}
          initialPlayerParams={{
            controls: false,
            modestbranding: false,
            showClosedCaptions: 0,
          }}
          //onPlaybackQualityChange={"hd1080"}
          mute
          play
        />

NeuVanessa avatar Mar 24 '24 21:03 NeuVanessa

can you add more details about your setup? (use the issue template)

LonelyCpp avatar Apr 04 '24 04:04 LonelyCpp

I too did see this error. Can you run this and see

sudo npx expo install --check

the cause of the issue may w.r.t to the react-native-webview version installed. In my case; after running the above command the version was downgraded and then it worked perfectly

image

rsunbabu avatar Apr 08 '24 06:04 rsunbabu