Skip to content

How are image props handled? #31

Discussion options

You must be logged in to vote

I’ve spent weeks working out how to use c++/rendered state in Fabric. I don’t understand why React Native couldn’t write this up. It seems needlessly cruel of them. I initially took the 'Write You Own State' section above to be React Native’s answer on how to use c++ state. But there are mistakes and omissions. So I’m going to save other people the pain by writing up what I learnt.

The key omission from the 'Write You Own State' section above is it doesn’t mention the interfaceOnly property of the NativeComponent spec. When you include this then React Native doesn’t codegen everything. It still codegens the Props and EventEmitters, for example, but it doesn’t codegen the ComponentDescript…

Replies: 3 comments 13 replies

Comment options

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

@grahammendick
Comment options

grahammendick Apr 22, 2022
Collaborator Author

@cipolleschi
Comment options

@grahammendick
Comment options

grahammendick Apr 22, 2022
Collaborator Author

@cipolleschi
Comment options

Comment options

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

@grahammendick
Comment options

grahammendick May 9, 2022
Collaborator Author

@cipolleschi
Comment options

@grahammendick
Comment options

grahammendick May 10, 2022
Collaborator Author

@grahammendick
Comment options

grahammendick May 10, 2022
Collaborator Author

Comment options

grahammendick
Jul 3, 2022
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by grahammendick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants