callstack / callstack/masked-view

How to cut a hole in a view using a mask

Open
#147 4 comments 9 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.2k
Forks
131
PR merge metrics
No merged PRs in 30d

Description

I need to make an inverted mask. This means making a "hole" in the rendered view, instead of rendering inside the hole. Since this plugin uses alpha to define the mask, I cannot use a transparent view inside an opaque view, otherwise it will only use the opaque view as the mask. It would be better to use white instead of alpha to change the mask opacity. Is there a way to do this? Here's an example of what I want to do:

![image](https://user-images.githubusercontent.com/30760582/151794537-aa4271e8-7275-4c94-be9c-26b1e187e840.png)

I want to remove the bottom part of that rectangle, using another view with rounded corners. But I'm unable to "remove" a piece of the mask. Is there any workaround?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.