title: Javascript doesn't seem to be running when loading React native through Action extension on ios
body: <p>This is from my View Controller that is launched by the Action extension:</p>
  
  <pre><code>- (void)loadView {
    [super loadView];
  
  
    NSURL *jsCodeLocation;
        jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
  
    BOOL found = NO;
  
    // Find the item containing the results from the JavaScript preprocessing.
    for (NSExtensionItem *item in self.extensionContext.inputItems) {
      for (NSItemProvider *itemProvider in item.attachments) {
        if ([itemProvider hasItemConformingToTypeIdentifier:(NSString *)kUTTypePropertyList]) {
          [itemProvider loadItemForTypeIdentifier:(NSString *)kUTTypePropertyList options:nil completionHandler:^(NSDictionary *dictionary, NSError *error) {
            [[NSOperationQueue mainQueue] addOperationWithBlock:^{
  
              NSDictionary *initialProps = @{@"isActionExtension": @YES,  @"preprocessingResults": dictionary[NSExtensionJavaScriptPreprocessingResultsKey]};
  
              RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
                                                                  moduleName:@"QCheckoutRN"
                                                           initialProperties:initialProps
                                                               launchOptions:nil];
  
              rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
  
  
              NSLog(@"High Score Button Pressed");
              UIViewController *vc = [[UIViewController alloc] init];
              vc.view = rootView;
              [self presentViewController:vc animated:YES completion:nil];
  
  
            }];
          }];
          found = YES;
        }
        break;
      }
      if (found) {
        break;
      }
    }
  
    if (!found) {
      // We did not find anything
      [self doneWithResults:nil];
    }
  </code></pre>
  
  <p>It loads the view generated with RN and I see buttons from the jsx file but no lifecycle methods are being fired, cant do alert() and buttons don't trigger actions.</p>
  
  <p>Not sure how to debug this as it seems that the JS Runtime if dead, which is strange as it did the initial render. Am I loading it wrong? 
  It looks similar to <a href="https://facebook.github.io/react-native/docs/integration-with-existing-apps" rel="nofollow noreferrer">https://facebook.github.io/react-native/docs/integration-with-existing-apps</a> but they are using an action to call the view while im loading it right away. Im a noob at iOS development and Objective-c so if someone can point out the issue it would help a lot to get it running.</p>