This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

Expo Router Split View

An Expo Router submodule that provides native split view layout.

iOS

expo-router/unstable-split-view is a submodule of expo-router and exports components to build split view layouts using platform-native system split views.

Platform support

Split View is only available on iOS. On other platforms, the SplitView component automatically falls back to rendering as a standard Slot navigator, ensuring your app works across all platforms without conditional code.

iPhone support

On iPhone, SplitView automatically collapses all columns into a single view. Only one column is visible at a time.

Choosing the initial column

Use the topColumnForCollapsing prop to control which column is displayed when the split view is collapsed:

<SplitView topColumnForCollapsing="primary">{/* ... */}</SplitView>

Accepted values are primary, supplementary, and secondary. When not set, the system uses its default behavior.

Use a ref to programmatically show a specific column with the show method:

import { useRef } from 'react'; import { Pressable, Text } from 'react-native'; import { SplitView } from 'expo-router/unstable-split-view'; import type { SplitHostCommands } from 'react-native-screens'; export default function Layout() { const ref = useRef<SplitHostCommands>(null); return ( <SplitView ref={ref} topColumnForCollapsing="primary"> <SplitView.Column> <Pressable onPress={() => ref.current?.show('secondary')}> <Text>Show main content</Text> </Pressable> </SplitView.Column> </SplitView> ); }

Known limitations

Cannot be nested

There can only be one SplitView in the navigation hierarchy. Attempting to nest split views will result in an error.

Cannot be used inside other navigators

SplitView cannot be used inside another navigator (except for Slot). It must be used at the root layout level.

Only specific children allowed

SplitView only accepts SplitView.Column, SplitView.Content, and SplitView.Inspector as direct children. Other components will be ignored with a warning.

Limited API

The current API surface is minimal and may not cover all use cases. Additional props and configuration options will be added in future releases.

Going back to previous column on iPhone

To go back to a previous column, tap the system back button in the navigation bar. A future release will add more granular programmatic control over back navigation.

Installation

To use expo-router/unstable-split-view in your project, you need to install expo-router in your project. Follow the instructions from Expo Router's installation guide:

Install Expo Router

Learn how to install Expo Router in your project.

Using SplitView.Column

SplitView.Column defines additional columns in your split view layout. You can add up to two columns before the main content area.

SplitView applies the left and right safe area insets to the content of each column, the main content area, and the inspector. The horizontalSafeAreaInsets prop controls when:

  • 'expanded' (default): only when the split view shows more than one column.
  • 'always': also when the split view collapses to one column.
  • 'never': never. Apply the insets yourself with SafeAreaView from react-native-screens/experimental, as in the example below. Otherwise, the content can show under the sidebar.

A vertical ScrollView does not add left and right content insets by default. If the column content is a ScrollView, set horizontalSafeAreaInsets="never" so that the scroll view fills the column from edge to edge. Then apply the left and right insets inside the scroll view:

app/_layout.tsx
import { SplitView } from 'expo-router/unstable-split-view'; import { ScrollView, Text } from 'react-native'; import { SafeAreaView } from 'react-native-screens/experimental'; export default function Layout() { return ( <SplitView horizontalSafeAreaInsets="never"> <SplitView.Column> <ScrollView contentInsetAdjustmentBehavior="automatic"> <SafeAreaView edges={{ left: true, right: true }}> <Text>Sidebar</Text> </SafeAreaView> </ScrollView> </SplitView.Column> </SplitView> ); }

Two-column layout

A simple sidebar with main content:

app/_layout.tsx
import { Link } from 'expo-router'; import { SplitView } from 'expo-router/unstable-split-view'; import { Text, Pressable } from 'react-native'; import { SafeAreaView } from 'react-native-screens/experimental'; export default function Layout() { return ( <SplitView> <SplitView.Column> <SafeAreaView edges={{ top: true }} style={{ flex: 1 }}> <Link href="/inbox"> <Pressable style={{ padding: 16 }}> <Text>Inbox</Text> </Pressable> </Link> <Link href="/sent"> <Pressable style={{ padding: 16 }}> <Text>Sent</Text> </Pressable> </Link> </SafeAreaView> </SplitView.Column> </SplitView> ); }

Three-column layout

A sidebar with supporting column and main content:

app/_layout.tsx
import { Link, useGlobalSearchParams } from 'expo-router'; import { SplitView } from 'expo-router/unstable-split-view'; import { SafeAreaView } from 'react-native-screens/experimental'; export default function Layout() { const params = useGlobalSearchParams(); return ( <SplitView> <SplitView.Column> <SafeAreaView edges={{ top: true }} style={{ flex: 1, gap: 16, padding: 16, }}> <Link href="/?col1=1" style={{ fontWeight: params.col1 === '1' ? 'bold' : 'normal' }}> Option 1 </Link> <Link href="/?col1=2" style={{ fontWeight: params.col1 === '2' ? 'bold' : 'normal' }}> Option 2 </Link> <Link href="/?col1=3" style={{ fontWeight: params.col1 === '3' ? 'bold' : 'normal' }}> Option 3 </Link> </SafeAreaView> </SplitView.Column> <SplitView.Column> <SafeAreaView edges={{ top: true }} style={{ flex: 1, gap: 16, padding: 16, }}> <Link href={`/?col1=${params.col1}&col2=1`}>Sub-Option 1</Link> <Link href={`/?col1=${params.col1}&col2=2`}>Sub-Option 2</Link> <Link href={`/?col1=${params.col1}&col2=3`}>Sub-Option 3</Link> </SafeAreaView> </SplitView.Column> </SplitView> ); }

Column headers

Use the header prop of SplitView.Column and SplitView.Content to configure the column's navigation bar. The prop accepts Stack.HeaderConfig props from React Native Screens. Set iOS-specific options under ios.

app/_layout.tsx
<SplitView> <SplitView.Column header={{ title: 'Mailboxes', ios: { largeTitleEnabled: true, trailingItems: [{ type: 'item', id: 'edit', title: 'Edit', onPress: () => {} }], }, }}> {/* Mailbox list */} </SplitView.Column> <SplitView.Content header={{ title: 'Mail' }} /> </SplitView>

If you used the earlier SplitView header API, move largeTitle to ios.largeTitleEnabled, leftToolbar to ios.leadingItems, and rightToolbar to ios.trailingItems. Give each toolbar button a unique id and set its type to 'item'. Set title colors through ios.standardAppearance and ios.scrollEdgeAppearance.

SplitView.Inspector does not support header. SplitView ignores it and logs a warning only in development builds.

Set stackIntegration on SplitView.Content to navigate the content column with an ExperimentalStack. The layout of the content route must render the stack as its root. The stack pushes screens in the content column and provides its navigation bar.

app
 _layout.tsx
 (content)
  _layout.tsx
  index.tsx
  [id].tsx
app/_layout.tsx
import { SplitView } from 'expo-router/unstable-split-view'; export default function Layout() { return ( <SplitView> <SplitView.Column>{/* Message list */}</SplitView.Column> <SplitView.Content stackIntegration /> </SplitView> ); }
app/(content)/_layout.tsx
import { ExperimentalStack as Stack } from 'expo-router'; export default function ContentLayout() { return <Stack />; }

With stackIntegration, the content column ignores header and does not apply the horizontal safe area insets.

Using SplitView.Inspector

SplitView.Inspector adds a supplementary column that slides in from the trailing edge, useful for showing additional details or metadata:

<SplitView> <SplitView.Column>{/* Sidebar */}</SplitView.Column> <SplitView.Inspector> <View style={{ flex: 1, padding: 16 }}> <Text>Inspector Panel</Text> </View> </SplitView.Inspector> </SplitView>

Complete example

Here's a password manager-style app with three columns. Each row background extends to the column edges, and only the row text is inset. For this reason, the example sets horizontalSafeAreaInsets="never" and applies the left inset itself:

app
 _layout.tsx
 index.tsx
 [type]
  [id].tsx
  index.tsx
app/_layout.tsx
import { Link, Color, useGlobalSearchParams } from 'expo-router'; import { SplitView } from 'expo-router/unstable-split-view'; import { Pressable, ScrollView, StyleSheet, Text, View } from 'react-native'; import { SafeAreaView } from 'react-native-screens/experimental'; export default function Layout() { return ( <SplitView showInspector horizontalSafeAreaInsets="never"> <SplitView.Column> <PasscodeList /> </SplitView.Column> <SplitView.Column> <PasswordElementList /> </SplitView.Column> <SplitView.Inspector> <InspectorContent /> </SplitView.Inspector> </SplitView> ); } function PasscodeList() { return ( <SafeAreaView edges={{ top: true, left: true }} style={style.passcodeList}> <PasscodeCard title="All" param="all" /> <PasscodeCard title="Passkeys" param="passkeys" /> <PasscodeCard title="Codes" param="codes" /> <PasscodeCard title="Security" param="security" /> <PasscodeCard title="Deleted" param="deleted" /> </SafeAreaView> ); } const passkeys = ['Github', 'Google', 'Facebook', 'Twitter', 'Apple', 'Microsoft', 'Amazon']; const security = ['Admin1234', 'Root']; const all = [...passkeys, ...security]; function PasswordElementList() { const params = useGlobalSearchParams(); const data = (() => { switch (params.type) { case 'all': case undefined: return all; case 'passkeys': return passkeys; case 'security': return security; default: return []; } })(); return ( <ScrollView contentInsetAdjustmentBehavior="automatic" style={{ backgroundColor: undefined }}> {data.map(item => ( <PasswordElement key={item} title={item} /> ))} </ScrollView> ); } function PasscodeCard({ param, title }: { param: string; title: string }) { const params = useGlobalSearchParams(); const isActive = params.type === param; return ( <Link href={`/${param}/`} disabled={isActive} style={[ style.passcodeCard, { backgroundColor: isActive ? Color.ios.systemBlue : Color.ios.systemGray6, }, ]} asChild> <Pressable> <Text style={{ color: isActive ? 'white' : 'black', fontSize: 16 }}>{title}</Text> </Pressable> </Link> ); } function PasswordElement({ title }: { title: string }) { const params = useGlobalSearchParams(); const isActive = params.id === title; return ( <Link href={`/${params.type}/${title}/`} asChild> <Pressable style={{ backgroundColor: isActive ? Color.ios.systemBlue : undefined, padding: 12, }}> <SafeAreaView edges={{ left: true }}> <Text style={{ color: isActive ? 'white' : 'black', fontSize: 16 }}>{title}</Text> </SafeAreaView> </Pressable> </Link> ); } function InspectorContent() { return ( <View style={style.inspectorContent}> <Text>Inspector</Text> </View> ); } const style = StyleSheet.create({ passcodeList: { flex: 1, flexWrap: 'wrap', gap: 8, flexDirection: 'row', padding: 8, }, passcodeCard: { width: '48%', padding: 12, borderRadius: 12, justifyContent: 'center', alignItems: 'center', height: 50, }, inspectorContent: { flex: 1, justifyContent: 'center', alignItems: 'center', }, });
app/index.tsx
import { Redirect } from 'expo-router'; export default function Index() { return <Redirect href="/all/" />; }
app/[type]/index.tsx
import { Color } from 'expo-router'; import { Text, View } from 'react-native'; export default function Index() { return ( <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> <Text style={{ color: Color.ios.label, fontSize: 24, fontWeight: 'bold' }}> Nothing is selected </Text> </View> ); }
app/[type]/[id].tsx
import { useLocalSearchParams } from 'expo-router'; import { Text, View } from 'react-native'; export default function Id() { const { id } = useLocalSearchParams(); return ( <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> <Text>ID: {id}</Text> </View> ); }

API

import { SplitView } from 'expo-router/unstable-split-view';

Components

SplitView

iOS

Type: React.Element<SplitViewProps>

For full list of supported props, see SplitHostProps

SplitViewProps

activityEnabled

iOS
Optional • Type: boolean • Default: false

Enables React Activity for screens rendered by the detail slot.

children

iOS
Optional • Type: ReactNode

horizontalSafeAreaInsets

iOS
Optional • Literal type: string • Default: 'expanded'

When SplitView applies the left and right safe area insets to the content of each column and inspector.

  • 'expanded': only while the split view shows more than one column.
  • 'always': in all modes.
  • 'never': never. Apply the insets yourself, for example with SafeAreaView from react-native-screens/experimental. Otherwise, the content can show under the sidebar.

Acceptable values are: 'never' | 'always' | 'expanded'

Inherited props

  • Omit<SplitHostProps, 'children'>

SplitView.Column

iOS

Type: React.Element<SplitViewColumnProps>

SplitViewColumnProps

children

iOS
Optional • Type: ReactNode
iOS
Optional • Type: StackHeaderConfigProps

Navigation bar of the column.

SplitView.Inspector

iOS 26+

Type: React.Element<SplitViewColumnProps>

SplitView.Content

iOS

Type: React.Element<SplitViewContentProps>

Configures the content column of the SplitView. The column renders the current route.

SplitViewContentProps

header

iOS
Optional • Type: StackHeaderConfigProps

Navigation bar of the content column, which renders the current route. Ignored when stackIntegration is set.

stackIntegration

iOS
Optional • Type: boolean • Default: false

Whether the route is the only child of the content column. When the layout of the route renders an ExperimentalStack as its root, the stack then navigates the column, and its header is the navigation bar of the column. A stack that is not the root of the route is not shown.

The column then does not apply the horizontal safe area insets.

Methods

Split view.SplitViewContent(_props)

iOS
ParameterType
_propsSplitViewContentProps

Configures the content column of the SplitView. The column renders the current route.

Returns:
null

Types

SplitViewHeader

iOS

Type: ComponentProps<StackV5.HeaderConfig>

Props for the navigation bar of a SplitView column. See the React Native Screens header configuration.

Reference version