Skip to content

[Codegen 120] Refactor: Extract findComponentConfig(...) to parsers-commons.js#37547

Closed
Pranav-yadav wants to merge 1 commit into
react:mainfrom
Pranav-yadav:Pranav-yadav/codegen-120
Closed

[Codegen 120] Refactor: Extract findComponentConfig(...) to parsers-commons.js#37547
Pranav-yadav wants to merge 1 commit into
react:mainfrom
Pranav-yadav:Pranav-yadav/codegen-120

Conversation

@Pranav-yadav

Copy link
Copy Markdown
Contributor

Summary:

This PR extracts the findComponentConfig(...) Flow and TS from the index.js's files to the parser-commons.js file.

Changelog:

[INTERNAL][CHANGED] - Refactor: Extract findComponentConfig(...) from Flow & TS to parsers-commons.js

Test Plan:

  • yarn flow && yarn test packages/react-native-codegen → should be green.

@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 24, 2023

@cipolleschi cipolleschi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Amazing! I love this! :D

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@Pranav-yadav

Copy link
Copy Markdown
Contributor Author

Thanks. 😊
I left a comment for you and everyone, under Codegen Umbrella 👍

@analysis-bot

Copy link
Copy Markdown
Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,739,378 -1
android hermes armeabi-v7a 8,050,272 -1
android hermes x86 9,229,565 -3
android hermes x86_64 9,081,395 -1
android jsc arm64-v8a 9,302,722 -1
android jsc armeabi-v7a 8,491,197 -1
android jsc x86 9,363,975 -2
android jsc x86_64 9,619,913 -4

Base commit: 670fa88
Branch: main

@Pranav-yadav Pranav-yadav added the Tech: Codegen Related to react-native-codegen label May 24, 2023
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label May 25, 2023
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi merged this pull request in e240879.

@Pranav-yadav Pranav-yadav deleted the Pranav-yadav/codegen-120 branch May 25, 2023 16:08
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. Tech: Codegen Related to react-native-codegen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants