React Native MaskedView new architecture #80
hansdesmedt
started this conversation in
Libraries
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 |
0 replies
|
Ok thanks a lot! that worked! added the unmountChildComponentView to the solution. 🙏 |
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.
Uh oh!
There was an error while loading. Please reload this page.
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!
All reactions