Repository navigation
fix(native): rn-web vertical-align positioning + broaden iOS warning - #5743
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: a7b691d The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Pull request overview
This PR updates the React Native transform layer to improve vertical-align behavior on react-native-web and expands the iOS development warning for unsupported vertical alignment. It also includes prerelease workflow improvements and a new native showcase widget for QA.
Changes:
- rn-web: when
vertical-alignistop | middle | bottom, additionally emit a flex alignment property intended to reposition content inside the box. - iOS dev warning: broaden
vertical-alignwarning from<Text>to also include<TextInput>. - CI + Showcase: filter prerelease notes to omit already-shipped changesets; add a
TextInputAlignmentwidget and register it.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/styled-components/src/native/transform/index.ts | Adds rn-web-specific vertical-align handling that emits an additional alignment property. |
| packages/styled-components/src/native/transform/dev.ts | Updates iOS warning copy to include <TextInput> behavior/limitations. |
| packages/styled-components/src/native/transform/test/passthrough.test.ts | Adds tests for the rn-web vertical-align → additional alignment emission. |
| packages/styled-components/src/native/transform/test/devWarn.test.ts | Updates tests for the broadened iOS warning message. |
| packages/native-showcase/src/widgets/TextInputAlignment.tsx | Adds a new QA widget for multiline TextInput vertical alignment. |
| packages/native-showcase/src/widgets/registry.ts | Registers the new QA widget in the showcase. |
| .github/workflows/release.yml | Skips already-shipped changesets when generating prerelease notes. |
| .changeset/native-web-vertical-align-content.md | Changeset entry for rn-web vertical-align behavior. |
| .changeset/native-vertical-align-ios-warning.md | Changeset entry for broadened iOS warning (+ formatting tweak). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
quantizor
force-pushed
the
text-input-alignment-showcase
branch
from
May 11, 2026 20:20
91041f4 to
09ffb86
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rn-web
vertical-align: top | middle | bottomnow positions text content inside the Text's box, matching the visual semantic of React Native'sverticalAlignon Android (textAlignVertical). Other values (baseline,sub,super,text-top,text-bottom, lengths, percentages,auto) pass through to the browser's native baseline-shifting semantics.iOS dev warning for
vertical-alignnow covers<TextInput>as well as<Text>. RN 0.85 has no platform API to vertically align text content on iOS for either component; the declaration silently has no effect. The warning names the situation and (for<Text>) points to the View +justify-contentworkaround.Also bundled:
CI: prerelease release notes now skip changesets already shipped in earlier prereleases (the existing logic was re-emitting the full pending pile every snapshot publish).
Showcase: new
TextInputAlignmentwidget for visual QA of multiline<TextInput>vertical alignment across iOS, Android, and rn-web.Test plan
pnpm --filter styled-components test:web(1311 passed)pnpm --filter styled-components test:native(1025 passed)pnpm --filter styled-components typecheck+test:typesclean