-
Notifications
You must be signed in to change notification settings - Fork 527
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
Render Error [2209, "RCTVIEW",{"width":"<<NaN>>"}] is not usable as a native method argument #238
Comments
Same problem , |
What version are you using? I'm encountering similar issues with |
Same for me too.... Any solution ??? |
In my case the crash was due to using *I'm not using |
I fixed this problems with import { Dimensions } from "react-native";
// ...
// render() component
<VideoPlayer style={{
left: 0,
top: 0,
bottom: 0,
right: 0,
width: Dimensions.get('window').width,
height: 2160 * (Dimensions.get('window').width / 3840)
}} source={{ uri: "https://www.google.com/google.mp4" }}
/>
// this will fit your player to 16:9 aspect ratio |
I had to patch the package to replace |
Now i know this error only occurred in DEBUG mode. |
This is working, can we raise and merge PR ??? |
…screen mode Patch was provided here: itsnubix/react-native-video-controls#238 (comment)
This is working! Thanks! |
When using the Video component from react-native-video-controls, I get this error. With the Video component from react-native-video, it works perfectly. I also have found that if I leave the
controls
enabled for the native controls, the error doesn't happen. Is there something I'm doing wrong?My Base player:
My live video player:
The error in Metro:
The text was updated successfully, but these errors were encountered: