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

Breaks with libraries that use NativeModules, like react-native-randombytes #2618

Closed
1 task done
Distance71 opened this issue Dec 11, 2023 · 3 comments
Closed
1 task done
Labels

Comments

@Distance71
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the issue

Every libraries using NativeModules breaks

Expected behavior

It should export as least a mock, to be compatible with RN apps

Steps to reproduce

I created a tiny sandbox to reproduce

Test case

https://codesandbox.io/p/sandbox/gracious-mclean-kmynms

Additional comments

No response

@Distance71 Distance71 added the bug label Dec 11, 2023
@necolas
Copy link
Owner

necolas commented Dec 11, 2023

You can't use native code modules in web apps

@necolas necolas closed this as completed Dec 11, 2023
@Distance71
Copy link
Author

@necolas what alternative do you suggest for compatibility purposes?

@necolas
Copy link
Owner

necolas commented Dec 11, 2023

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

No branches or pull requests

2 participants