react-native-video-player
react-native-video-player copied to clipboard
RCTVIEW [{flexGrow:<<Nan>>}] is not usable as a native method argument
Hello @imshreyansh, can you provide a code example?
@TheRav3n I can tell you the scenario like what exactly i did and how did this error came => Initally i was using "react-native-video": "^4.4.5" "react-native-video-player": "^0.10.1" Everything was working fine,
Then i updated the package of react-native-video that is "react-native-video": "^5.0.0" "react-native-video-player": "^0.10.1
and then when i was playing the video it was throwing me the error RCTVIEW [{flexGrow:<<Nan>>}] is not usable as a native method argument
That error means that you are passing a wrong value to flexGrow
in a View
component.
This library is not assigning flexGrow
to anything inside react-native-video, so that flexGrow
style property must be coming from your custom styles.
You don't have to post your full project, but if you want further help please create a code example with just this thing that is not working for you.
The same code works for version of react native video^4.4.5 but doesn't work for react-native-video^5.0.0 <View style={{ width: w / 1.2, marginLeft: 'auto', marginRight: 'auto', marginTop: width / 50 }}> <VideoPlayer video={video} //Uri passed in video videoWidth={w / 3} videoHeight={height / 12} customStyles={{ width: w / 1.2 }} resizeMode='stretch' thumbnail={{ uri: 'https://i.pinimg.com/originals/0c/ea/6f/0cea6fabe4d9d5256e0d1b2474927732.jpg' }} />
</View>
4.4.5
just revert that at 4.45 until the holder of this library update its repo
Hope this will be fixed. Still same issues :(