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

using webtorrent on react native #3

Open
dpxcc opened this issue Mar 7, 2017 · 3 comments
Open

using webtorrent on react native #3

dpxcc opened this issue Mar 7, 2017 · 3 comments

Comments

@dpxcc
Copy link

dpxcc commented Mar 7, 2017

Hi urbien,

I'm trying to use webtorrent on react native. After googling for a while, it seems that your company tradle already made it possible to run nodejs libraries on react native, including bitcoin, bittorrent, etc.

I tried to use rn-nodeify to shim core nodejs libraries, but webtorrent is still not working for me. Do you have a working example of that?

Thanks!

@AdorkDean
Copy link

me too,
when use 'var webtorrent = require('webtorrent')' in react-native & rn-nodeify, there is an error 'Object prototype may only be an Object or null'.
had any example of that?

@dpxcc
Copy link
Author

dpxcc commented Jul 22, 2017

I was able to use webtorrent with react-native. If I remember correctly, you have to update some nodes libraries. The current rn-nodify are using old shimed libraries and they are not compatible with others.

@AdorkDean
Copy link

@dpxcc can you show me an example?
i build webtorrent & react-native & rn-nodify ok。
when in ios9, SSL Handshake failed and tcp connect = nil, and in android null message
thanks.

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

2 participants