@react-native-masked-view/masked-view
一个提供遮罩视图的库。
Android
iOS
tvOS
Included in Expo Go
For the complete documentation index, see llms.txt. Use this Use this file to discover all available pages.
@react-native-masked-view/masked-view 提供了一个蒙版视图,它只显示与在其 mask 元素中渲染的视图重叠的像素。
你的项目中在任何时候只能安装@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-viewGitHub 仓库。
安装
Terminal
- npx expo install @react-native-masked-view/masked-viewIf 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.
了解更多
访问官方文档
获取有关 API 及其用法的完整信息。