make react-native compatible?
See original GitHub issueI was trying to include this SDK into my react-native application but ran into all kinds of bundling and import errors. i.e.
error: bundling failed: "Unable to resolve module
assert
from/code/neonwallet/node_modules/neon-js/lib/index.js
Googling the errors people seem to suggest that it’s related to importing modules from node core. I tried using https://github.com/mvayngrib/rn-nodeify which attempts to shim all that stuff but it didn’t work out and just throws new errors.
Unfortunately I’m hardly familiar with the ins and outs of Node. I was wondering if there are any plans to make this compatible with react-native? It would be great if I would not have to re-invent the wheel.
Looking forward to your thoughts
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Setting up the development environment - React Native
Run the following command to create a new React Native project called "AwesomeProject": npm; Yarn. npx create-expo-app AwesomeProject
Read more >React Native · Learn once, write anywhere
Create native apps for Android, iOS, and more using React. React Native combines the best parts of native development with React, a best-in-class...
Read more >Integration with Existing Apps - React Native
React Native is great when you are starting a new mobile app from scratch. However, it also works well for adding a single...
Read more >Prerequisites for Applications - React Native
There are a few prerequisites that should be addressed before the New Architecture is enabled in your application.
Read more >Platform Specific Code - React Native
When building a cross-platform app, you'll want to re-use as much code as possible. Scenarios may arise where it makes sense for the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No problem on the close! For completeness sake; the
env
preset kept causing issues on the android build so I ended up moving away from the library. It was a good reference to get started from though 👍should pull @Ejhfast in for an opinion. Should this repo be aimed for the web? any perf impacts if we build for web instead? I could remove
child_process
because we are using the sync methods for scrypt.