react-native-video-player icon indicating copy to clipboard operation
react-native-video-player copied to clipboard

RCTVIEW [{flexGrow:<<Nan>>}] is not usable as a native method argument

Open imshreyansh opened this issue 4 years ago • 6 comments

imshreyansh avatar Jul 03 '20 09:07 imshreyansh

Hello @imshreyansh, can you provide a code example?

TheDanielMoli avatar Jul 03 '20 13:07 TheDanielMoli

@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

imshreyansh avatar Jul 03 '20 13:07 imshreyansh

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.

TheDanielMoli avatar Jul 03 '20 13:07 TheDanielMoli

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>

imshreyansh avatar Jul 04 '20 14:07 imshreyansh

4.4.5

just revert that at 4.45 until the holder of this library update its repo

sanjay628 avatar Sep 23 '20 07:09 sanjay628

Hope this will be fixed. Still same issues :(

maendamedia avatar Jun 20 '21 20:06 maendamedia