1234567891011121314151617181920212223 |
- #import "Constants.h"
- #import "UIViewController+LayoutProtocol.h"
-
- @implementation Constants
-
- + (NSDictionary *)getConstants {
- return @{@"topBarHeight": @([self topBarHeight]), @"statusBarHeight": @([self statusBarHeight]), @"bottomTabsHeight": @([self bottomTabsHeight])};
- }
-
- + (CGFloat)topBarHeight {
- return [RCTPresentedViewController() getTopBarHeight];
- }
-
- + (CGFloat)statusBarHeight {
- return [UIApplication sharedApplication].statusBarFrame.size.height;
- }
-
- + (CGFloat)bottomTabsHeight {
- return [UIApplication.sharedApplication.delegate.window.rootViewController getBottomTabsHeight];
- }
-
- @end
|