Skip to content

fix: Fall back to layout position when item position is unset#555

Open
MatiPl01 wants to merge 2 commits into
mainfrom
fix/items-not-rendering-on-mount
Open

fix: Fall back to layout position when item position is unset#555
MatiPl01 wants to merge 2 commits into
mainfrom
fix/items-not-rendering-on-mount

Conversation

@MatiPl01

@MatiPl01 MatiPl01 commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Fixes grid/flex items not appearing until the first scroll on Reanimated 4.4 (#552).

When absolute layout becomes active, an item's animated position may not be propagated yet, so it would render with HIDDEN_STYLE and stay hidden until a scroll re-ran the layout. This falls back to the item's layoutPosition (from itemPositions) while position is still null, so items render at their correct slots immediately. position stays primary (drag/reorder animations unaffected), and HIDDEN_STYLE is kept only as the both-null fallback.

Closes #552

@vercel

vercel Bot commented Jun 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-native-sortables-docs Ready Ready Preview, Comment Jun 10, 2026 2:14pm

@github-actions github-actions Bot added the fix label Jun 7, 2026
@MatiPl01 MatiPl01 changed the title fix: Render items on mount instead of after first scroll fix: Fall back to layout position when item position is unset Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Support react-native-reanimated 4.4.0

1 participant