SYS.UNIT // FLOATING-DOCKER
EXPO 52 NATIVE
STRICT_TYPES
Floating Docker
A macOS-inspired floating dock navigation with magnification and spring physics.
RUNTIME: 0.00 KB
STYLES: StyleSheet
PLATFORMS: iOS • Android • Web
// SYSTEM.STAGE
┌┐└┘
SIMULATION.ACTIVESIM.ACTIVE
Home
Team
AI
Idea
Funds
Installation
Install the component and its peer dependencies automatically via the CLI:
pnpm dlx @rnblocks/cli add floating-docker
// SYS.USAGE
Drop this code into your screen or view:
floating-docker-example.tsx
13 linestsx
1import FloatingDocker from "@/components/floating-docker";2 3export default function AppNavigation() {4 return (5 <FloatingDocker6 initialTab="home"7 theme="dark"8 onTabChange={(tabId) => {9 console.log("Navigated to tab:", tabId);10 }}11 />12 );13}// SPEC.PROPS_API
Configurable interfaces for <FloatingDocker />
| PROP_IDENTIFIER | TYPE_SIGNATURE | DEFAULT_VAL | TELEMETRY_NOTES |
|---|---|---|---|
| initialTab | string | "team" | ID of the initially selected tab item. |
| theme | "dark" | "light" | "dark" | Color theme mode for dock backdrop blur, icons, and indicator pill. |
| onTabChange | (tabId: string) => void | undefined | Callback triggered when a tab item is pressed. |
| tabs | TabItem[] | DEFAULT_TABS | Custom array of tab items with id, label, and renderIcon function. |
initialTab
stringID of the initially selected tab item.
DEFAULT:
"team"theme
"dark" | "light"Color theme mode for dock backdrop blur, icons, and indicator pill.
DEFAULT:
"dark"onTabChange
(tabId: string) => voidCallback triggered when a tab item is pressed.
DEFAULT:
undefinedtabs
TabItem[]Custom array of tab items with id, label, and renderIcon function.
DEFAULT:
DEFAULT_TABS// PERFORMANCE_&_A11Y
Native touch gestures, screen reader attributes, and 60–120 FPS frame budgets:
Declares accessibilityRole='tab' on each dock item.
Clear accessibilityLabel reflecting the tab destination (e.g. 'Home', 'Team').
Dynamic accessibilityState={{ selected: isActive }} announcing selected tab.
Generous touch target sizing (>48pt) for effortless mobile navigation.