Skip to content

Deprecate StyleSheet.absoluteFillObject#53530

Closed
huntie wants to merge 1 commit intofacebook:mainfrom
huntie:export-D81327548
Closed

Deprecate StyleSheet.absoluteFillObject#53530
huntie wants to merge 1 commit intofacebook:mainfrom
huntie:export-D81327548

Conversation

@huntie
Copy link
Copy Markdown
Member

@huntie huntie commented Aug 29, 2025

Summary:
Deprecate the StyleSheet.absoluteFillObject API in favour of StyleSheet.absoluteFill (functionally identical).

Secondly, refine the type definitions in our source code (and Strict TS API) from anyAbsoluteFillStyleresolves #53470.

This will be followed with updates to our docs.

Changelog:
[General][Deprecated] - StyleSheet.absoluteFillObject is deprecated in favor of StyleSheet.absoluteFill (equivalent).

Differential Revision: D81327548

@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 Aug 29, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D81327548

@react-native-bot
Copy link
Copy Markdown
Collaborator

react-native-bot commented Aug 29, 2025


Warnings
⚠️ ❗ JavaScript API change detected - This PR commits an update to ReactNativeApi.d.ts, indicating a change to React Native's public JavaScript API. Please include a clear changelog message. This change will be subject to extra review.

This change was flagged as: BREAKING

Generated by 🚫 dangerJS against 4d5cb8a

Summary:

Deprecate the `StyleSheet.absoluteFillObject` API in favour of `StyleSheet.absoluteFill` (functionally identical).

Secondly, refine the type definitions in our source code (and Strict TS API) from `any` → `AbsoluteFillStyle` — resolves facebook#53470.

This will be followed with updates to our docs.

Changelog:
[General][Deprecated] - `StyleSheet.absoluteFillObject` is deprecated in favor of `StyleSheet.absoluteFill` (equivalent).

Reviewed By: yungsters

Differential Revision: D81327548
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D81327548

@huntie huntie added the JS API refinements (2025) Follow-up items from our JS API changes in 0.80 (deep imports deprecation and Strict TypeScript API) label Aug 30, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 83e1981.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 30, 2025
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @huntie in 83e1981

When will my fix make it into a release? | How to file a pick request?

@huntie huntie deleted the export-D81327548 branch August 30, 2025 11:14
satya164 added a commit to react-navigation/react-navigation that referenced this pull request Aug 31, 2025
satya164 added a commit to react-navigation/react-navigation that referenced this pull request Aug 31, 2025
satya164 added a commit to react-navigation/react-navigation that referenced this pull request Nov 1, 2025
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. fb-exported JS API refinements (2025) Follow-up items from our JS API changes in 0.80 (deep imports deprecation and Strict TypeScript API) Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TypeScript] react-native-strict-api Stylesheet.absoluteFill typed as any

3 participants