Resize UIview manually from native side #214
DanielFrTB
started this conversation in
Deep Dive
Replies: 2 comments 8 replies
-
@DanielFrTB It sounds like what you want is commands on the Fabric component. https://medium.com/@carlosalmonte04/fabric-react-native-how-to-trigger-native-method-from-javascript-25b695f8b83 might help you with that. @cipolleschi I'm noticing that I can't find docs in this repo explaining native commands on Fabric components, is that intended? |
Beta Was this translation helpful? Give feedback.
3 replies
-
@cipolleschi |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
We have a native UIView that receives resize events from a remote API. Is there a way to resize the view from the native part? For example, can we manually invoke (not triggered by JS prop changes)
- (void)updateLayoutMetrics:(const facebook::react::LayoutMetrics &)layoutMetrics oldLayoutMetrics:(const facebook::react::LayoutMetrics &)oldLayoutMetrics
?We need to do that on iOS and Android.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions