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
MIT License
584 stars 17 forks source link

Crashed on EXPO 48 #85

Closed rohankm closed 1 year ago

rohankm commented 1 year ago

hi I followed the exact guide for expo projects.. but the app crashed when I start monitoring

Your app just crashed. See the error below.
java.lang.NullPointerException: Attempt to invoke virtual method 'com.facebook.react.bridge.NativeModule com.facebook.react.bridge.ReactContext.getNativeModule(java.lang.Class)' on a null object reference
  com.facebook.react.modules.debug.FpsDebugFrameCallback.<init>(FpsDebugFrameCallback.java:79)
  tech.bam.rnperformance.flipper.FPSMonitor.start(FPSMonitor.java:23)
  tech.bam.rnperformance.flipper.RNPerfMonitorPlugin$3.run(RNPerfMonitorPlugin.java:86)
  android.os.Handler.handleCallback(Handler.java:938)
  android.os.Handler.dispatchMessage(Handler.java:99)
  android.os.Looper.loopOnce(Looper.java:210)
  android.os.Looper.loop(Looper.java:299)
  android.app.ActivityThread.main(ActivityThread.java:8213)
  java.lang.reflect.Method.invoke(Native Method)
  com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)
Almouro commented 1 year ago

Hi @rohankm, I've just published v0.4.0 of the react native plugin, could you retry with that version? πŸ™

rohankm commented 1 year ago

Hi @rohankm, I've just published v0.4.0 of the react native plugin, could you retry with that version? πŸ™

hi its working fine now :)

danieldanielecki commented 1 year ago

Please close the issue then.