Skip to content

Android crash: "[160,"<<NaN>>"] is not usable as a native method argument" #897

Open
@eirikluka

Description

@eirikluka

After updating to 2.5.5 my app crashes a lot on Android. It seems to be related to unmounting/rerendring/layout and after some digging I found it to be related to #721.

The following line in SegmentControl.js is called in an useEffect when values change, but in some cases width is undefined.

ref.current.measure((_x, _y, width) => updateSegmentWidth(width));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions