Once Expo is launched, with the terminal selected, press a to launch it in the android emulator.
You will be prompted if you want to download Expo Go on the device, choose yes.
After it downloads the first time, you may need to press a again to launch it
If it hangs at any point, with the terminal selected, tap r to refresh expo
Don't forget to instal dependencies with yarn!
If you prefer, you can download Expo Go from the Play store/App store and launch the project by scannign the QR code from the terminal.
Expected result
The video player appears inside of the app
Actual result
It throws this error on Android.
And this on iOS
Additional context
If you comment out the player, like I do here, the app runs normally without error.
The affecte file is in app/tabs/index.tsx
Relevant logs output
iOS:
ERROR TypeError: Cannot read property 'startLoadWithResult' of null, js engine: hermes
Android:
ERROR Invariant Violation: Failed to call into JavaScript module method RNCWebViewMessagingModule.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, WebViewMessageHandler1.
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
Version
1.0.2
Environment that reproduces the issue
https://github.com/charlestbell/api_dot_video_expo_50_bug
Windows 11 running on x86_64 VsCode Android Studio Android Emulator Pixel 3a with API 34 Extension level 7 Expo Version 51
Is it reproducible in the example application?
Yes
Reproduction steps
Device setup:
Code setup: https://github.com/charlestbell/api_dot_video_expo_50_bug
npm i -g yarn
yarn
to install packagesa
to launch it in the android emulator.a
again to launch itIf it hangs at any point, with the terminal selected, tap
r
to refresh expoDon't forget to instal dependencies with yarn!
If you prefer, you can download Expo Go from the Play store/App store and launch the project by scannign the QR code from the terminal.
Expected result
The video player appears inside of the app
Actual result
It throws this error on Android.
And this on iOS![File (7)](https://github.com/apivideo/api.video-reactnative-player/assets/54514092/19ae747f-8dcb-4552-839b-3d074d322af1)
Additional context
If you comment out the player, like I do here, the app runs normally without error.![Screenshot 2024-05-30 151047](https://github.com/apivideo/api.video-reactnative-player/assets/54514092/a906a568-acc8-469e-a0ab-5cb88bebbc20)
The affecte file is in
app/tabs/index.tsx
Relevant logs output