Skip to Content
ARCUI

Getting Started

Install ARCUI, mount the provider, and build a real controlled interface in a few minutes.

You do not need to learn the entire token system before using ARCUI. Start with one provider and one small screen; the deeper architecture can stay progressive.

1. Install

$npm install react-native-arc-ui react-native-reanimated react-native-gesture-handler react-native-svg

Expo applications should install native peers through Expo:

npm install react-native-arc-ui
npx expo install react-native-reanimated react-native-gesture-handler react-native-svg

Installation details →

2. Mount the provider

import { ARCUI } from "react-native-arc-ui";

export default function App() {
  return (
    <ARCUI>
      <Application />
    </ARCUI>
  );
}

theme="system" is the default, so ARCUI follows the platform appearance unless you explicitly choose light or dark.

3. Build a real screen

The important ownership rule is simple: React owns meaning; ARCUI owns presentation and visual motion around that state.

import { useState } from "react";
import { StyleSheet, View } from "react-native";
import {
  Button,
  Input,
  Screen,
  Text,
  Toggle,
} from "react-native-arc-ui";

export function AccountScreen() {
  const [name, setName] = useState("");
  const [notifications, setNotifications] = useState(true);

  return (
    <Screen style={styles.screen}>
      <View style={styles.header}>
        <Text style={styles.title}>Account</Text>
        <Text>Update the profile settings below.</Text>
      </View>

      <Input
        label="Display name"
        value={name}
        onChangeText={setName}
      />

      <Toggle
        checked={notifications}
        onCheckedChange={setNotifications}
      >
        Notifications
      </Toggle>

      <Button
        disabled={name.trim().length === 0}
        onPress={() => console.log({ name, notifications })}
      >
        Save changes
      </Button>
    </Screen>
  );
}

const styles = StyleSheet.create({
  screen: {
    gap: 20,
    paddingHorizontal: 20,
  },
  header: {
    gap: 6,
  },
  title: {
    fontSize: 28,
    fontWeight: "700",
  },
});

The input value, Toggle state, disabled rule, and submit behavior are all ordinary React state and logic. ARCUI handles theme-aware presentation, interaction feedback, typography scaling, and component motion.

4. Choose a theme mode when needed

<ARCUI theme="system">{children}</ARCUI>
<ARCUI theme="light">{children}</ARCUI>
<ARCUI theme="dark">{children}</ARCUI>

Use the provider's theme prop for application-level ownership. Use ReverseTheme when only one subtree needs the opposite animated theme.

5. Customize the design system later

ARCUI is tokens-first, but token overrides are intentionally explicit. Built-in top-level namespaces are shallow replacements.

import {
  ARCUI,
  defaultTokens,
  type TTokensOverride,
} from "react-native-arc-ui";

const tokens = {
  radius: {
    ...defaultTokens.radius,
    button: 14,
  },
} satisfies TTokensOverride;

export default function App() {
  return <ARCUI tokens={tokens}>{/* application */}</ARCUI>;
}

Do not pass a partial nested radius object and expect ARCUI to deep-merge it.

Tokens →

You are ready

At this point you already have the main ARCUI model:

provider configuration -> ARCUI
semantic state          -> React
visual motion           -> ARCUI / Reanimated
system-wide styling     -> tokens
local exceptions        -> component props / native style escape hatches

On this page