Skip to content

iOS - Fabric - apply mask to component and its child components #138

Closed Answered by zabojad
zabojad asked this question in Q&A
Discussion options

You must be logged in to vote

OK, issue resolved. I had to add the subview by overriding mountChildComponentView and unmountChildComponentView methods so that they add the children components to my component contentView.

// ...
- (void)mountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index
{
    [_view mountChildComponentView:childComponentView index:index];
}

- (void)unmountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index
{
    [_view unmountChildComponentView:childComponentView index:index];
}
// ...

Replies: 1 comment

Comment options

zabojad
Jun 27, 2023
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by cortinico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant