as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
React Navigation is a robust navigation library for React Native applications, offering an easy and efficient way to manage screen transitions, handle routing, and implement navigation patterns such as bottom-tabs, stack, and drawer navigation. React Native doesn’t have a built-in API for navigation like a web browser does. React Navigation provides this for you, along with the iOS, Android and Vega gestures and animations to transition between screens. This is a system-deployed library and is available to Vega apps without a separate installation process. It is deployed as an autolinking library which your app links to at runtime. Compatibility is guaranteed only between the library and the version of Vega for which it is built. When you up level the version of Vega with which your app is built, it a best practice to also uplevel the version of the library on which it is dependent.

Documentation

Check out our dedicated documentation page for info about this library, API reference and more.

Installation

  1. Add dependencies in package.json file for all packages you need. Select the tab for your React Native version. You won’t need all of the packages listed below, so include a subset of packages you need in your application.

  1. You may add @amazon-devices/react-native-screens dependency for unmounting screens that are not visible.

  1. Reinstall dependencies using npm install command.

Examples

Stack Example:

You need to add following dependencies:

Paste this code in App.tsx file:

Native Stack Example:

You need to add following dependencies:

Paste this code in App.tsx file:

Bottom Tabs Example:

You need to add following dependencies:

Paste this code in App.tsx file:

Material Top Tabs Example:

You need to add following dependencies:

Paste this code in App.tsx file:

Drawer Example:

You need to add following dependencies:

Add reanimated plugin to babel.config.js:
Reset metro cache before running application:
Paste this code in App.tsx file:

Known issues

API supported on Vega

React-Navigation library on Vega adds support for all available APIs in the React-Navigation v6.

Components

Not Supported on Vega

Navigation library has some exceptions in terms of API support.
  • flipper-plugin-react-navigation is not supported on Vega platform yet.

Additional resources

For information on other libraries, see Supported Third-Party Libraries and Services.
最后修改于 2026年7月28日