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

Ripple-lib with react native #775

Closed
Kishanjvaghela opened this issue Jun 27, 2017 · 9 comments
Closed

Ripple-lib with react native #775

Kishanjvaghela opened this issue Jun 27, 2017 · 9 comments

Comments

@Kishanjvaghela
Copy link

Kishanjvaghela commented Jun 27, 2017

Can I use this lib with react native?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@intelliot
Copy link
Collaborator

Yes.

@emilbaekdahl
Copy link

How so? I have built the single JS file according to the instructions but I get _ is not defined even though I import lodash before ripple-lib - like so

import _ from 'lodash'
import '../lib/ripple-0.17.9'

How is this done properly, @intelliot ?

@allmaxgit
Copy link

allmaxgit commented Jan 15, 2018

I have Super expression must either be null or a function, not object error.

@astone123
Copy link

I'm having trouble importing this library into my React Native project. I'm getting an error that node_modules/ripple-lib/dist/api.js is trying to require a module called "event" that does not exist in the module map.

This is how I'm importing
import { RippleAPI } from 'ripple-lib';

Not sure if this is a React Native issue or an issue with this library. Is anyone else having this problem?

@FredKSchott
Copy link
Contributor

I'm not familiar enough with react-native to debug this too deeply, but it looks like Node.js/NPM packages aren't completely plug-and-play on react-native. For example, "events" module not found is because "events" is a Node.js core module, so it makes sense that this would fail when run outside of Node.

It would be great if someone with more react-native experience could give some guidance here. For example, should this be solved via:

@mszczech01
Copy link

I'm having trouble importing this library into my React Native project. I'm getting an error that node_modules/ripple-lib/dist/api.js is trying to require a module called "event" that does not exist in the module map.

This is how I'm importing
import { RippleAPI } from 'ripple-lib';

Not sure if this is a React Native issue or an issue with this library. Is anyone else having this problem?

I'm experiencing this issue as well. Have you managed to find a work around?

@reneveyj
Copy link

reneveyj commented Aug 8, 2019

After hours of research and testing I found a way to integrate ripple-lib in React Native and created a boilerplate project with a demo and a description of the steps I took to make it work:
https://github.com/reneveyj/RNRippleLib

@elmurci
Copy link
Contributor

elmurci commented Dec 9, 2020

FYI - I have created a PR #1341 to update instructions on how to use ripple-lib with React Native.

@intelliot
Copy link
Collaborator

Fixed by #1387. Instructions are in the README.

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

No branches or pull requests

9 participants