r/reactnative • u/Successful_Web_6585 • 9h ago
FYI Phone stack, tablet & web split view, one codebase: expo-split-view for Expo Router
I've always liked the two-pane Settings UI on Samsung tablets, and I wanted the same in my own apps. My React Native apps looked awful on tablets and on the web, and I was determined to fix that experience.
After a year or so of trial and error, I finally have something I'm proud of, and I'm already using it in my own apps. I've shared it here a couple of times before, most recently at 0.0.3-rc.1, and a lot has changed since. This is an update on expo-split-view 0.0.6-rc.1.
It's a responsive master-detail SplitView for Expo Router (expo-router only, no standalone react-navigation). It's an independent project, not affiliated with Expo.
What it does
- Adaptive layout: side-by-side master-detail on tablets, desktops and wide viewports, and normal full-screen stack navigation on phones
- State preserved: inputs, search queries and scroll positions survive rotation and foldable open/close
- Smart navigation:
useSplitView().navigateusesreplaceon tablets andpushon phones - Resilient back handling: injected header back button, Android hardware back and edge-swipe gesture
- Safe area management with configurable
safeAreaEdges - Compound component API:
<SplitView>,<SplitView.Placeholder>and<SplitView.Detail> - Android, iOS and Web, including Expo Go
New since 0.0.3-rc.1
- Resizable master pane: opt-in drag handle with min/max limits, double-tap reset, a custom handle and a persistable width (
useSplitViewResize()) - Back navigation after reload or direct URL: a
fallbackRouteprop and a logical-parent fallback, so deep links and page reloads don't strand users - Sidebar header improvements: native header heights per platform, plus title alignment and style props
- Fewer re-renders:
<SplitView>no longer re-renders on every route change, hooks return memoized objects, and a newunmountMasterOnPhoneprop mounts the master list once on phones - Nested SplitView example app
- AI agent skill (
expo-split-view-integration) bundled in the package, if you use coding agents
Upgrading from 0.0.3? 0.0.4 moved tabletBreakpoint so it's only set on <SplitView>, and the sidebar header default heights changed. The changelog has the migration notes.
It's still a release candidate, so I'd love feedback, especially on nested layouts, foldables and web.
Links
- npm: https://www.npmjs.com/package/expo-split-view
- GitHub: https://github.com/Inocentum-Technologies/expo-split-view
- Docs: https://inocentum-technologies.github.io/expo-split-view/
- Changelog: https://inocentum-technologies.github.io/expo-split-view/guide/changelog.html
PRs and issues are very welcome. If it's useful to you, a star on the repo would mean a lot and helps others find it.

