Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[codegen] Fixes enum codegen value cases #44654

Closed
wants to merge 6 commits into from

Conversation

zhongwuzw
Copy link
Contributor

Summary:

Fixes #44632

Changelog:

[GENERAL] [FIXED] - [codegen] Fixes enum codegen value cases

Test Plan:

#44632

@facebook-github-bot facebook-github-bot added 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. labels May 23, 2024
@javache
Copy link
Member

javache commented May 23, 2024

Thanks for the fix! Could you add unit test or make sure this scenario is captured in a snapshot?

@analysis-bot
Copy link

analysis-bot commented May 24, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 19,609,480 +5
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 22,978,971 -11
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: e0a2e86
Branch: main

@@ -3,6 +3,9 @@
<PROJECT_ROOT>/packages/react-native/template/.*
<PROJECT_ROOT>/packages/react-native/sdks/.*

; Ignore the codegen e2e tests
<PROJECT_ROOT>/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeEnumTurboModule.js
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhongwuzw
Copy link
Contributor Author

@javache Thanks for the review. I added the snapshot test.

@facebook-github-bot
Copy link
Contributor

@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 7, 2024
@facebook-github-bot
Copy link
Contributor

@cortinico merged this pull request in 1a1795a.

Copy link

github-actions bot commented Jun 7, 2024

This pull request was successfully merged by @zhongwuzw in 1a1795a.

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

kosmydel pushed a commit to kosmydel/react-native that referenced this pull request Jun 11, 2024
Summary:
Fixes facebook#44632

## Changelog:

[GENERAL] [FIXED] - [codegen] Fixes enum codegen value cases

Pull Request resolved: facebook#44654

Test Plan: facebook#44632

Reviewed By: cipolleschi, dmytrorykun

Differential Revision: D58135645

Pulled By: cortinico

fbshipit-source-id: 5c0634ef1d1d7375d2ecfcf7f916d67fd39b7300
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. Merged This PR has been merged. 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.

[codegen] inconsistent use of toSafeCppString in generateEnum (GenerateModuleH.js)
4 participants