Socket
Book a DemoInstallSign in
Socket

expo-next-router

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

expo-next-router

Next.js App Router-style routing for expo-router

2.0.3
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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);

Keywords

next.js

FAQs

Package last updated on 05 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.