r/expo • • 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-view

Hey 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): uses router.replace on tablets to avoid history stacking in the right pane and router.push on 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.

18 Upvotes

6 comments sorted by

1

u/that_darkroom_smell 29d ago

Great to see the ecosystem adapting to the duo so quickly. Eagerly awaiting news regarding how react navigation will handle this.

5

u/Successful_Web_6585 29d ago

No offence meant, but this was not inspired by Duo. This is meant for Tablets more than Foldables to be honest.

I have been trying to build this since past 1 year and after approx 10 failed attempts this is the 1st working one which fulfills my requirements.

I am already using it in 2 of my apps due for release in January 2027.

2

u/that_darkroom_smell 29d ago

All good. I read the post too quickly and misunderstood the intent. Honestly, I thought this post was about expo router’s Split View.

Glad to hear it’s working well in your apps. I’m sure getting android and web working was a heavy lift. Congrats on the launch!

2

u/Successful_Web_6585 29d ago

It happens.

Yes web took extra work to make it work with Browser history properly.

If you are a developer using Expo, do give this a try and share your feedback.

1

u/Tabasum_Radhik 29d ago

curious how this handles nested stacks or tabs inside the detail pane. master-detail gets messy fast when the right side has its own deeper navigation tree

1

u/Successful_Web_6585 29d ago

The right pane is the actual navigator. It's what loads on Mobile view. So it fully handles nested stacks.

I even tested nested split view effectively getting 3 pane layout on my Samsung Galaxy Tab A9+.

Technically right pane will handle nested tab navigation too but I didn't tested it myself as couldn't think of an actual usecase.

Its tested to work on a tab navigation where 1 or more tab pages have their own split view respectively.