|
@@ -8,6 +8,7 @@
|
8
|
8
|
@property (nonatomic, strong) NSMutableDictionary *modulesRegistry;
|
9
|
9
|
@property (nonatomic, strong) RCTBridge *sharedBridge;
|
10
|
10
|
@property (nonatomic, strong) NSURL *bundleURL;
|
|
11
|
+@property (nonatomic, strong, readwrite) NSDictionary *globalAppStyle;
|
11
|
12
|
@end
|
12
|
13
|
|
13
|
14
|
@implementation RCCManager
|
|
@@ -53,6 +54,7 @@
|
53
|
54
|
{
|
54
|
55
|
id<UIApplicationDelegate> appDelegate = [UIApplication sharedApplication].delegate;
|
55
|
56
|
appDelegate.window.rootViewController = nil;
|
|
57
|
+ [self setAppStyle:nil];
|
56
|
58
|
[self clearModuleRegistry];
|
57
|
59
|
}
|
58
|
60
|
|
|
@@ -238,6 +240,17 @@
|
238
|
240
|
return window;
|
239
|
241
|
}
|
240
|
242
|
|
|
243
|
+-(NSDictionary*)getAppStyle
|
|
244
|
+{
|
|
245
|
+ return [NSDictionary dictionaryWithDictionary:self.globalAppStyle];
|
|
246
|
+}
|
|
247
|
+
|
|
248
|
+-(void)setAppStyle:(NSDictionary*)appStyle
|
|
249
|
+{
|
|
250
|
+ self.globalAppStyle = [NSDictionary dictionaryWithDictionary:appStyle];
|
|
251
|
+}
|
|
252
|
+
|
|
253
|
+
|
241
|
254
|
#pragma mark - RCTBridgeDelegate methods
|
242
|
255
|
|
243
|
256
|
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
|