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. Upgrade to , which introduces@amazon-devices/react-native-reanimatedsupport for enhanced performance and animations. -
Reinstall dependencies using the
npm installcommand.
Examples
API reference
See the documentation for more information about this library and API reference: Official react-native-performance-navigation documentation.Hooks
Components
Known issues and limitations
Render pass reports for navigating between screens aren’t currently generated on the Vega Virtual Device. To work around this issue, replace dependencies in thepackage.json file as shown in the following example.

