Communicate size changes to Yoga in native Android component #261
Unanswered
sidorchukandrew
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think this is a simple question but I can't seem to find any answers to it anywhere!
Let's say I'm trying to add a native component on Android to my React Native app. The component is a
MaterialButton
from Material 3. I have a prop calledtext
that the view manager receives and sets likeview.text = textFromProp
. Now the button might be wider or shorter depending on what the new text is. How do I get Yoga to re-measure the button or communicate the new button size to Yoga?Beta Was this translation helpful? Give feedback.
All reactions