Browse Source

launch args fix

yogevbd 7 years ago
parent
commit
a90752dd78
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      ios/RCCManager.m

+ 2
- 4
ios/RCCManager.m View File

10
 @property (nonatomic, strong) RCTBridge *sharedBridge;
10
 @property (nonatomic, strong) RCTBridge *sharedBridge;
11
 @property (nonatomic, strong) NSURL *bundleURL;
11
 @property (nonatomic, strong) NSURL *bundleURL;
12
 @property (nonatomic, strong, readwrite) NSDictionary *globalAppStyle;
12
 @property (nonatomic, strong, readwrite) NSDictionary *globalAppStyle;
13
-@property (nonatomic, strong) NSDictionary *launchOptions;
14
 @end
13
 @end
15
 
14
 
16
 @implementation RCCManager
15
 @implementation RCCManager
47
   return self;
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
 -(void)clearModuleRegistry
53
 -(void)clearModuleRegistry
160
 {
159
 {
161
   if (self.sharedBridge) return;
160
   if (self.sharedBridge) return;
162
   
161
   
163
-  self.launchOptions = launchOptions;
164
   self.bundleURL = bundleURL;
162
   self.bundleURL = bundleURL;
165
   self.sharedBridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
163
   self.sharedBridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
166
   
164