react-native-web icon indicating copy to clipboard operation
react-native-web copied to clipboard

onLayout not called when using a draglist.

Open yikerman opened this issue 2 years ago • 2 comments

Is there an existing issue for this?

  • [X] 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.)

yikerman avatar Feb 05 '23 08:02 yikerman