aboozaid / react-native-wifi-hotspot

A react-native implementation for handling hotspot requests and make it easier to communicate with peers!
ISC License
40 stars 21 forks source link

example for file sharing #5

Closed mfachmirizal closed 5 years ago

mfachmirizal commented 5 years ago

Could you give us an example to use this library for file sharing over wifi?..

thanks..

aboozaid commented 5 years ago

I'm building a new module for that purpose with the help of this lib too.

peckyboy commented 4 years ago

Any luck with it? @assemmohamedali ? I'm in need of such a module

aboozaid commented 4 years ago

@peckyboy if you need a quick way to get started to this (until I release this module) you can use react-native-tcp and this lib to do that task. The idea is you just need to put the devices which they need to connect in a same network and then open a socket to send data over it.

peckyboy commented 4 years ago

Oh! I see. I actually looked at that module but wasn't very detailed so I thought it wasn't what I looking for. You're saying I'd have to create the hotspot manually and open a socket to send and receive data? @assemmohamedali

aboozaid commented 4 years ago

Yeah, exactly my lib will help you establish a hotspot and ask a device to connect to then use react-native-tcp to open a socket.

peckyboy commented 4 years ago

Awesome @assemmohamedali . Looking forward to it. Thanks for your responses