From cf642c9b1d0856200936882d5e08cae171520c7a Mon Sep 17 00:00:00 2001 From: Shoaib Meenai Date: Thu, 22 Mar 2018 16:19:01 -0700 Subject: [PATCH] Mark global variable as extern "C" Reviewed By: mnovakovic Differential Revision: D7369214 fbshipit-source-id: 710d817b4bf74b5ca0621645dd5c005b778d7171 --- React/Base/RCTRootView.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/React/Base/RCTRootView.h b/React/Base/RCTRootView.h index daab13efbe..35561f68a8 100644 --- a/React/Base/RCTRootView.h +++ b/React/Base/RCTRootView.h @@ -30,7 +30,12 @@ typedef NS_ENUM(NSInteger, RCTRootViewSizeFlexibility) { * after the application has loaded. This is used to hide the `loadingView`, and * is a good indicator that the application is ready to use. */ -extern NSString *const RCTContentDidAppearNotification; +#if defined(__cplusplus) +extern "C" +#else +extern +#endif +NSString *const RCTContentDidAppearNotification; /** * Native view used to host React-managed views within the app. Can be used just