Skip to Content
ARCUI

Screen

Screen-level ARCUI surface with animated theme background, token-driven safe-area padding, and native View escape hatches.

Screen is the top-level ARCUI surface for application screens that should participate in ARCUI background theming and the provider-owned safe-area model.

Capture a realistic screen-level composition, not an isolated rectangle.

Usage

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

export function SettingsScreen() {
  return (
    <Screen>
      <Text>Settings</Text>
    </Screen>
  );
}

Screen renders an Animated.View with flex: 1.

Safe area

Screen reads the runtime insets supplied through ARCUI system context and resolves each edge against tokens.safeArea.screen.

The safe-area token contract is:

false -> ignore the device inset for this edge
0     -> use only the device inset
N     -> use device inset + N

ARCUI already owns safe-area information. Do not introduce a second safe-area provider solely for Screen.

<ARCUI safeAreaInsets={insets}>
  <Screen>{content}</Screen>
</ARCUI>
Example
ARCUI Screen safe-area behavior

Native style override order

Screen applies styles in this order:

flex: 1
-> resolved safe-area padding
-> animated ARCUI screen background
-> consumer style

That means style remains the final native escape hatch. You can intentionally override padding or backgroundColor, but doing so also opts that property out of the corresponding Screen default.

<Screen style={{ paddingHorizontal: 24 }}>
  {content}
</Screen>

Use that deliberately; prefer safe-area/tokens when the change belongs to the design system.

Scrolling

Screen is not a scrolling primitive. Compose scroll behavior explicitly:

<Screen>
  <ScrollView contentContainerStyle={{ padding: 16 }}>
    {content}
  </ScrollView>
</Screen>

The same applies to FlatList, SectionList, navigation containers, and other application layout primitives.

Ref and native View props

ARCUI follows React 19 ref-as-prop:

const screenRef = useRef<View>(null);

<Screen ref={screenRef} testID="settings-screen">
  {content}
</Screen>;

IScreen extends ViewProps, so normal accessibility, responder, pointer-event, layout, and test props remain available.

Testing

testID is applied directly to the native Screen root. Screen does not create private descendant identifiers.

For provider setup and the dedicated testing entrypoint, see Testing.

API Reference

Also inherits: ViewProps

PropTypeDefaultDescription
ref?Ref<View>—React 19 ref-as-prop. Exposes the underlying native View for measurement and other standard React Native imperative APIs.
childrenReactNoderequiredScreen content.
colors?Readonly<IScreenColors>—Per-instance ARCUI-owned color overrides.

Per-instance color slots: IScreenColors

PropTypeDefaultDescription
background?TThemeColor—Screen background color.

Generated from the ARCUI 2.0.0 TypeScript source snapshot. Native inherited props remain available through the referenced React Native surface.

Generated from the ARCUI 2.0.0 TypeScript source snapshot. Native inherited props remain available through the referenced React Native surface.

Motion

Only the background color participates in ARCUI's animated theme interpolation. Safe-area padding and ordinary screen layout remain normal React Native layout values.

Screen intentionally does not add entering/exiting or layout animation. Use FluidView where layout motion is the actual requirement.

Performance

Theme interpolation stays on the UI thread through ARCUI's theme SharedValue. Safe-area resolution is ordinary render-time configuration and does not create a frame-level React update loop.

Accessibility

Screen does not assign a role by default; it preserves normal native View semantics. Add application-specific accessibility props only when the screen container itself needs to be represented in the accessibility tree.

Theming

Relevant token areas are intentionally small:

colors.*.background.screen
safeArea.screen

A consumer style.backgroundColor comes later in the native style array and can override the animated token background for that instance.

Try it live

Explore Screen interactively in Expo Snack.

Open Screen in Expo Snack ↗

On this page