Skip to content

Fabric version of UIManagerModule.updateNodeSize on Android? #151

Answered by sammy-SC
joemun asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @joemun,

yes, Fabric has an alternative to update the size of a node in the tree.
Fabric stores all this information in ShadowTree and you will have to subclass some classes to get this to work.
I recommend looking at how Modal in Fabric works.
Through C++ state update, Android will tell Fabric about size. Then Fabric will apply this size to corresponding Yoga node and position everything accordingly.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@joemun
Comment options

joemun Oct 11, 2023
Collaborator Author

Answer selected by cortinico
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