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

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

Open
imshreyansh opened this issue Jul 3, 2020 · 7 comments
Labels
invalid stale Closed due to inactivity or lack or resources

Comments

@imshreyansh
Copy link

No description provided.

@imshreyansh imshreyansh changed the title RTVIEW [{flexGrow:<<Nan>>}] is not usable as a native method argument RCTVIEW [{flexGrow:<<Nan>>}] is not usable as a native method argument Jul 3, 2020
@TheDanielMoli
Copy link
Collaborator

Hello @imshreyansh, can you provide a code example?

@imshreyansh
Copy link
Author

@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:<>}] is not usable as a native method argument

@TheDanielMoli
Copy link
Collaborator

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.

@imshreyansh
Copy link
Author

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>

@sanjay628
Copy link

4.4.5

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

@maendamedia
Copy link

Hope this will be fixed. Still same issues :(

cornedor pushed a commit that referenced this issue Oct 18, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix RCTVIEW [{flexGrow:<<Nan>>}] is not usable as a native method argument #126 issue
Copy link
Contributor

This issue is stale because it has been open for 30 days with no activity. If there won't be any activity in the next 14 days, this issue will be closed automatically.

@github-actions github-actions bot added the stale Closed due to inactivity or lack or resources label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid stale Closed due to inactivity or lack or resources
Projects
None yet
Development

No branches or pull requests

4 participants