Blog

Guides

How to Use PanelUI with Expo UI in 2026

Learn how PanelUI works with Expo UI. Add native SwiftUI and Jetpack Compose controls to a themed Expo app, with setup, examples and tradeoffs.

KA
Khalid Abdi29 November 2026 · 4 min read
Share
Expo UI and PanelUI logos on a dark blue banner, surrounded by illustrated interface controls and panels.

You finish an Expo screen and the card looks exactly right. Then you reach for a switch. Should it wear the same colors as the rest of your app, or should it move and feel like the switch built into the phone? With Expo UI, that choice is now part of the component, and PanelUI lets you make it without rebuilding the screen around a different library.

Expo UI is the @expo/ui package. It brings SwiftUI controls to iOS and Jetpack Compose controls to Android through React. PanelUI is a broader React Native component library for Expo: it provides themed cards, forms, sheets, charts and other pieces of a screen. The useful overlap is small and deliberate. For selected controls, PanelUI can hand rendering to Expo UI when you pass native.

Full disclosure: I build PanelUI. The direct Expo UI APIs are a good choice when you want to work closely with a platform's own components. PanelUI is useful when you also want a shared design system around them.

One Expo screen

PanelUI styled

React Native + theme tokens

Custom appearance

The app chooses the colors and shape.

Expo UI native

Platform draws the control

iOS · SwiftUI
Android · Compose

The operating system chooses the finish.

A schematic of one screen: the native prop changes who draws a control, while the surrounding layout stays in PanelUI.

How PanelUI and Expo UI fit together

PanelUI normally draws its controls with React Native views, theme tokens and animations. In native mode, its Button, Switch, Slider, Select and BottomSheet use Expo UI's platform controls instead. On iOS, those controls come from SwiftUI; on Android, they come from Jetpack Compose. The rest of your screen can stay in PanelUI.

That means you can keep a branded card and let a familiar switch behave like the one in the phone's settings. You can also make a different choice on the next screen. There is no need to turn an entire app over to one rendering style.

Install PanelUI and Expo UI in an Expo app

If PanelUI is already set up, add Expo UI with the SDK-aware installer:

npx expo install @expo/ui

For a new app, the PanelUI starter sets up its theme, provider and Metro configuration. For an existing app, follow that guide first; installing panelui-native alone does not set up its styles. @expo/ui is optional for PanelUI and is included in Expo Go on supported SDK versions.

Use a native Expo UI switch inside a PanelUI card

Once PanelUI is configured, a screen can keep its themed surface and use the platform switch in the same component tree:

import { useState } from 'react';
import { Card } from 'panelui-native/components/card';
import { Switch } from 'panelui-native/components/switch';

export default function NotificationSettings() {
  const [enabled, setEnabled] = useState(true);

  return (
    <Card>
      <Card.Header>
        <Card.Title>Notifications</Card.Title>
        <Card.Description>Choose when we can reach you.</Card.Description>
      </Card.Header>
      <Card.Content>
        <Switch
          native
          label="Allow notifications"
          value={enabled}
          onValueChange={setEnabled}
        />
      </Card.Content>
    </Card>
  );
}

The important word is native. Remove it and PanelUI draws its styled switch instead, using the same value and onValueChange props. The label is drawn beside the control in native mode; if you use the styled switch, provide a visible label in the surrounding layout. For a picker or sheet, read the native rendering guide because some props behave differently across modes.

Where Expo UI's native look takes over

The platform owns a native control's colors, type, shape and interaction. PanelUI's theme tokens and className do not style it. Use native for familiar platform behavior; leave it off when the control must match your design system.

The same distinction matters for behavior. A native PanelUI Button does not show PanelUI's loading spinner, and a native Select always needs a selection rather than a placeholder. Native BottomSheet content can still use your theme, but the sheet's container belongs to the platform. Those details are documented component by component, and they are worth checking before changing an existing form.

If @expo/ui is absent, PanelUI silently renders its styled version even when native is set. That makes experimentation easy, but it can hide a missing dependency. Check the installed package and test on both iOS and Android if the platform appearance is part of the feature you intend to ship.

Two components to try: PanelUI Flow and Expo UI Picker

PanelUI Flow

Flow is a canvas of draggable nodes and attached edges. Pan, zoom or move a node, and its connections follow. It is useful for a workflow editor or an explorable diagram where a native switch would have no role. The short recording below shows the interaction on a phone.

PanelUI Flow: drag a node and its edges stay connected.

Expo UI Picker

Expo UI's universal Picker is a single-selection control with a platform-appropriate menu. It renders inside an Expo UI Host and declares options with Picker.Item. Use it directly when you want the native API rather than PanelUI's Select wrapper.

import { useState } from 'react';
import { Host, Picker } from '@expo/ui';

export function FruitPicker() {
  const [fruit, setFruit] = useState('apple');

  return (
    <Host matchContents={{ vertical: true }} style={{ width: '100%' }}>
      <Picker selectedValue={fruit} onValueChange={setFruit}>
        <Picker.Item label="Apple" value="apple" />
        <Picker.Item label="Banana" value="banana" />
      </Picker>
    </Host>
  );
}

When to use PanelUI with Expo UI

Use Expo UI directly for its native component tree and platform-specific modifiers. Use PanelUI for consistent layouts, tokens and ready-made components. Combine them when a few controls should feel unmistakably native. The best answer often appears when you put the phone in someone's hand and watch which control they expect to recognize.

Expo UI and PanelUI FAQ

Can I use PanelUI and Expo UI in the same Expo app? Yes. Install and configure PanelUI, add @expo/ui, then pass native to supported PanelUI controls where you want SwiftUI or Jetpack Compose rendering.

Does PanelUI require @expo/ui? No. It is an optional dependency. Without it, PanelUI uses its styled controls, including when a native prop is present.

Will my PanelUI theme style native Expo UI controls? No. The platform draws those controls. Keep the styled PanelUI version when exact theme matching matters.