-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
codegenNativeCommands, ReadonlyArray Unsupported param type error #36817
Comments
|
Hi @ysfzrn! We know that array support for events and commands is not existent right now. We are tracking the task and working on that internally. |
Hi @cipolleschi thanks for answer. The new architecture is going great, I'm sure you'll add this soon as well. Good luck! |
@cipolleschi do we have the support for array now for events and commands? |
For events, yes. |
@cipolleschi is it specifically added in 0.72.4, I could not find it working in 0.72.3, tried to use ReadOnlyArray and Array both for custom types. |
You are right. The change landed on main on May, the 4th. So it was not cherry picked into 0.72 as it was not a fix but a new feature. They will be available starting from 0.73 |
Description
I am creating a fabric native component and adding native commands to this component. I haven't encountered any problems with simple data types or complex view props. However, when I define object types within an array as parameters for the addPolyLine command, I get the following error from codegen. Is this a bug or am I doing something wrong?
I couldn't find an example related to this in the documentation. (I'm using typeScript)
How can I define the codegenNativeCommands function with an array or object?
Sample Code
React Native Version
0.71.5
Output of
npx react-native info
Steps to reproduce
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: