Skip to Content
ARCUI

Installation

Install ARCUI 2.0.0 and the native peer dependencies required by the library.

ARCUI is published as react-native-arc-ui.

Compatibility baseline

ARCUI 2.0.0 declares these peer ranges:

DependencySupported range
React>=19.0.0
React Native>=0.78.0
React Native Reanimated>=3.19.0 <5.0.0
React Native Gesture Handler>=2.28.0
React Native SVG>=15.0.0

New Architecture is the primary modern target. ARCUI 2.0.0 intentionally uses the public API surface shared by supported Reanimated 3.19+ and 4.x releases.

react-native-worklets is not an ARCUI peer dependency. If the Reanimated version selected by your Expo or React Native setup requires it, follow that Reanimated version's installation requirements.

Expo

Install ARCUI itself:

npm install react-native-arc-ui

Then let Expo choose compatible native peer versions:

npx expo install react-native-reanimated react-native-gesture-handler react-native-svg

Do not copy native peer versions from a different Expo SDK. The application's Expo SDK should decide those versions.

Bare React Native

Install ARCUI and its peer dependencies with the application's package manager:

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

Complete the native installation required by those libraries. For CocoaPods-based iOS projects:

cd ios
pod install
cd ..

Mount ARCUI once

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

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

Most applications should have one provider near the application root.

That provider owns shared ARCUI theme state, tokens, font scale, safe-area values, strings, icon configuration, and overlay infrastructure.

Gesture Handler root ownership

ARCUI creates a GestureHandlerRootView by default.

If the application already owns the root, disable ARCUI's wrapper instead of nesting another one unnecessarily:

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

export default function App() {
  return (
    <GestureHandlerRootView style={{ flex: 1 }}>
      <ARCUI gestureHandlerRootView={false}>
        {/* application */}
      </ARCUI>
    </GestureHandlerRootView>
  );
}

Safe-area integration

For applications using react-native-safe-area-context, mount its provider above ARCUI and pass the current insets to ARCUI. In Expo, install it with npx expo install react-native-safe-area-context if it is not already installed:

import { SafeAreaProvider, useSafeAreaInsets } from "react-native-safe-area-context";
import { ARCUI } from "react-native-arc-ui";

function AppContent() {
  const safeAreaInsets = useSafeAreaInsets();

  return (
    <ARCUI theme="system" safeAreaInsets={safeAreaInsets}>
      {/* Your application */}
    </ARCUI>
  );
}

export default function App() {
  return (
    <SafeAreaProvider>
      <AppContent />
    </SafeAreaProvider>
  );
}

useSafeAreaInsets() must run inside SafeAreaProvider. If your app already mounts one, reuse it instead of nesting another provider. ARCUI also accepts insets from another app-owned source; it does not require react-native-safe-area-context internally.

Missing edges default to 0; negative values are normalized to 0.

Safe area & overlays →

No extra overlay providers

Do not mount private Modal, Dropdown, Toast, or Dialog providers yourself. The root ARCUI provider already owns the shared overlay hierarchy.

Application -> Modal -> Dropdown -> Toast -> Dialog

Verify the installation

import { ARCUI, Button, Screen, Text } from "react-native-arc-ui";

export default function App() {
  return (
    <ARCUI>
      <Screen>
        <Text>ARCUI is ready.</Text>
        <Button onPress={() => {}}>Continue</Button>
      </Screen>
    </ARCUI>
  );
}

If this renders correctly, continue with Getting Started.

For the exact support contract, see Compatibility.

On this page