ReactNavigationPerformanceView, built on top of vanilla PerformanceMeasureView with the addition of optimizations for React Navigation library.
Installation
-
Add the JavaScript library dependency in the
package.jsonfile. -
Add the Babel module resolver plugin to the
devDependenciessection in thepackage.jsonfile: -
Configure an alias for
@amazon-devices/shopify__react-native-performance*in thepluginsection of thebabel.config.jsfile. -
For projects using libraries (where represents specific components like
stackornative), include these libraries in both thedependenciesandoverridessections of your package.json file. It is strongly recommended to upgrade to , which introduces@amazon-devices/react-native-reanimatedsupport for enhanced performance and animations. -
Reinstall dependencies using
npm installcommand.
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 thepackage.json file as shown below.

