[iOS] Codegen: Generates broken code for event emitter with nested objects in arrays #47113
Labels
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
Platform: iOS
iOS applications.
Resolution: Fixed
A PR that fixes this issue has been merged.
Tech: Codegen
Related to react-native-codegen
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
When having a fabric view component spec and using a direct event emitter which returns an object, which has an array field, which is of a custom object type the generates C++ code for the EventEmitter is broken.
This is the spec for example:
And this is code generated by Codegen:
To me it looks like it inserted a
,
where it should have used a.
.Steps to reproduce
cd ReproducerApp
yarn
npx react-native codegen
ios/build/generates/ios/react/RNCameraSpec/EventEmitters.cpp
, or try to build iOSReact Native Version
0.75.4
Affected Platforms
Build - MacOS, Build - Windows, Build - Linux
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/hannojg/reproducer-react-native
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: