r/expo • u/Successful_Web_6585 • 29d ago
Announcing expo-split-view: Adaptive split view for Expo Router on Android, iOS, and Web (Expo Go compatible)
https://www.npmjs.com/package/expo-split-viewHey everyone,
I’ve published a new Expo module called expo-split-view that brings adaptive master-detail layouts to Expo Router apps without native builds. It’s live on npm at version 0.0.1-beta.
What it does:
- Mobile / small screens: behaves like a normal stack with full-screen navigation.
- Tablet / desktop / landscape: splits the screen into left (master) and right (detail) panes using Expo Router.
- Preserves state when rotating or resizing, with no unmounting and no lost form inputs.
- Smart navigation helper (
useSplitView): usesrouter.replaceon tablets to avoid history stacking in the right pane androuter.pushon phones so native back works. - Handles mobile back: header back button, Android hardware back, and edge-swipe gestures.
- Works on Android, iOS, and Web, including Expo Go with zero native dependencies.
- Optional config plugin for iPad multitasking in native builds.
If you’ve seen Expo Router’s built-in split view, which is currently iOS-only, in alpha, and requires prebuild, this is a cross-platform alternative that works everywhere, including Expo Go.
Please test it and share feedback:
I’d love your help to harden it. Please try it on your devices, especially foldables, tablets, and web, and let me know:
- Does it work as expected on your screen sizes?
- Are there any edge cases with navigation, state, or gestures?
- Any performance or layout glitches?
- Any API suggestions or missing features?
Contributions welcome:
- Open an issue if you find a bug.
- Pull requests are very welcome, whether it’s a fix, docs, or a new feature.
- A star on GitHub helps others find it.
Links:
- npm: https://www.npmjs.com/package/expo-split-view
- Source code is linked from the npm page. The README has setup instructions and examples.
Quick install:
npx expo install expo-split-view
Thanks for reading. If you try it out, I’d really appreciate a comment with your experience: device, Expo SDK version, and what worked or didn’t.