Mark global variable as extern "C"

Reviewed By: mnovakovic

Differential Revision: D7369214

fbshipit-source-id: 710d817b4bf74b5ca0621645dd5c005b778d7171
This commit is contained in:
Shoaib Meenai 2018-03-22 16:19:01 -07:00 committed by Facebook Github Bot
parent 15fa2250fd
commit cf642c9b1d
1 changed files with 6 additions and 1 deletions

View File

@ -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