React Native Badge for Expo

Install

Badge · Variants, native in Expo Go — the other variants are a tap away. No account needed.

Needs Expo Go for SDK 58 — update from the App Store or Play Store.

Status pills in four styles that roll, pop and re-tint when their status changes.

iOS · Android · Expo Go
9:41

Installation

One command copies the source into your app — you own the code and can change anything.

After you add the file, import it like any local component:

App.tsx
import { Badge } from "@/components/ui/badge";

Or add it with the CLI (installs any missing peers):

Usage

Colours, radius and light / dark come from useKit(). Wrap your app in <KitProvider accent="#6366f1" radius={14}> to re-skin every component at once.

Like this? There's a lot more in Pro Pro

12 full screens built from the same kit — install them the same way.

See what's in Pro

Props

PropTypeDefault
variant

Filled, tinted, bordered, or a neutral outline with a coloured leading dot.

"solid" | "soft" | "outline" | "dot""soft"
tone

Semantic colour.

"neutral" | "accent" | "success" | "warning" | "danger""neutral"
size

20 / 24 / 28pt tall.

"sm" | "md" | "lg""md"
color

Custom colour (overrides tone).

string—
icon

Shown before the label.

ReactNode—
shape

Corner style.

"pill" | "rounded""pill"
pulse

Pulsing dot for live states (dot variant).

booleanfalse
animateChanges

Roll the label, pop the icon, cross-fade colours and spring the width when they change. Never on mount.

booleantrue
NotificationBadge.count

Number shown; 0 hides it.

number0
NotificationBadge.showZero

Keep the badge visible (showing 0) when count is 0.

booleanfalse
NotificationBadge.max

Shows "99+" above this.

number99
NotificationBadge.dot

Dot only, no number.

booleanfalse
NotificationBadge.children

Element the badge is pinned to (top-right).

ReactNode—
NotificationBadge.offset

Nudge from the corner.

[number, number][0, 0]
style

Style for the badge pill; NotificationBadge applies it to the anchor wrapper or bare bubble wrapper.

StyleProp<ViewStyle>—
className

Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.

string—

Customization

You own the source file — tune appearance with props (no fork required for most tweaks). For brand-wide colours and radius, wrap your app in KitProvider; for one-off looks, use the style props below.

Design theme

Open Design theme on the live preview — accent, corner radius and font update every variant instantly (same as KitProvider in your app).

Variants

Pick the Variants chip above the preview, or set variant=… — "solid" | "soft" | "outline" | "dot".

Style props

React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).

variant
"solid" | "soft" | "outline" | "dot" · default "soft"Filled, tinted, bordered, or a neutral outline with a coloured leading dot.
size
"sm" | "md" | "lg" · default "md"20 / 24 / 28pt tall.
color
stringCustom colour (overrides tone).
style
StyleProp<ViewStyle>Style for the badge pill; NotificationBadge applies it to the anchor wrapper or bare bubble wrapper.
className
stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.

Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.

Behaviour & accessibility

Motion
On a change the old label rolls up and out as the new one rolls in (per letter for short Latin text), the icon swaps with a scale-and-rotate pop and the pill width springs to fit. Rolls and pops use the native driver; colour and width run on the JS driver on separate views. Nothing animates on mount; animateChanges={false} swaps instantly.
Reduced motion
Changes swap instantly: no roll, pop, colour fade or width spring. The dot variant's pulse still loops.
Screen readers
Text labels are one accessible element whose label is always the current text; on Android it is a polite live region so status changes are announced.
Platforms
React Native Animated and react-native-svg only — iOS, Android, Expo Go and web.

Source

FAQ

How do I make a notification badge in React Native?
Use ExpoKit's Badge: run npx @expokit/cli@latest add badge in your Expo or React Native project and it copies a ready-made notification badge into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.
Does Badge work in Expo Go?
Yes. Badge runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg) are all included in Expo Go.
How do I add Badge to my Expo app?
Run npx @expokit/cli@latest add badge in your project. The CLI copies the component's source into your app and installs react-native-svg, so the code is yours to change.
Is Badge free?
Yes. Badge is free: its full source is on this page and the CLI installs it without an account.
Can I change how Badge looks?
Yes. It takes its colours, radius and light / dark mode from useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.