Skip to main content
Version: 6.x

下一步

你现在熟悉如何创建堆栈导航器、在屏幕组件上配置它、在路由之间导航以及显示模式。堆栈导航器及其相关 API 将是 React 导航工具带中最常用的工具,但它们无法解决一些问题。例如,你无法使用堆栈导航器构建基于选项卡的导航 - 为此,你需要使用 TabNavigator

¥You are now familiar with how to create a stack navigator, configure it on your screen components, navigate between routes, and display modals. Stack navigators and their related APIs will be the most frequently used tools in your React Navigation toolbelt, but there are problems that they don't solve. For example, you can't build tab-based navigation using a stack navigator — for that, you need to use a TabNavigator.

文档的其余部分是围绕特定用例组织的,因此你可以根据需要在 "指南" 下的各部分之间跳转(但提前熟悉它们也不会影响你!)。

¥The rest of the documentation is organized around specific use cases, so you can jump between the sections under "Guides" as the need arises (but it also wouldn't hurt you to familiarize yourself with them pre-emptively!).

虽然大多数用户不需要这样做,但如果你很好奇并想了解有关 React Navigation 工作原理的更多信息,建议你阅读 "构建你自己的导航器" 部分。

¥While most users won't need to do this, if you are curious and want to learn more about how React Navigation works, it's recommended to work through the "Build your own Navigator" section.

祝你好运!

¥Good luck!