Skip to content

Bring back @flow strict to composeStyles and fix Flow errors - #51803

Closed
coado wants to merge 1 commit into
react:mainfrom
coado:export-D75945388
Closed

coado wants to merge 1 commit into
react:mainfrom
coado:export-D75945388

Conversation

@coado

@coado coado commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

Summary:
The flow strict annotation was accidently removed in D74574293. This diff brings it back and fixes flow errors caused by this change. This makes generated TS types for composeStyles more relaxed but the main idea of inferring inputs base on output type annotation is preserved.

Changelog:
[Internal]

Reviewed By: huntie

Differential Revision: D75945388

Summary:
The `flow strict` annotation was accidently removed in D74574293. This diff brings it back and fixes flow errors caused by this change. This makes generated TS types for `composeStyles` more relaxed but the main idea of inferring inputs base on output type annotation is preserved. 

Changelog:
[Internal]

Reviewed By: huntie

Differential Revision: D75945388
@facebook-github-bot facebook-github-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 Jun 4, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 4, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 0de92b5.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @coado in 0de92b5

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

jbroma pushed a commit to jbroma/react-native that referenced this pull request Jun 4, 2025
…#51103)

Summary:
Fixes react#51083. Turbo stripped out the dictionary when the value is null. The old architecture transforms null to NSNull. The null seems useful in cases like react#51803 for removing the storage of the key. cipolleschi can you please help to review?

## Changelog:

[IOS] [FIXED] - Turbo module: Fixes dictionary stripped out when value is null

Pull Request resolved: react#51103

Test Plan: Repro please see react#51083.

Reviewed By: rshest

Differential Revision: D74208525

Pulled By: javache

fbshipit-source-id: 53d630c265fba15d25309a3e1deb19dca24f298c
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 Merged This PR has been merged. p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants