Skip to content

fix(ios): ensure empty Text has zero width and height#55555

Open
IkyssOffc wants to merge 4 commits intofacebook:mainfrom
IkyssOffc:main
Open

fix(ios): ensure empty Text has zero width and height#55555
IkyssOffc wants to merge 4 commits intofacebook:mainfrom
IkyssOffc:main

Conversation

@IkyssOffc
Copy link

@IkyssOffc IkyssOffc commented Feb 15, 2026

Summary:
This PR fixes issue #17553 where the RefreshControl (spinner) appears at the visual bottom on inverted lists, and issue #55468 regarding iOS Text dimensions.

Changelog:

[General] [Fixed] - Fix RefreshControl position for inverted VirtualizedList
[iOS] [Fixed] - Ensure empty Text component has zero width and height

Test Plan:

  1. Render an inverted FlatList, pull to refresh, and verify the spinner is at the visual top.
  2. Render an empty Text component on iOS and verify dimensions are 0.

Checks for attributedText length in RCTTextShadowViewMeasure and returns zero size immediately if empty. Fixes facebook#55468.
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 15, 2026
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Feb 15, 2026
This commit fixes issue facebook#17553 by adjusting the contentOffset and progressViewOffset logic. When the 'inverted' prop is active, the activity indicator now correctly remains at the visual top of the list instead of being pushed to the bottom.
This PR addresses issue facebook#17553. Currently, when 'inverted' prop is true, the RefreshControl appears at the visual bottom. This fix applies a transform style to the RefreshControl or its wrapper to ensure the activity indicator is correctly positioned at the visual top of the list for both vertical and horizontal orientations.
@IkyssOffc
Copy link
Author

Hi! I've fixed the changelog format and the CI check is now passing. This PR addresses both the inverted VirtualizedList refresh position (#17553) and iOS empty Text dimensions (#55468). Ready for review!

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants