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

Question - When running in debug mode, it gets stuck on the initial screen and freezes. #706

Open
badpinkman opened this issue Mar 7, 2023 · 2 comments

Comments

@badpinkman
Copy link

Hello, I have downloaded the master branch of this project, installed the relevant dependencies, and successfully run the Android application. Everything works fine, except that I cannot debug it. Whenever I try to debug, I get stuck on the blue "bitpay" screen and cannot proceed. As for the changes I made to the project:

I generated a bundle JS file using "npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res".
I modified the network-security-config file and changed the "cleartextTrafficPermitted" attribute to "true".
I have not made any other changes to the project. I would appreciate any help you can provide when you are available. Thank you very much.

@badpinkman
Copy link
Author

Additional information:
logcat:
03-07 05:31:26.244 21120 21220 E ReactNativeJS: ReferenceError: Property 'atob' doesn't exist, js engine: hermes
03-07 05:31:26.265 21120 21220 E ReactNativeJS: Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause
of the error is that the application entry file path is incorrect.
03-07 05:31:26.265 21120 21220 E ReactNativeJS: This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes
03-07 05:31:26.395 21120 21220 E ReactNativeJS: Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause
of the error is that the application entry file path is incorrect.
03-07 05:31:26.395 21120 21220 E ReactNativeJS: This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes
03-07 05:31:52.474 21120 21220 E ReactNativeJS: Invariant Violation: Module AppRegistry is not a registered callable module (calling unmountApplicationComponentAtRootTag). A frequent cause of the error is that the application entry file path is incorrect.
03-07 05:31:52.474 21120 21220 E ReactNativeJS: This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes
03-07 05:45:10.476 24033 24121 E ReactNativeJS: ReferenceError: Property 'atob' doesn't exist, js engine: hermes
03-07 05:45:10.480 24033 24121 E ReactNativeJS: Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause
of the error is that the application entry file path is incorrect.
03-07 05:45:10.480 24033 24121 E ReactNativeJS: This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes

@collinpowell
Copy link

You need to set the right registry, in your main activity and app.js

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

2 participants