Skip to content

Codegen Missing Features #91

Answered by dmytrorykun
cipolleschi asked this question in Q&A
Discussion options

You must be logged in to vote

@hannojg I'll copy my answer from a different discussion:

The Command abstraction is a way to tell a native component to do something bypassing the renderer. You should not expect any return value from it. The return value from a command generally may depend on many things other than component itself. This makes such component non-composable. This breaks one of React's fundamental principles. This is also the reason why it only accepts primitive types. We may add some more capabilities in the future, but there are currently no plans for that.

I would recommend to try finding a way to implement this behaviour using Native Modules.

Replies: 11 comments 25 replies

Comment options

You must be logged in to vote
0 replies

This comment has been hidden.

@ZihanChen-MSFT
Comment options

@cipolleschi
Comment options

cipolleschi Jan 30, 2023
Maintainer Author

@troZee
Comment options

troZee Jan 30, 2023
Collaborator

This comment has been hidden.

@ZihanChen-MSFT
Comment options

@ZihanChen-MSFT
Comment options

Comment options

You must be logged in to vote
9 replies
@matinzd
Comment options

matinzd Feb 10, 2023
Collaborator

@mym0404
Comment options

@Fa7
Comment options

@cipolleschi
Comment options

cipolleschi Jul 9, 2024
Maintainer Author

@bmahajanZ
Comment options

Comment options

You must be logged in to vote
0 replies

This comment has been hidden.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@cipolleschi
Comment options

cipolleschi May 15, 2023
Maintainer Author

@jerielng
Comment options

@cipolleschi
Comment options

cipolleschi May 16, 2023
Maintainer Author

Comment options

You must be logged in to vote
5 replies
@oliviermartin
Comment options

@cortinico
Comment options

@oliviermartin
Comment options

@cortinico
Comment options

@dmytrorykun
Comment options

Comment options

You must be logged in to vote
3 replies
@hannojg
Comment options

hannojg May 28, 2024
Collaborator

@hannojg
Comment options

hannojg May 28, 2024
Collaborator

@dmytrorykun
Comment options

Answer selected by hannojg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet