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

Support for RN 0.72.4 #151

Open
Spxc opened this issue Sep 19, 2023 · 0 comments
Open

Support for RN 0.72.4 #151

Spxc opened this issue Sep 19, 2023 · 0 comments

Comments

@Spxc
Copy link

Spxc commented Sep 19, 2023

Is your feature request related to a problem? Please describe.
Might be, but probably not

Describe the solution you'd like
Support for using the SDK in RN. Should be fairly straight forward.

Describe alternatives you've considered
None

Additional context
To get it up and running in RN run the following:
Install "Nodify" to hack the RN installation

yarn add rn-nodeify
yarn add react-native-crypto

Hack the installation

yarn rn-nodeify --install url,events,https,http,util,stream,crypto,vm,buffer --hack --yarn
  1. Uncomment require('crypto') on shim.js (root of your project)
  2. Install pods for iOS cd ios && pod install && cd ../
  3. Create rn-cli.config.js
module.exports = {
  resolver: {
    extraNodeModules: require("node-libs-react-native"),
  },
}
  1. If you get issues with stream, install readable-stream and rebuild the project

Working example
Check out this GitHub repo

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

1 participant