react-native
react-native copied to clipboard
chore: Add getKeyName function to codegen Parser class
Summary
This PR adds a getKeyName function to the codegen Parser class and implements it in the Flow and TypeScript parsers as requested on https://github.com/facebook/react-native/issues/34872.
Changelog
[Internal] [Added] - Add getKeyName function to codegen Parser class
Test Plan
Run yarn jest react-native-codegen and ensure CI is green

| Platform | Engine | Arch | Size (bytes) | Diff |
|---|---|---|---|---|
| android | hermes | arm64-v8a | 7,070,038 | +0 |
| android | hermes | armeabi-v7a | 6,442,174 | +0 |
| android | hermes | x86 | 7,485,033 | +0 |
| android | hermes | x86_64 | 7,344,612 | +0 |
| android | jsc | arm64-v8a | 8,934,550 | +0 |
| android | jsc | armeabi-v7a | 7,668,661 | +0 |
| android | jsc | x86 | 8,994,599 | +0 |
| android | jsc | x86_64 | 9,473,532 | +0 |
Base commit: 5744b219c75ab6c2963d962d07edd6bf2f733662 Branch: main
| Platform | Engine | Arch | Size (bytes) | Diff |
|---|---|---|---|---|
| ios | - | universal | n/a | -- |
Base commit: bbb3a6146cc24d391843bcaf0a451a2876c14056 Branch: main
PR build artifact for b8c9470146c02908c589f0cd0b5c2ca0e181c01e is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.
@jacdebug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
What do you think about adding a unit test for the TypeScript parser and for the Flow parser?
Sure @cipolleschi, that sounds like a great idea, I've just pushed a commit adding some unit tests for both Parsers.
PR build artifact for a9d875fa39d128daa9573e48e5f0848ede0a89d6 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.
PR build artifact for a85d874873b6f54d785ea4f26636b997ff2f3320 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.
PR build artifact for 518ef9ad244eed7671fd28f65e37a774fe9e911a is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.
PR build artifact for 68f987d4ac16b3e69732c1732312282603fb11bb is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.
Hi @cipolleschi everything should've been updated now, do you mind taking another look?
@jacdebug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.