Communicate size changes to Yoga in native Android component #261
Unanswered
sidorchukandrew
asked this question in
Q&A
Replies: 1 comment
-
👋 Hi please check my answer here #267 (comment) TL;DR: You need to provide a custom shadow node. PR for reference: s77rt/react-native-date-picker#20 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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