Skip to content
This repository was archived by the owner on Aug 12, 2022. It is now read-only.

Fix error on RN 0.60 - #6

Open
mzdunek93 wants to merge 2 commits into
sanpyaelin:masterfrom
mzdunek93:master
Open

Fix error on RN 0.60#6
mzdunek93 wants to merge 2 commits into
sanpyaelin:masterfrom
mzdunek93:master

Conversation

@mzdunek93

Copy link
Copy Markdown

When trying to render a CollapseView I get this error:

Invariant Violation: [659,"RCTView",311,{"height":"<<NaN>>","backgroundColor":0,"overflow":"hidden"}] is not usable as a native method argument

This is caused by giving an uninitiated Animated.Value as the component's height. I fixed it by setting the height as null until header and content layouts are measured.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants