Bladeren bron

added RNNTabBarController

Ran Greenberg 7 jaren geleden
bovenliggende
commit
612e5c6491

+ 1
- 3
ios/RNNNavigationController.m Bestand weergeven

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

+ 13
- 0
ios/RNNTabBarController.h Bestand weergeven

@@ -0,0 +1,13 @@
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 Bestand weergeven

@@ -0,0 +1,19 @@
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 Bestand weergeven

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