View

Atom
The layout primitive: a flex container that runs identically on iOS, Android, and the web. A View is a column by default.

Playground

Every control sets a real prop of ViewProps. The JSX below updates as you go.
Project workspace
A parent View groups related content.
Design system
12 components ready for review
Props
children
string
JSX · ViewProps
<Container sm>
<View style={{ minHeight: 160, backgroundColor: alpha(tokens.primary, 0.08) }}>
<Column pad relaxed>
<View>
<Typography h5>Project workspace</Typography>
<Typography small muted>A parent View groups related content.</Typography>
</View>
<View>
<Typography semibold>Design system</Typography>
<Typography small>12 components ready for review</Typography>
</View>
</Column>
</View>
</Container>

Variants

3 examples from src/atoms/view/view.md, each rendered live from its own JSX.
Column
<Container xs>
<Column snug>
<View style={{ height: 28, borderRadius: 6, backgroundColor: alpha(tokens.primary, 0.15) }} />
<View style={{ height: 28, borderRadius: 6, backgroundColor: alpha(tokens.primary, 0.15) }} />
<View style={{ height: 28, borderRadius: 6, backgroundColor: alpha(tokens.primary, 0.15) }} />
</Column>
</Container>
Flex sizing
<Container xs>
<Row snug>
<View style={{ flex: 1, height: 32, borderRadius: 6, backgroundColor: alpha(tokens.primary, 0.15) }} />
<View style={{ flex: 2, height: 32, borderRadius: 6, backgroundColor: alpha(tokens.primary, 0.3) }} />
</Row>
</Container>
A padded View
Padding
<View style={{ padding: 16, borderRadius: 10, backgroundColor: alpha(tokens.primary, 0.15) }}>
<Typography>A padded View</Typography>
</View>

Anatomy

View
View
1
View
2
Child view
Dimmed parts appear only in some states or variants.

Props

A React Native primitive, re-exported as is.
Accepts every React Native View prop unchanged. Canvas re-exports it so every component is built from the same primitive.

Accessibility and keyboard

Keyboard
Not focusable. It has no interaction of its own and takes the semantics of what it wraps.
Semantics
No role of its own in source; it reads as the content it renders.

Platform skins

The playground's props on each platform: same tree, native shapes, type and touch sizes.
View
View
Web
control 10 · field 10 · card 16 · Instrument Sans
View
View
iOS
capsule controls · field 8 · card 12 · SF Pro · 44 pt
View
View
Android
Material 3 stadium · field 4 · card 12 · Roboto · 48 dp

Usage

The tinted parent View groups two child Views. Each child sizes to its content; the surrounding Column supplies spacing and padding. Edit children in the playground to replace the contents while keeping the parent's bounds visible.
<Container sm>
<View style={{ minHeight: 160, backgroundColor: alpha(tokens.primary, 0.08) }}>
<Column pad relaxed>
<View>
<Typography h5>Project workspace</Typography>
<Typography small muted>A parent View groups related content.</Typography>
</View>
<View>
<Typography semibold>Design system</Typography>
<Typography small>12 components ready for review</Typography>
</View>
</Column>
</View>
</Container>
Reach for it directly only when no semantic primitive covers what you need: arrangement (direction, gap, alignment, padding) belongs to Row and Column, which are Views with that axis exposed as boolean props, and a bordered filled surface belongs to Card. Numbers are density-independent pixels.

Tokens

Read from the playground render. Values follow the scheme and the ion hue.
--fd
--fm
--ft
--ion-ring
--ion-soft
--ion-tx
--ln
--sf2

Related components