#import #import #if TARGET_OS_IPHONE #import #elif TARGET_OS_OSX #import typedef NSView UIView; #endif extern NSString *const RNCSafeAreaDidChange; RCT_EXTERN BOOL #if TARGET_OS_IPHONE UIEdgeInsetsEqualToEdgeInsetsWithThreshold(UIEdgeInsets insets1, UIEdgeInsets insets2, CGFloat threshold); #elif TARGET_OS_OSX NSEdgeInsetsEqualToEdgeInsetsWithThreshold(NSEdgeInsets insets1, NSEdgeInsets insets2, CGFloat threshold); #endif #if TARGET_OS_IPHONE RCT_EXTERN UIViewController *RNCParentViewController(UIView *view); #elif TARGET_OS_OSX RCT_EXTERN NSViewController *RNCParentViewController(NSView *view); #endif