React Native MaskedView new architecture #80
Replies: 2 comments
-
I am not sure whether this is the right approach, so I'll share it here and wait for someone that knows Fabric a bit better (and I only tried with the example provided). It seems that Something like this: - (void)mountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index
{
if (index == 0) {
self.contentView.maskView = childComponentView;
} else {
[self.contentView mountChildComponentView:childComponentView index:index];
}
} However, if you override |
Beta Was this translation helpful? Give feedback.
-
Ok thanks a lot! that worked! added the unmountChildComponentView to the solution. 🙏 |
Beta Was this translation helpful? Give feedback.
-
Hi,
We try to update https://github.com/react-native-masked-view/masked-view to the new architecture.
We still have an issue with the iOS part.
https://github.com/hansdesmedt/masked-view/blob/master/ios/RNCMaskedView.mm
We cannot find the right fabric method to get the reactSubviews and assign the first view to the self.maskView.
Someone who can help?
this is an example of an app running the new architecture
The maskElement prop is blended into the react tree here https://github.com/hansdesmedt/masked-view/blob/master/src/MaskedView.js so that shouldn't be a problem.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions