2.0.3 • Published 3 months ago

expo-next-router v2.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

Next.js-like file-based routing for Expo Router

Installation

npm i expo-next-router

Change main in package.json to

{
- "main": "expo-router/entry"
+ "main": "index.js"
}

Or you can remove the file entirely as index.js is the default.

Adde the following code to index.js

// index.js

import { createRouter } from "expo-next-router";
import { registerRootComponent } from "expo";
import { ExpoRoot } from "expo-router";

export function App() {
  return <ExpoRoot context={createRouter(require.context("./app"))} />;
}

registerRootComponent(App);
2.0.3

3 months ago

2.0.2

6 months ago

2.0.1

6 months ago

2.0.0

10 months ago

1.0.1

11 months ago

1.0.0

11 months ago