Skip to content

Invariant Violation: [19,"RCTView",21,{"width":"<<NaN>>","height":0,"backgroundColor":0}] is not usable as a native method argument #9

@ghost

Description

image

image

Activity

ghost

ghost commented on May 7, 2019

@ghost

image

geek-prince

geek-prince commented on May 7, 2019

@geek-prince
Owner

你用的react-native版本是较新的版本吗?大家最近反馈这个问题大多数都是在较新版本的出现的,但是最近还没时间来得及更新,你可以用下面这个用户找到的临时方法来解决一下:

图片

在源码中加入宽高的默认值

ghost

ghost commented on May 7, 2019

@ghost

版本是最新的

geek-prince

geek-prince commented on May 7, 2019

@geek-prince
Owner

那你先用这个方法临时解决一下吧,我后面有时间时会更新一个版本

ghost

ghost commented on May 7, 2019

@ghost

好的

CrayonShin-chan

CrayonShin-chan commented on Oct 14, 2019

@CrayonShin-chan

这么久了 这个问题还不更新掉吗?

miyaliunian

miyaliunian commented on Jan 17, 2020

@miyaliunian

大佬 可以帮你 pr吗

ghost closed this as completedon Jan 17, 2020
geek-prince

geek-prince commented on Jan 17, 2020

@geek-prince
Owner

@miyaliunian 行吧,你们有什么其他好的想法也都可以pr过来看看,现在还没什么时间来维护这些库

r-j-q

r-j-q commented on Apr 12, 2022

@r-j-q

那你先用这个方法临时解决一下吧,我后面有时间时会更新一个版本

项目升级后react-native-gesture-handler报invariant找不到,这怎么解决啊

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @geek-prince@miyaliunian@CrayonShin-chan@r-j-q

        Issue actions

          Invariant Violation: [19,"RCTView",21,{"width":"<<NaN>>","height":0,"backgroundColor":0}] is not usable as a native method argument · Issue #9 · geek-prince/react-native-page-scrollview