Browse by type

Here's a detailed article to go further
This is how the score is calculated below, quite naively, but open to suggestions:

Note that:
Search for rn-perf-monitor in the list of plugins.
Install the plugin
yarn add --dev react-native-flipper-performance-plugin
Then go to iOS/Android section below to continue the install
Run cd ios && pod install
In ./ios/yourapp/AppDelegate.m (where yourapp depends on your app), add 2 lines:
#ifdef FB_SONARKIT_ENABLED
...
// Add this line
#import <FlipperPerformancePlugin.h>
static void InitializeFlipper(UIApplication *application) {
...
// Add this line
[client addPlugin:[FlipperPerformancePlugin new]];
[client start];
}
#endif
In ./android/app/src/debug/java/com/yourapp/ReactNativeFlipper.java (where com/yourapp depends on your app), add:
import tech.bam.rnperformance.flipper.RNPerfMonitorPlugin;
...
client.addPlugin(new RNPerfMonitorPlugin(reactInstanceManager));
You might have previously installed flipper-plugin-rn-performance-android. This is now deprecated, as react-native-flipper-performance-plugin has autolinking and cross-platform support.
You also need to run these steps:
Uninstall the package:
yarn remove flipper-plugin-rn-performance-android
Then remove those lines in ./android/settings.gradle:
include ':flipper-plugin-rn-performance-android'
project(':flipper-plugin-rn-performance-android').projectDir = new File(rootProject.projectDir, '../node_modules/flipper-plugin-rn-performance-android')
and in ./android/app/build.gradle:
debugImplementation project(':flipper-plugin-rn-performance-android')
react-native-performance folder in ~/.flipper/config.json as shown on the flipper docsyarn watch inside flipper-desktop$ claude mcp add react-native-flipper-performance-monitor \
-- python -m otcore.mcp_server <graph>