-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Support react-native > 0.40 #437
Conversation
Consider bumping the package version to 1.0, since it is a breaking change (react-native-video will no longer work on React Native <= 0.39). |
Bumped version. Let me know if there is anything else I can do. |
Are you guys having issues with the device events such as, onLoad, not triggering RN .40? |
@joekim yup.. same here. This PR was intended just to make it build. But can take a look at this as well. |
@joekim No, wait. It worked here. Just some confusing JS. The event is |
@olofd My onLoad does not seem to be triggering. But, I know through the debugger that onVideoLoad is being emitted on the native side. How does that event name map to onLoad? Any tips on debugging my issue? |
set a |
@olofd I added a breakpoint in _onLoad and it's not triggering. I added one in render just to see that it's working and that works fine. I also know that onVideoLoad is being emitted by native. Not sure what the issue is. Maybe it's something to do with my project. I'm going to try to create a new project from scratch. |
To test this, I tried to see if the Example project would work using this PR branch. I couldn't even get it to build (this issue, I believe: facebook/react-native#11721). I tried upgrading RN a few different ways with the same result. Can anyone get the Example project working in RN 0.40? If we can get the native files upgraded, we could add that to this PR. |
@hellogerard I'll take a look at the example-project tonight. |
@hellogerard I've now upgraded the example project to run on 0.40. Ran |
@hellogerard I'll take a look. The video is playing but the call backs are triggering. |
@olofd @hellogerard I retested the sample app and it triggers properly. |
@mattapperson This PR is merged but react-native-video v1.0 is not published on npm. Can you also publish the latest master on npm. |
published |
Updated header imports to build on react-native > 0.40