Browse Source

launch args fix

yogevbd 6 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,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