as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
This package contains some additional higher-order profilers that we anticipate most apps would find helpful, as well as ReactNavigationPerformanceView, built on top of vanilla PerformanceMeasureView with the addition of optimizations for React Navigation library.

Installation

  1. Add the JavaScript library dependency in the package.json file.
  2. Add the Babel module resolver plugin to the devDependencies section in the package.json file:
  3. Configure an alias for @amazon-devices/shopify__react-native-performance* in the plugin section of the babel.config.js file.
  4. For projects using libraries (where represents specific components like stack or native), include these libraries in both the dependencies and overrides sections of your package.json file. It is strongly recommended to upgrade to , which introduces @amazon-devices/react-native-reanimated support for enhanced performance and animations.
  5. Reinstall dependencies using npm install command.

Examples

API reference

Check out the dedicated documentation for info about this library, API reference and more: Official react-native-performance-navigation documentation.

Hooks

Components

Implementation details

Render pass reports for navigating between screens aren’t currently generated on the Vega Virtual Device. To workaround this issue, replace dependencies in the package.json file as shown below.

Additional resources

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