urbien / tradle

with the blockchain internet will turn into the tradenet, where people will tradle, not trade
https://github.com/tradle
GNU General Public License v3.0
10 stars 3 forks source link

using webtorrent on react native #3

Open dpxcc opened 7 years ago

dpxcc commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

@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.