bamlab / react-native-flipper-performance-monitor

An attempt to have a lighthouse for React Native. Flipper plugin to show a graph of the React Native performance monitor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android App getting crashed after integrating package

saurav-bhagat opened this issue · comments

Versions:

"react-native-flipper": "^0.182.0",
"react-native-flipper-performance-plugin": "^0.3.1",
"react-native-performance": "^4.0.0",
"react-native-performance-flipper-reporter": "^4.0.0",

"react-native": "0.63.3",

Also this is present in my android/app/build.gradle

debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
      exclude group:'com.facebook.fbjni'
   }

I can see the RN Perf Monitor Section in flipper Desktop UI, but whenever I click on Start Measuring my app crashes.

Also I get this warning: RSockets are being deprecated at Flipper. Please, use the latest Flipper client in your app to migrate to WebSockets. App: goldeneye. Device: Android SDK built for arm64 - 10 - API 29.

I have done manual linking by following these steps:

  1. android/settings.gradle
include ':react-native-flipper-performance-plugin'
project(':react-native-flipper-performance-plugin').projectDir = new File(rootProject.projectDir, '../../../node_modules/react-native-flipper-performance-plugin/android')
  1. android/app/build.gradle

debugImplementation project(":react-native-flipper-performance-plugin")

  1. android/app/src/debug/java/com/GE/ReactNativeFlipper.java
import tech.bam.rnperformance.flipper.RNPerfMonitorPlugin;

client.addPlugin(new RNPerfMonitorPlugin(reactInstanceManager));

Please let me know If I am missing anything?