提供屏蔽视图的库。
@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/masked-view/issues。
¥Installation
-
npx expo install @react-native-masked-view/masked-view
If you are installing this in an existing React Native app (bare workflow), start by installing expo
in your project. Then, follow the additional instructions as mentioned by library's README under "Installation in bare React Native projects" section.
¥Usage
请参阅 react-native-masked-view/masked-view
处的完整文档。
¥See full documentation at react-native-masked-view/masked-view
.