#if !TARGET_OS_OSX #import typedef CADisplayLink READisplayLink; #else // TARGET_OS_OSX [ #ifdef __cplusplus extern "C" { #endif #import #ifdef __cplusplus } #endif typedef RCTPlatformDisplayLink READisplayLink; #endif // ] TARGET_OS_OSX