@react-native-masked-view/masked-view

提供屏蔽视图的库。

Android
iOS
tvOS
Bundled version:
0.3.2

@react-native-masked-view/masked-view 提供蒙版视图,仅显示与其蒙版元素中渲染的视图重叠的像素。

¥@react-native-masked-view/masked-view provides a masked view that only displays the pixels that overlap with the view rendered in its mask element.

在任何给定时间,你只能在项目中安装 @react-native-community/masked-view(已弃用)或 @react-native-masked-view/masked-view 之一。React Navigation v6 及更高版本需要 @react-native-masked-view/masked-view,因此如果你使用的是最新版本的 React Navigation,则应该使用该包。
Android 对该库的支持是实验性的,你可能会遇到跨平台行为不一致的情况。将你遇到的问题报告给 react-native-masked-view GitHub 存储库

安装

¥Installation

Terminal
npx expo install @react-native-masked-view/masked-view

If you are installing this in an existing React Native app, make sure to install expo in your project. Then, follow the installation instructions provided in the library's README or documentation.

了解更多

¥Learn more

访问官方文档

获取有关 API 及其用法的完整信息。