diff --git a/ReactAndroid/src/main/jni/react/jni/OnLoad.cpp b/ReactAndroid/src/main/jni/react/jni/OnLoad.cpp index e4368d682..5ef5c28aa 100644 --- a/ReactAndroid/src/main/jni/react/jni/OnLoad.cpp +++ b/ReactAndroid/src/main/jni/react/jni/OnLoad.cpp @@ -562,9 +562,13 @@ static void makeJavaCall(JNIEnv* env, jobject callback, MethodCall&& call) { if (call.arguments.isNull()) { return; } + + #ifdef WITH_FBSYSTRACE if (call.callId != -1) { fbsystrace_end_async_flow(TRACE_TAG_REACT_APPS, "native", call.callId); } + #endif + auto newArray = ReadableNativeArray::newObjectCxxArgs(std::move(call.arguments)); env->CallVoidMethod(callback, gCallbackMethod, call.moduleId, call.methodId, newArray.get()); }