React Native Floating Action Button for Expo

A floating action button that fans out a staggered speed dial as its plus turns to ×.

ProiOS · Android · Expo Go
9:41

Props

PropTypeDefault
actions

Speed-dial items, bottom → top (arc: first → last). icon can be a node or ({ color }) => node; with color the icon colour contrasts automatically. Omit for a plain FAB.

{ label, icon, onPress?, color? }[]—
onPress

Called when there are no actions.

() => void—
icon

Main icon (rotates 135° when open). A function is re-coloured as the button turns neutral when open.

ReactNode | ({ color }) => ReactNodeplus
label

Makes it an extended FAB (icon + label).

string—
extended

Set false (e.g. while scrolling) to collapse the label into a circle.

booleantrue
open / onOpenChange

Controlled speed dial (or use defaultOpen).

boolean—
defaultOpen

Speed dial starts open when uncontrolled.

booleanfalse
layout

Labelled column, or mini buttons fanned out on a quarter circle (half circle for bottom-center). Arc hides the chips; labels stay as accessibility labels.

"list" | "arc""list"
position

Corner of the parent it sits in.

"bottom-right" | "bottom-left" | "bottom-center""bottom-right"
variant

accent: solid fill + same-colour glow; gradient: opt-in two-tone; tonal: soft tinted surface; primary / secondary: theme surfaces.

"accent" | "gradient" | "tonal" | "primary" | "secondary""accent"
size

Main button 40, 56 or 64pt (speed-dial buttons 36 / 42 / 46pt).

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

Tint for accent, gradient and tonal; glow, foreground (and the opt-in gradient stops) are derived from it.

stringtheme accent
backdrop

Dim the parent while open; tap to close.

booleantrue
pulse

Looping attention ring (skipped with Reduce Motion), e.g. for empty-state calls to action.

booleanfalse
offset

Distance from the parent's edges.

number20
rotate

Rotate the icon into × when open.

booleantrue
haptics

Tap on toggle.

booleantrue
style

Style for the absolutely positioned stack holding the main button and list actions.

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=… — "accent" | "gradient" | "tonal" | "primary" | "secondary".

Style props

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

variant
"accent" | "gradient" | "tonal" | "primary" | "secondary" · default "accent"accent: solid fill + same-colour glow; gradient: opt-in two-tone; tonal: soft tinted surface; primary / secondary: theme surfaces.
size
"sm" | "md" | "lg" · default "md"Main button 40, 56 or 64pt (speed-dial buttons 36 / 42 / 46pt).
color
string · default theme accentTint for accent, gradient and tonal; glow, foreground (and the opt-in gradient stops) are derived from it.
style
StyleProp<ViewStyle>Style for the absolutely positioned stack holding the main button and list actions.
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

Touch
Tapping the button opens the speed dial over an optional dimmed backdrop; tapping the backdrop closes it. Without actions it just calls onPress.
Motion
Actions spring out one after another as a labelled list or an arc. An extended FAB springs between a pill and a circle, and pulse loops a ring around it.
Reduced motion
The pulse ring stays off when reduce motion is on.
Haptics
A light impact when the button opens or closes the dial, or fires onPress.
Screen readers
The main button and each action are buttons; the main button reads "Open actions" / "Close actions" with an expanded state when it has a dial.

Source

FAQ

How do I make a floating button in React Native?
Use ExpoKit's Floating Action Button, a Pro component: with ExpoKit Pro, the ExpoKit CLI copies a ready-made floating button into your Expo or React Native app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.
Does Floating Action Button work in Expo Go?
Yes. Floating Action Button runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg, expo-haptics) are all included in Expo Go.
How do I add Floating Action Button to my Expo app?
With ExpoKit Pro, add it with the ExpoKit CLI: it copies the component's source into your app and installs react-native-svg, expo-haptics, so the code is yours to change. The install command is on this page for Pro members.
Is Floating Action Button free?
Floating Action Button is part of ExpoKit Pro. With a Pro plan, log the CLI in once (npx @expokit/cli@latest login) and it installs the full source into your app.
Can I change how Floating Action Button 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.