Skip to Content
ARCUI

Migrating from 1.x to 2.0.0

Upgrade ARCUI color overrides, semantic tones, Dialog actions, Tabs backgrounds, and token namespaces safely.

ARCUI 2.0.0 changes how components accept colors and semantic feedback. Core React state, Reanimated motion, provider, and Host ownership principles remain intact.

1. Replace legacy color prop families

Component-specific colors slots replace older color props on Text, ThemedView, Icon, Divider, SpinnerLoader, and Badge.

// 1.x
<Text color="rgba(17,17,17,1)" />
<Icon type="check" darkColor="rgba(255,255,255,1)" lightColor="rgba(0,0,0,1)" />

// 2.0.0
<Text colors={{ text: "rgba(17,17,17,1)" }} />
<Icon
  type="check"
  colors={{ icon: { dark: "rgba(255,255,255,1)", light: "rgba(0,0,0,1)" } }}
/>

The public TThemeColor is either a fixed color string or a complete { light, dark } pair. Individual slots can be omitted; ARCUI continues to resolve their matching component/tone tokens.

ComponentOld 1.x props2.0.0 slot
Textcolor, darkColor, lightColorcolors.text
ThemedViewcolor, darkColor, lightColorcolors.background
Iconcolor, darkColor, lightColorcolors.icon
Dividercolor, darkColor, lightColorcolors.line; colors.label separately
SpinnerLoadercolor, darkColor, lightColorcolors.indicator
Badge (dot)Background color familycolors.background
Badge (label)Background + textColor familiescolors.background, colors.text

2. Introduce semantic tone

tone describes intent. For Button, it is independent from the existing type presentation:

<Button tone="danger" type="solid">Delete</Button>
<Button tone="secondary" type="border">More info</Button>
<Badge tone="success" label="Ready" />
<Infobox tone="warning">Check the values.</Infobox>

The available tones differ by component. See Colors API for values and defaults.

3. Update Infobox and Dropdown

// 1.x
<Infobox type="warning">Review this.</Infobox>
const oldItem = { label: "Delete", value: "delete", destructive: true };

// 2.0.0
<Infobox tone="warning">Review this.</Infobox>
const item = { label: "Delete", value: "delete", tone: "danger" as const };

Infobox now has info, success, warning, and danger tones. Dropdown items accept colors and tone rather than the old color/darkColor/lightColor and destructive props.

4. Update Tabs and dot badges

// 1.x
<TabNavigation tabBarBackgroundColor="rgba(20,20,20,1)" {...props} />

// 2.0.0
<TabNavigation
  colors={{ container: { background: "rgba(20,20,20,1)" } }}
  {...props}
/>

Replace the old Tabs dark/light background pair with colors.container.background: { light, dark } for animated theme behavior. Tab dot badges now use badge.tone and badge.colors.background.

5. Reuse Button tones in Dialog and InputNumber

Dialog action type remains a visual Button presentation (solid, border, or transparent), not a semantic action kind:

showDialog({
  title: "Delete item?",
  actions: [
    { label: "Delete", type: "solid", tone: "danger", onPress: removeItem },
    { label: "Cancel", type: "border" },
  ],
});

Dialog actions accept colors from IButtonColors. InputNumber step controls expose incrementButtonTone, incrementButtonColors, decrementButtonTone, and decrementButtonColors for the same shared Button palette.

6. Replace reverse icon colors with ReverseTheme

Icon.reverseThemeColor was removed. Wrap the relevant subtree instead:

<ReverseTheme>
  <Icon type="check" />
</ReverseTheme>

This keeps the Icon aligned with surrounding ARCUI-owned text and surfaces. Icon.animatedColor remains the final UI-thread color when provided.

7. Update token paths

The top-level colors.states token namespace is removed. Semantic defaults now live under component-owned tokens, such as colors.light.checkbox.error and colors.dark.checkbox.error rather than colors.light.states.danger.

Button palettes are nested by tone → visual type → interaction state. Top-level token overrides are still shallow: when replacing colors, compose a complete namespace from defaultTokens.colors.

8. Verify the migration

  • Replace removed props with valid component colors slots.
  • Re-check light/dark contrast after overriding fixed foreground/background colors.
  • Check pressed, disabled, inactive, error, and loading states where applicable.
  • Verify Dropdown items, Dialog actions, InputNumber controls, and Tabs badges.
  • Test Reduced Motion, font scaling, TypeScript, and runtime interaction against ARCUI 2.0.0.

Older applications can use the 1.1.x archive. New development should use 2.0.0 components and AI guidance.

On this page