|
@@ -10,7 +10,6 @@
|
10
|
10
|
@property (nonatomic, strong) RCTBridge *sharedBridge;
|
11
|
11
|
@property (nonatomic, strong) NSURL *bundleURL;
|
12
|
12
|
@property (nonatomic, strong, readwrite) NSDictionary *globalAppStyle;
|
13
|
|
-@property (nonatomic, strong) NSDictionary *launchOptions;
|
14
|
13
|
@end
|
15
|
14
|
|
16
|
15
|
@implementation RCCManager
|
|
@@ -47,8 +46,8 @@
|
47
|
46
|
return self;
|
48
|
47
|
}
|
49
|
48
|
|
50
|
|
-- (NSDictionary *)getInitialProps {
|
51
|
|
- return _launchOptions;
|
|
49
|
+- (NSArray *)getInitialProps {
|
|
50
|
+ return [[NSProcessInfo processInfo] arguments];
|
52
|
51
|
}
|
53
|
52
|
|
54
|
53
|
-(void)clearModuleRegistry
|
|
@@ -160,7 +159,6 @@
|
160
|
159
|
{
|
161
|
160
|
if (self.sharedBridge) return;
|
162
|
161
|
|
163
|
|
- self.launchOptions = launchOptions;
|
164
|
162
|
self.bundleURL = bundleURL;
|
165
|
163
|
self.sharedBridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
|
166
|
164
|
|