|
@@ -10,6 +10,7 @@
|
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;
|
13
|
14
|
@end
|
14
|
15
|
|
15
|
16
|
@implementation RCCManager
|
|
@@ -46,6 +47,10 @@
|
46
|
47
|
return self;
|
47
|
48
|
}
|
48
|
49
|
|
|
50
|
+- (NSDictionary *)getInitialProps {
|
|
51
|
+ return _launchOptions;
|
|
52
|
+}
|
|
53
|
+
|
49
|
54
|
-(void)clearModuleRegistry
|
50
|
55
|
{
|
51
|
56
|
[self.modulesRegistry removeAllObjects];
|
|
@@ -155,6 +160,7 @@
|
155
|
160
|
{
|
156
|
161
|
if (self.sharedBridge) return;
|
157
|
162
|
|
|
163
|
+ self.launchOptions = launchOptions;
|
158
|
164
|
self.bundleURL = bundleURL;
|
159
|
165
|
self.sharedBridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
|
160
|
166
|
|