/router

The new File-based router for universal React Native apps!

Primary LanguageTypeScript

Expo Router

Stable Version 1 is out now!

Repo for the new File-based router for React Native apps. Please open a discussion if you have any questions or feedback.

  • Router - Current implementation.
  • Documentation - Current documentation for the router (WIP / RFC).
  • Example - Test app.
  • RFC - Add your feedback here.

Running

The easiest way to try Expo Router is by creating a new project:

npx create-expo-app@latest -e with-router

See the setup guide for more.

Contributing

If you want to work against the latest branch for contributions, you can use apps/sandbox.

apps/sandbox is a basic playground for developing the Expo Router package, please don't open PRs specifically to improve the tester.

  • Run yarn in the root of the repo to install dependencies.
  • Run yarn start in the root to compile the packages/
  • Change directory to apps/sandbox and run yarn start to start the demo app.
  • Modify the contents of apps/sandbox/app/ to use the router.

Examples

Add yours today!