From d82aaa7fb3a69c1ee736359ac53f3b8fd583b78b Mon Sep 17 00:00:00 2001 From: Alex Akers Date: Thu, 30 Apr 2015 08:03:04 -0700 Subject: [PATCH] [React Native] Remove RKCustomTabBarController Summary: @public Closes GitHub issue #1064 Test Plan: @nicklockwood approves. --- React/Views/RCTTabBar.m | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/React/Views/RCTTabBar.m b/React/Views/RCTTabBar.m index 11ad47e320d..8a7fb4a4327 100644 --- a/React/Views/RCTTabBar.m +++ b/React/Views/RCTTabBar.m @@ -18,24 +18,6 @@ #import "RCTWrapperViewController.h" #import "UIView+React.h" -@interface RKCustomTabBarController : UITabBarController - -@end - -@implementation RKCustomTabBarController - -@synthesize currentTopLayoutGuide = _currentTopLayoutGuide; -@synthesize currentBottomLayoutGuide = _currentBottomLayoutGuide; - -- (void)viewWillLayoutSubviews -{ - [super viewWillLayoutSubviews]; - _currentTopLayoutGuide = self.topLayoutGuide; - _currentBottomLayoutGuide = self.bottomLayoutGuide; -} - -@end - @interface RCTTabBar() @end @@ -53,7 +35,7 @@ if ((self = [super initWithFrame:CGRectZero])) { _eventDispatcher = eventDispatcher; _tabViews = [[NSMutableArray alloc] init]; - _tabController = [[RKCustomTabBarController alloc] init]; + _tabController = [[UITabBarController alloc] init]; _tabController.delegate = self; [self addSubview:_tabController.view]; }