question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

make react-native compatible?

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ixjecommented, Nov 29, 2017

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 👍

1reaction
snowypowerscommented, Sep 25, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found