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

Error: Failed to install react-native-quick-crypto: React Native is not running on-device. #333

Closed
doublelam opened this issue Jun 3, 2024 · 4 comments

Comments

@doublelam
Copy link

react-native-quick-crypto: "0.7.0-rc.9"
react-native: "074.0"

newArchEnabled=true
hermesEnabled=true

Build success, but the ts part not work, it says:
image

the checker seems not correct for hermes
image

image
@BANG88
Copy link

BANG88 commented Jun 4, 2024

@doublelam Saved my day. I found this problem yesterday but have no idea what's going on.

@BANG88
Copy link

BANG88 commented Jun 4, 2024

After commenting, it ran successfully and development can continue. haha.

// Check if we are running on-device (JSI)
  // if (global.nativeCallSyncHook == null || QuickCryptoModule.install == null) {
  //   throw new Error('Failed to install react-native-quick-crypto: React Native is not running on-device. QuickCrypto can only be used when synchronous method invocations (JSI) are possible. If you are using a remote debugger (e.g. Chrome), switch to an on-device debugger (e.g. Flipper) instead.');
  // }

@boorad
Copy link
Collaborator

boorad commented Jun 8, 2024

This will all go away when we land #327

@boorad boorad closed this as completed Jun 20, 2024
@boorad
Copy link
Collaborator

boorad commented Aug 30, 2024

I should add a fix for the 0.x branch.

@boorad boorad reopened this Aug 30, 2024
boorad added a commit to boorad/react-native-quick-crypto that referenced this issue Sep 1, 2024
@boorad boorad closed this as completed Sep 1, 2024
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

3 participants