Skip to content

fix: preserve Stack direct child flex semantics - #71

Merged
artiphishle merged 4 commits into
mainfrom
fix/70-stack-direct-children
Aug 16, 2026
Merged

fix: preserve Stack direct child flex semantics#71
artiphishle merged 4 commits into
mainfrom
fix/70-stack-direct-children

Conversation

@artiphishle

Copy link
Copy Markdown
Contributor

Closes #70.
Refs ankhorage/zora#289.

Stack used wrapper Views to synthesize spacing between children. Those wrappers became the actual flex items and prevented authored child layout props such as flex, minHeight, minWidth, and alignSelf from participating directly in the Stack layout.

This PR makes Stack spacing container-owned:

  • use the resolved React Native gap style on the Stack container;
  • render authored children directly;
  • remove the wrapper View path entirely;
  • add a focused regression protecting the direct-child invariant;
  • add a patch changeset.

This is the Surface-owned primitive fix required by the cross-platform viewport contract in ankhorage/zora#289. No compatibility or fallback path is added.

@artiphishle
artiphishle merged commit 06c6b02 into main Aug 16, 2026
1 check passed
@artiphishle
artiphishle deleted the fix/70-stack-direct-children branch August 16, 2026 14:10
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.

[layout] Preserve direct child flex semantics in Stack

1 participant