Browse Source

added RNNTabBarController

Ran Greenberg 7 years ago
parent
commit
612e5c6491

+ 1
- 3
ios/RNNNavigationController.m View File

16
 
16
 
17
 
17
 
18
 -(instancetype)initWithRootViewController:(UIViewController*)rooViewController props:(NSDictionary*)props {
18
 -(instancetype)initWithRootViewController:(UIViewController*)rooViewController props:(NSDictionary*)props {
19
+    if (!rooViewController) return nil;
19
     self = [super initWithRootViewController:rooViewController];
20
     self = [super initWithRootViewController:rooViewController];
20
     if (!self) return nil;
21
     if (!self) return nil;
21
-    
22
-    
23
-    
24
     return self;
22
     return self;
25
 }
23
 }
26
 
24
 

+ 13
- 0
ios/RNNTabBarController.h View File

1
+//
2
+//  RNNTabBarController.h
3
+//  ReactNativeNavigation
4
+//
5
+//  Created by Ran Greenberg on 27/12/2016.
6
+//  Copyright © 2016 Wix. All rights reserved.
7
+//
8
+
9
+#import <UIKit/UIKit.h>
10
+
11
+@interface RNNTabBarController : UITabBarController
12
+
13
+@end

+ 19
- 0
ios/RNNTabBarController.m View File

1
+//
2
+//  RNNTabBarController.m
3
+//  ReactNativeNavigation
4
+//
5
+//  Created by Ran Greenberg on 27/12/2016.
6
+//  Copyright © 2016 Wix. All rights reserved.
7
+//
8
+
9
+#import "RNNTabBarController.h"
10
+
11
+@interface RNNTabBarController ()
12
+
13
+@end
14
+
15
+@implementation RNNTabBarController
16
+
17
+
18
+
19
+@end

+ 6
- 0
ios/ReactNativeNavigation.xcodeproj/project.pbxproj View File

10
 		2606F7DA1E0BC3FC00CC69CC /* RNNViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2606F7D91E0BC3FC00CC69CC /* RNNViewController.m */; };
10
 		2606F7DA1E0BC3FC00CC69CC /* RNNViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2606F7D91E0BC3FC00CC69CC /* RNNViewController.m */; };
11
 		260804DB1CE0D9D20094DBA1 /* RCCToolBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 260804DA1CE0D9D20094DBA1 /* RCCToolBar.m */; };
11
 		260804DB1CE0D9D20094DBA1 /* RCCToolBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 260804DA1CE0D9D20094DBA1 /* RCCToolBar.m */; };
12
 		263617541E124FA100D88A13 /* RNNNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 263617531E124FA100D88A13 /* RNNNavigationController.m */; };
12
 		263617541E124FA100D88A13 /* RNNNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 263617531E124FA100D88A13 /* RNNNavigationController.m */; };
13
+		2636176F1E12722900D88A13 /* RNNTabBarController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2636176E1E12722900D88A13 /* RNNTabBarController.m */; };
13
 		2636F1611E0EC9E7007ABB09 /* RNNStyler.m in Sources */ = {isa = PBXBuildFile; fileRef = 2636F1601E0EC9E7007ABB09 /* RNNStyler.m */; };
14
 		2636F1611E0EC9E7007ABB09 /* RNNStyler.m in Sources */ = {isa = PBXBuildFile; fileRef = 2636F1601E0EC9E7007ABB09 /* RNNStyler.m */; };
14
 		26AFF3F51D7EEE2400CBA211 /* RCCTitleViewHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 26AFF3F41D7EEE2400CBA211 /* RCCTitleViewHelper.m */; };
15
 		26AFF3F51D7EEE2400CBA211 /* RCCTitleViewHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 26AFF3F41D7EEE2400CBA211 /* RCCTitleViewHelper.m */; };
15
 		CC84A19E1C1A0C4E00B3A6A2 /* RCCManager.m in Sources */ = {isa = PBXBuildFile; fileRef = CC84A1941C1A0C4E00B3A6A2 /* RCCManager.m */; };
16
 		CC84A19E1C1A0C4E00B3A6A2 /* RCCManager.m in Sources */ = {isa = PBXBuildFile; fileRef = CC84A1941C1A0C4E00B3A6A2 /* RCCManager.m */; };
57
 		260804DA1CE0D9D20094DBA1 /* RCCToolBar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCCToolBar.m; sourceTree = "<group>"; };
58
 		260804DA1CE0D9D20094DBA1 /* RCCToolBar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCCToolBar.m; sourceTree = "<group>"; };
58
 		263617521E124FA100D88A13 /* RNNNavigationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNNavigationController.h; sourceTree = "<group>"; };
59
 		263617521E124FA100D88A13 /* RNNNavigationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNNavigationController.h; sourceTree = "<group>"; };
59
 		263617531E124FA100D88A13 /* RNNNavigationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNNavigationController.m; sourceTree = "<group>"; };
60
 		263617531E124FA100D88A13 /* RNNNavigationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNNavigationController.m; sourceTree = "<group>"; };
61
+		2636176D1E12722900D88A13 /* RNNTabBarController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNTabBarController.h; sourceTree = "<group>"; };
62
+		2636176E1E12722900D88A13 /* RNNTabBarController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNTabBarController.m; sourceTree = "<group>"; };
60
 		2636F15F1E0EC9E7007ABB09 /* RNNStyler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNStyler.h; sourceTree = "<group>"; };
63
 		2636F15F1E0EC9E7007ABB09 /* RNNStyler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNStyler.h; sourceTree = "<group>"; };
61
 		2636F1601E0EC9E7007ABB09 /* RNNStyler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNStyler.m; sourceTree = "<group>"; };
64
 		2636F1601E0EC9E7007ABB09 /* RNNStyler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNStyler.m; sourceTree = "<group>"; };
62
 		26AFF3F31D7EEE2400CBA211 /* RCCTitleViewHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCCTitleViewHelper.h; sourceTree = "<group>"; };
65
 		26AFF3F31D7EEE2400CBA211 /* RCCTitleViewHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCCTitleViewHelper.h; sourceTree = "<group>"; };
221
 				D800E8171CFED1DB004A187F /* RCCExternalViewControllerProtocol.h */,
224
 				D800E8171CFED1DB004A187F /* RCCExternalViewControllerProtocol.h */,
222
 				D83514F41D29719A00D53758 /* RCCNotification.h */,
225
 				D83514F41D29719A00D53758 /* RCCNotification.h */,
223
 				D83514F51D29719A00D53758 /* RCCNotification.m */,
226
 				D83514F51D29719A00D53758 /* RCCNotification.m */,
227
+				2636176D1E12722900D88A13 /* RNNTabBarController.h */,
228
+				2636176E1E12722900D88A13 /* RNNTabBarController.m */,
224
 				2606F7D81E0BC3FC00CC69CC /* RNNViewController.h */,
229
 				2606F7D81E0BC3FC00CC69CC /* RNNViewController.h */,
225
 				2606F7D91E0BC3FC00CC69CC /* RNNViewController.m */,
230
 				2606F7D91E0BC3FC00CC69CC /* RNNViewController.m */,
226
 				263617521E124FA100D88A13 /* RNNNavigationController.h */,
231
 				263617521E124FA100D88A13 /* RNNNavigationController.h */,
334
 				D85082FD1CBCF8A800FDB961 /* MMDrawerController.m in Sources */,
339
 				D85082FD1CBCF8A800FDB961 /* MMDrawerController.m in Sources */,
335
 				D85082E41CBCF54200FDB961 /* SidebarAnimation.m in Sources */,
340
 				D85082E41CBCF54200FDB961 /* SidebarAnimation.m in Sources */,
336
 				D8E11C571CBD1F670018B644 /* RCCDrawerController.m in Sources */,
341
 				D8E11C571CBD1F670018B644 /* RCCDrawerController.m in Sources */,
342
+				2636176F1E12722900D88A13 /* RNNTabBarController.m in Sources */,
337
 				260804DB1CE0D9D20094DBA1 /* RCCToolBar.m in Sources */,
343
 				260804DB1CE0D9D20094DBA1 /* RCCToolBar.m in Sources */,
338
 			);
344
 			);
339
 			runOnlyForDeploymentPostprocessing = 0;
345
 			runOnlyForDeploymentPostprocessing = 0;