12 lines
455 B
Objective-C
12 lines
455 B
Objective-C
#import "RNCSafeAreaUtils.h"
|
|
|
|
#import <React/RCTUIManager.h>
|
|
|
|
NSString *const RNCSafeAreaDidChange = @"RNCSafeAreaDidChange";
|
|
|
|
BOOL UIEdgeInsetsEqualToEdgeInsetsWithThreshold(UIEdgeInsets insets1, UIEdgeInsets insets2, CGFloat threshold)
|
|
{
|
|
return ABS(insets1.left - insets2.left) <= threshold && ABS(insets1.right - insets2.right) <= threshold &&
|
|
ABS(insets1.top - insets2.top) <= threshold && ABS(insets1.bottom - insets2.bottom) <= threshold;
|
|
}
|