Skip to Content
ARCUI

Composition

Map semantics to ARCUI primitives first, then use React Native layout for application-specific structure.

ARCUI is a component library, not a replacement for normal React Native layout.

A reliable composition process is:

1. identify semantic behavior and state
2. choose the ARCUI primitive that already owns that behavior
3. compose application-specific structure with React Native layout
4. move repeated design decisions into tokens
5. use native/style escape hatches only for intentional local exceptions

Prefer semantic ARCUI primitives

Use ARCUI where the library already owns the interaction contract:

NeedARCUI primitive
Application actionButton
Boolean or multi-select choiceCheckbox
Exclusive choiceRadio + SelectionGroup
Switch-style boolean stateToggle
Text/numeric/OTP inputARCUI input primitives
Controlled option selectionSelect
Continuous value/rangeSlider
DisclosureAccordion / AccordionGroup
Anchored menuDropdown
Sheet-style overlayModal
Global transient feedbackToast
Global dialog decisionDialog

Do not rebuild those semantics from raw Pressable, View, or TextInput just to reproduce their appearance.

Use React Native layout for application structure

ARCUI intentionally does not expose artificial Card, Stack, or Surface components merely because a design contains a rounded rectangle or vertical layout.

<View style={styles.card}>
  <Text>Account</Text>
  <Button onPress={save}>Save</Button>
</View>

Use ThemedView when ARCUI theme-aware background ownership is actually required, not as a generic replacement for every View.

Compose theme behavior instead of manually swapping colors

<ReverseTheme>
  <ThemedView style={styles.preview}>
    <Text>Opposite theme</Text>
  </ThemedView>
</ReverseTheme>

A reversed subtree keeps normal ARCUI component semantics and token resolution.

ReverseTheme →

Use FluidView for layout motion, not hidden state

FluidView adds layout transition behavior to its own wrapper. It does not inspect, clone, or own the semantic state of its children.

<FluidView entering exiting>
  {showDetails ? <Details /> : null}
</FluidView>

React still owns showDetails; FluidView only owns the visual transition.

FluidView →

Provider-owned overlays should stay provider-owned

Use ARCUI's shared overlay architecture instead of creating competing local overlay roots:

Safe area & overlays →

Tokens vs local styles

Use tokens when a decision describes the product system:

all Buttons should use this radius
all Inputs should use this typography
all Modals should use this animation timing

Use instance props/native styles when the exception belongs to one composition:

this one panel has extra margin
this one Button intentionally has a local radius override
this custom View uses a product-specific layout

Consumer content remains consumer-owned

When a component accepts arbitrary React content, ARCUI should not silently reinterpret that content's semantics, typography, or accessibility beyond the documented component contract.

This matters for custom Button content, Header titles/actions, Infobox content, Modal content, and other composition surfaces.

On this page