We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48a0470 commit 98746a9Copy full SHA for 98746a9
packages/react-native-performance/android/src/main/java/com/oblador/performance/PerformanceModule.java
@@ -187,9 +187,11 @@ private void emit(PerformanceMetric metric) {
187
WritableMap map = Arguments.fromBundle(metric.getDetail());
188
params.putMap("detail", map);
189
}
190
- getReactApplicationContext()
191
- .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
192
- .emit("metric", params);
+ if (getReactApplicationContext().hasActiveCatalystInstance()) {
+ getReactApplicationContext()
+ .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
193
+ .emit("metric", params);
194
+ }
195
196
197
private void emit(PerformanceMark mark) {
0 commit comments