Skip to content

Conversation

@crjc
Copy link
Contributor

@crjc crjc commented Jun 10, 2025

In React Native Web, onLayout is not fired when items are moved around in a FlatList. This causes odd behaviour similar to what has previously been documented in issues #27 #38.

Seemingly this is an underlying bug with RN Web (necolas/react-native-web#2481 - this issue mentions this library specifically).

This PR manually measures the layout of components only on web when the index is updated.

Copy link
Owner

@fivecar fivecar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome

@fivecar fivecar merged commit 63716b3 into fivecar:main Jun 16, 2025
@fivecar
Copy link
Owner

fivecar commented Jun 16, 2025

Released in 3.9.6. Thanks for contributing!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants