This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
@react-native-masked-view/masked-view
一个提供遮罩视图的库
重要
@expo/ui提供了一个可直接替换@react-native-masked-view/masked-view的组件,由 Android 上的 Jetpack Compose 和 iOS 上的 SwiftUI 提供支持。
@react-native-masked-view/masked-view 提供了一个蒙版视图,该视图仅显示与其蒙版元素中渲染的视图重叠的像素。
警告 你的项目中同一时间只能安装
@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 仓库。
安装
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.
了解更多
获取 API 及其用法的完整信息。