Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expo support with react-native-video #2900

Closed
joec05 opened this issue Oct 26, 2022 · 13 comments · Fixed by #3880
Closed

Expo support with react-native-video #2900

joec05 opened this issue Oct 26, 2022 · 13 comments · Fixed by #3880

Comments

@joec05
Copy link

joec05 commented Oct 26, 2022

I am interested in react-native-video and as I am currently developing with Expo I was just wondering if this component is usable in Expo.

@freeboub
Copy link
Collaborator

freeboub commented Oct 29, 2022

I don't think so, but you can try ...
Please, let me know what issue you found, I think it would be good to add expo support.
(notice that there is expo-av, but I didn't see regular exoplayer player updates in this project)

@freeboub freeboub changed the title Can I use this in Expo? Expo support with react-native-video Oct 29, 2022
@jeremyspritelyco
Copy link

I am using expo 46 with react native video, no issues at all.
I recommend using react-native-video ver 6 so you have exoplayer player by default without any configurations, same as expo-av
the reason I don't use expo-av is it does not support subtitles yet, react-native-video does.

@astelmack
Copy link

I am using expo 46 with react native video, no issues at all. I recommend using react-native-video ver 6 so you have exoplayer player by default without any configurations, same as expo-av the reason I don't use expo-av is it does not support subtitles yet, react-native-video does.

@jeremyspritelyco
Would you be able to share any details on install of react-native-video in expo? I am going to be experimenting with it and would be good to know what things to watch out for and the steps required to follow specifically in the expo case.

@foloinfo
Copy link

It works fine on Expo SDK 47.
Just added "react-native-video": "^6.0.0-alpha.4" using yarn add react-native-video@alpha.
You need to create EAS build, follow the instruction down there. No need for config plugin. It just works.

@stuckj
Copy link

stuckj commented May 19, 2023

Same on expo 48. Working for us as well. The 5.2.0 version works as well, but doesn't use exoplayer. We had to use the 6.0.0 alpha to get exoplayer.

@llwire
Copy link

llwire commented Aug 3, 2023

It seems to well on Expo 48, but has anyone verified if caching is working as expected?

@waeldeeb
Copy link

react-native-video 5.2.1 doesn't work with me on react native expo. I tried Expo 48 even same problem. I receive error:

Uncaught Error: Your web project is importing a module from 'react-native' instead of 'react-native-web'.

Any ideas?

@WinterSunset95
Copy link

react-native-video 6.1.2 doesn't work for me on Expo 51.

requiredNativeComponent: "RCTView" was not found in the UIManager.

@freeboub
Copy link
Collaborator

freeboub commented Jun 6, 2024

I try to replicate the issue, I think you should use "npx expo run:android" in order to ensure the native code is build once.

@freeboub
Copy link
Collaborator

freeboub commented Jun 7, 2024

I open a Pull request to move the sample to expo: #3880
I think it will close this discussion

@freeboub freeboub linked a pull request Jun 7, 2024 that will close this issue
@HustCoderHu
Copy link

react-native-video 6.1.2 doesn't work for me on Expo 51.

requiredNativeComponent: "RCTView" was not found in the UIManager.

similar problem, expo 51.0.11, react-native-video 6.2.0

ERROR  Invariant Violation: requireNativeComponent: "RCTVideo" was not found in the UIManager.

@freeboub
Copy link
Collaborator

@HustCoderHu did you try npx expo run:android ?

@Judge-Paul
Copy link

react-native-video 6.1.2 doesn't work for me on Expo 51.

requiredNativeComponent: "RCTView" was not found in the UIManager.

similar problem, expo 51.0.11, react-native-video 6.2.0

ERROR  Invariant Violation: requireNativeComponent: "RCTVideo" was not found in the UIManager.

Same problem Expo 51.0.17, react-native-video 6.3.0

invariant violation: requirenativecomponent: "rctvideo" was not found in the uimanager.

but it works when i run a development build with npx expo run:android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.