Skip to content

iOS app won't load if react-native-openpgp is imported and remote debugger is enabled #6

@davidjb

Description

@davidjb

After attempting to import this module like so:

import * as openpgp from 'react-native-openpgp'

and running react-native run-ios with Remote JS Debugging enabled, my iOS app doesn't load, specifically not proceeding past the following screen:

simulator screen shot 24 feb 2017 21 34 21

Dev tools in Chrome launches automatically and connects successfully, but the app screen remains at Loading from localhost:8081. It's just the import line that triggers the issue, because if I go ahead and comment out the import line, the app loads fine. Similarly, if debugging isn't enabled, the app loads fine and the OpenPGP code works correctly.

If I go ahead and shutdown the packager and restart it, the very first reload of the running app will start transforming/loading modules, but the app won't finish loading. This is the output on the console from react-native start --verbose:

Looking for JS files in
   /Users/david/dev/App

Loading dependency graph...
React packager ready.

Loading dependency graph, done.
Bundling `index.ios.js`
  Transforming modules  99.1% (1603/1610), done.
Bundling `index.ios.js`
  No module changed.
Bundling `index.ios.js`
  No module changed.
Bundling `index.ios.js`
  No module changed.

and the screen remains as per the screenshot.

I'm using RN 0.41.2 and current master of react-native-openpgp and it has been react-native link'd accordingly. Oddly, there's no errors/exceptions or messages triggered in the debugger or console (even with using react-native start --verbose) aside from the output above. Let me know how one debugs something like this.

Thanks for sharing this code by the way; it's looking really helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions