🚀 With the new File-based @expo Router, you can create some powerful app layouts––for mobile & web––in a couple lines of code!
I put together an example repo with a bunch of my favorites... and open sourced a brand new layout!
🧵 Check them out in the thread ↓
Replicate Twitter and Instagram profiles with this Collapsing Top Tab Bar layout (NEW).
Uses the Layout Route to render a shared profile, and child routes for the different pages. Just render children with scroll views, and the layout handles the rest ↓ github.com/EvanBacon/expo…
Bottom sheets are great for user-reachability––especially on larger devices!
Layout Routes in @expo can render the initial route as the main screen and a child route as the drawer.
Uses @gorhom's bottom sheet & adds automatic deep linking support!
The default <Stack /> Layout is incredible! Powered by React Native Screens from @swmansion, you can render the native iOS stack with built-in search functionality, in just a few lines of code... Feels smooth as butter! 🧈
✨ Automatically create (dynamic) routes with files
🚀 Zero boilerplate
🔗 Automatic deep linking
🧩 Nested layouts
🔥 Built on React Navigation for easy adoption.
@expo 1️⃣ Expo projects will be even easier to maintain, scale, refactor, and upgrade now that all of the linking and navigation boilerplate are rolled into the framework / Expo CLI.
No more wrestling with native deep links, they just work™
2️⃣ All unmatched routes (404s) are automatically handled and help the user get back to known routes.
This can be customized at various different segment levels.