Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
davidjb opened this issue Feb 24, 2017 · 7 comments

Comments

@davidjb
Copy link

davidjb commented Feb 24, 2017

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.

@eclesias
Copy link

eclesias commented Mar 3, 2017

I'm having the same issue with RN 0.40.0

@simonjk
Copy link

simonjk commented Mar 28, 2017

I have the same issue...
r-n 0.40.0
r-n-openpgp 1.0.3

@akyGit
Copy link

akyGit commented Mar 29, 2017

The same issue
RN 0.40.0
RN-openpgp 1.0.3

@simonjk
Copy link

simonjk commented Apr 23, 2017

@orhan Any news on this? this is a royal pain in the A.... and makes the library almost unusable

@theinventor
Copy link

👍 bump

@srinivasdamam
Copy link

same issue here, has anyone found the workaround.

@srinivasdamam
Copy link

srinivasdamam commented Sep 1, 2017

@theinventor which version did it work for you? I have 0.42.0 still it doesn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants