Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

stack

> 编程语言
Open source

Stack navigator for React Navigation

387 stars0 likes1 views
WebsiteGitHub

About

Stack navigator for React Navigation

This package has been moved to https://github.com/react-navigation/react-navigation/tree/master/packages/stack


React Navigation Stack

Build Status Version MIT License

Stack navigator for use on iOS and Android.

Installation

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

bash
yarn add react-navigation-stack @react-native-community/masked-view react-native-safe-area-context

or

bash
npm install react-navigation-stack @react-native-community/masked-view react-native-safe-area-context

Usage

javascript
import { createStackNavigator } from 'react-navigation-stack';

export default createStackNavigator({
  Inbox: InboxScreen,
  Drafts: DraftsScreen,
}, {
  initialRouteName: 'Inbox',
});

Development workflow

To setup the development environment, open a Terminal in the repo directory and run the following:

bash
yarn bootstrap

While developing, you can run the example app with Expo to test your changes:

bash
yarn example start

The code in this repo uses the source from @react-navigation/stack and patches it to make it usable in React Navigation 4. If you need to make changes, please send a pull request there.

If the change is specifically related to React Navigation 4 integration, first run yarn sync, then change the files in src/vendor and then run yarn patch to update the patch file with the latest changes.

Make sure your code passes TypeScript and ESLint. Run the following to verify:

bash
yarn typescript
yarn lint

To fix formatting errors, run the following:

bash
yarn lint --fix

Docs

Documentation can be found on the React Navigation website.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言