@react-native-community/masked-view provides a masked view which only displays the pixels that overlap with the view rendered in its mask element.
⚠️ Android support for this library is currently experimental and you may encounter inconsistencies in behavior across platforms. Please report issues you encounter to react-native-community/react-native-masked-view/issues.

Platform Compatibility

Android DeviceAndroid EmulatoriOS DeviceiOS SimulatorWeb

expo install @react-native-community/masked-view

If you're installing this in a bare React Native app, you should also follow these additional installation instructions.