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 exceptionsPrefer semantic ARCUI primitives
Use ARCUI where the library already owns the interaction contract:
| Need | ARCUI primitive |
|---|---|
| Application action | Button |
| Boolean or multi-select choice | Checkbox |
| Exclusive choice | Radio + SelectionGroup |
| Switch-style boolean state | Toggle |
| Text/numeric/OTP input | ARCUI input primitives |
| Controlled option selection | Select |
| Continuous value/range | Slider |
| Disclosure | Accordion / AccordionGroup |
| Anchored menu | Dropdown |
| Sheet-style overlay | Modal |
| Global transient feedback | Toast |
| Global dialog decision | Dialog |
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.
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.
Provider-owned overlays should stay provider-owned
Use ARCUI's shared overlay architecture instead of creating competing local overlay roots:
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 timingUse 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 layoutConsumer 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.