We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fecbf6 commit eca51ebCopy full SHA for eca51eb
ReactCommon/cxxreact/Platform.h
@@ -31,7 +31,11 @@ enum ReactMarkerId {
31
NATIVE_MODULE_SETUP_STOP,
32
};
33
34
+#ifdef __APPLE__
35
using LogTaggedMarker = std::function<void(const ReactMarkerId, const char* tag)>;
36
+#else
37
+typedef void(*LogTaggedMarker)(const ReactMarkerId, const char* tag);
38
+#endif
39
extern RN_EXPORT LogTaggedMarker logTaggedMarker;
40
41
extern void logMarker(const ReactMarkerId markerId);
@@ -50,7 +54,7 @@ using Hook = JSValueRef(*)(
50
54
extern RN_EXPORT Hook loggingHook;
51
55
extern RN_EXPORT Hook nowHook;
52
56
53
-using ConfigurationHook = std::function<void(JSGlobalContextRef)>;
57
+typedef void(*ConfigurationHook)(JSGlobalContextRef);
58
extern RN_EXPORT ConfigurationHook installPerfHooks;
59
60
}
0 commit comments