taoqf / MQTT.js

The MQTT client for Node.js and the browser
Other
12 stars 8 forks source link

Android and Ios linking #2

Closed thomaslc66 closed 5 years ago

thomaslc66 commented 5 years ago

Is it possible for you to add more info about the linking process on the readme as well as with kind of data the message type supports ?? Thank you very much

https://github.com/SudoPlz/sp-react-native-mqtt/pull/1#issuecomment-498517526

taoqf commented 5 years ago

Sorry I don't get you. It is a pure js mobule so you could use it just like mqtt.js. You don't need react link this module or do something like that. Just require and use it will be fine.

thomaslc66 commented 5 years ago

I tell you this because when you add your lib on a react native and run it. We got an error : image

should maybe add all dependencies in the package.json.

taoqf commented 5 years ago

Make sure you use @taoqf/react-native-mqtt, not just use mqtt.js directly, please.