as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
shopify-react-native-performance-navigation-drawer is an extension library atop @shopify/react-native-performance-navigation with additional helper methods for @react-navigation/drawer library.

Installation

  1. Add the JavaScript library dependency in the package.json file.
  2. Run the following command, which sets npm to use the pre-version 7 behavior for handling peer dependencies specifically for the current projecsts. This allows for more lenient package installation when dealing with potentially incompatible or outdated dependencies.
  3. Add the Babel module resolver plugin to the devDependencies section in the package.json file:
  4. Configure an alias for @amazon-devices/shopify__react-native-performance* in the plugin section of the babel.config.js file.
  5. 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.
  6. Reinstall dependencies using npm install command.
  7. Restart metro with reset cache option npm start -- --reset-cache.

Examples

Profiling how long it takes to render the screens hosted inside the different tabs using the Drawer Navigator created via createProfiledDrawerNavigator function.

API reference

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

Functions

Implementaiton details

  • Render pass reports for navigating within the drawer navigator aren’t currently generated on Vega due to a known issue with focus management in react-navigation’s drawer navigator.

Additional resources

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