# @react-navigation/core

> Core utilities for building navigators

Latest version **7.22.1** (published 2026-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @react-navigation/core
pnpm add @react-navigation/core
yarn add @react-navigation/core
bun add @react-navigation/core
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 7.22.1 |
| Published | 2026-09-15 |
| First published | 2018-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 795.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 24502 |
| Maintainers | ericvicenti, brentvatne, satya164, osdnk, kacperkapusciak, okwasniewski |
| Keywords | react, react-native, react-navigation |

## Links

- npm: https://www.npmjs.com/package/@react-navigation/core
- Repository: https://github.com/react-navigation/react-navigation
- Homepage: https://reactnavigation.org
- Issues: https://github.com/react-navigation/react-navigation/issues
- npm.io page: https://npm.io/package/@react-navigation/core

## Dependencies (7)

- [nanoid](https://npm.io/package/nanoid.md) ^3.3.11
- [react-is](https://npm.io/package/react-is.md) ^19.1.0
- [fast-deep-equal](https://npm.io/package/fast-deep-equal.md) ^3.1.3
- [use-latest-callback](https://npm.io/package/use-latest-callback.md) ^0.2.4
- [escape-string-regexp](https://npm.io/package/escape-string-regexp.md) ^4.0.0
- [use-sync-external-store](https://npm.io/package/use-sync-external-store.md) ^1.5.0
- [@react-navigation/routers](https://npm.io/package/@react-navigation/routers.md) ^7.6.4

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 7.22.1 (latest) — 2026-09-15
- 8.0.0-alpha.37 (next) — 2026-09-19
- 5.16.1 (5.x) — 2021-08-17
- 3.7.9 (4.x) — 2020-10-26
- 8.0.0-alpha.36 — 2026-09-15
- 7.22.0 — 2026-09-15
- 8.0.0-alpha.35 — 2026-09-14
- 8.0.0-alpha.34 — 2026-08-19
- 7.21.13 — 2026-08-19
- 8.0.0-alpha.33 — 2026-08-10
- 7.21.12 — 2026-08-07
- 8.0.0-alpha.32 — 2026-08-06
- 8.0.0-alpha.31 — 2026-07-27
- 7.21.11 — 2026-07-24
- 8.0.0-alpha.30 — 2026-07-22
- … 347 more at https://npm.io/package/@react-navigation/core/versions

## README

# `@react-navigation/core`

Core utilities for building navigators independent of the platform.

## Installation

Open a Terminal in your project's folder and run,

```sh
npm install @react-navigation/core
```

## Usage

A basic custom navigator bundling a router and a view looks like this:

```js
import {
  createNavigatorFactory,
  createScreenFactory,
  useNavigationBuilder,
} from '@react-navigation/core';
import { StackRouter } from '@react-navigation/routers';

function StackNavigator({ initialRouteName, children, ...rest }) {
  const { state, navigation, descriptors, render } = useNavigationBuilder(
    StackRouter,
    {
      initialRouteName,
      children,
    }
  );

  return render(
    <StackView
      state={state}
      navigation={navigation}
      descriptors={descriptors}
      {...rest}
    />
  );
}

export const createStackNavigator = createNavigatorFactory(StackNavigator);

export const createStackScreen = createScreenFactory();
```

---
_Source: https://npm.io/package/@react-navigation/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
