This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
BadgedBox
一个用于在内容上叠加徽章的 Jetpack Compose BadgedBox 组件。
Android
Included in Expo Go
Recommended version:
~58.0.15
Expo UI BadgedBox 与官方 Jetpack Compose BadgedBox API 相匹配。它会在图标等内容的顶部覆盖一个徽章。
🌐 Expo UI BadgedBox matches the official Jetpack Compose BadgedBox API. It overlays a badge on top of content such as an icon.


安装
🌐 Installation
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
用法
🌐 Usage
带徽章计数的图标
🌐 Icon with badge count
IconWithBadge.tsx
交互式计数器
🌐 Interactive counter
InteractiveBadge.tsx
应用接口
🌐 API
import { BadgedBox } from '@expo/ui/jetpack-compose';
No API data file found, sorry!