Skip to content

Conversation

yungsters
Copy link
Contributor

Summary:
Currently, the type definitions for feature flags assumes boolean values in the expectedReleaseValue field.

This diff fixes them so expectedReleaseValue must match the type of defaultValue.

Changelog:
[Internal]

Differential Revision: D75690997

@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 May 30, 2025
@facebook-github-bot
Copy link
Contributor

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

yungsters added a commit to yungsters/react-native that referenced this pull request May 30, 2025
Summary:

Currently, the type definitions for feature flags assumes `boolean` values in the `expectedReleaseValue` field.

This diff fixes them so `expectedReleaseValue` must match the type of `defaultValue`.

Changelog:
[Internal]

Differential Revision: D75690997
@facebook-github-bot
Copy link
Contributor

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

yungsters added a commit to yungsters/react-native that referenced this pull request May 30, 2025
Summary:

Currently, the type definitions for feature flags assumes `boolean` values in the `expectedReleaseValue` field.

This diff fixes them so `expectedReleaseValue` must match the type of `defaultValue`.

Changelog:
[Internal]

Differential Revision: D75690997
Summary:

Currently, the feature flag system does not properly support non-boolean feature flags. The type definitions and generated code make assumptions about the value type being `boolean`.

This diff fixes these assumptions so that non-boolean feature flags are supported.

Changelog:
[Internal]

Differential Revision: D75690997
@facebook-github-bot
Copy link
Contributor

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

yungsters added a commit to yungsters/react-native that referenced this pull request May 30, 2025
Summary:

Currently, the feature flag system does not properly support non-boolean feature flags. The type definitions and generated code make assumptions about the value type being `boolean`.

This diff fixes these assumptions so that non-boolean feature flags are supported.

Changelog:
[Internal]

Differential Revision: D75690997
yungsters added a commit to yungsters/react-native that referenced this pull request May 30, 2025
Summary:
Pull Request resolved: facebook#51707

Currently, the feature flag system does not properly support non-boolean feature flags. The type definitions and generated code make assumptions about the value type being `boolean`.

This diff fixes these assumptions so that non-boolean feature flags are supported.

Changelog:
[Internal]

Differential Revision: D75690997
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 2, 2025
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 8343045.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @yungsters in 8343045

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

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 Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants