Skip to content

onLayout not called when using a draglist. #2481

@yikerman

Description

@yikerman

Is there an existing issue for this?

  • I have searched the existing issues

Describe the issue

I'm using react-native-draglist, a stripped version of react-native-draggable-flatlist.

It works fine on mobiles but on web it's broken when dragging the second times.

Expected behavior

The draglist behaves normally.

Steps to reproduce

See test case.

Test case

https://snack.expo.dev/@xiaoyu2006/rnw-bug-report

Additional comments

After some debugging it turns out that onLayout method at fivecar/react-native-draglist/src/index.tsx:337 is not called on the web side.

I'm still a newbie to RN and RNW, any help is appreciated. I'm in need of a workaround now. (Fixing it will be better.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions