This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
Spacer
A layout spacer that produces empty space between siblings.
Android
iOS
Web
Included in Expo Go
Recommended version:
~56.0.26
A layout spacer that produces empty space between siblings inside a Row or Column. Use size for a fixed gap, or flexible to fill the remaining main-axis space.
Installation
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
Fixed-size spacer
FixedSpacerExample.tsx
Flexible spacer
A flexible spacer fills the remaining space along its parent's main axis, pushing the surrounding content to opposite ends.
FlexibleSpacerExample.tsx
API
import { Spacer } from '@expo/ui';
No API data file found, sorry!