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

could not build on react-native #500

Closed
monkeyWie opened this issue Nov 26, 2022 · 4 comments
Closed

could not build on react-native #500

monkeyWie opened this issue Nov 26, 2022 · 4 comments

Comments

@monkeyWie
Copy link

Is there a way to run on react-natice?

error: Error: Unable to resolve module os from d:\code\study\node\gali\node_modules\node-gyp-build\index.js: os could not be found within the project or in these directories:
  node_modules
  1 | var fs = require('fs')
  2 | var path = require('path')
  3 | var os = require('os')
@jrose-signal
Copy link
Contributor

The only supported platform is Electron, as used by the official Signal Desktop client. However, the use of node-gyp-build is mostly just to make sure the N-API-based Rust modules get built and loaded properly; if that's the only incompatibility with React-Native, it's possible you could skip the install script and get everything to work. Patches welcome as long as they don't cause an undue maintainence burden.

@monkeyWie
Copy link
Author

Thank you for reply, I have rethought it, react-native not support NAPI, so this should not be possible, unless this is written in pure js.

@jrose-signal jrose-signal closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2022
@ajitdas123
Copy link

@monkeyWie Did you find a way to use this library? or are you using any other for E2E encryption?

@monkeyWie
Copy link
Author

@ajitdas123 no, but you can consider platform native module.

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

No branches or pull requests

3 participants