Replies: 1 comment
-
Thanks for doing this! I really hope to find some time to fix this. Luckily, being a patch, we may be able to release a fix for it in 0.71 without a release of React Native, thanks to the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Tested
react-native-codegen
version 0.70.5When having an array of objects prop like this one:
the generated
Props.h
misses the include<react/renderer/core/propsConversions.h>
needed for structs, producing an error like:So far, I see that the problem is that codegen only adds
propsConversions.h
if there's a prop withtypeAnnotation.type === 'ObjectTypeAnnotation'
and not fortypeAnnotation.type === 'ArrayTypeAnnotation' && typeAnnotation.elementType.type === 'ObjectTypeAnnotation'
.Adding a dummy object prop like the one below unblocks the issue since
Props.h
will includepropsConversion.h
.@cipolleschi, I'm creating this issue here to increase visibility since others might have a similar problem.
Beta Was this translation helpful? Give feedback.
All reactions