百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

stack

> 编程语言
开源

用于 React Navigation 的堆栈导航器

387 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

用于 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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

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