shehankonecranes / sp-react-native-mqtt

MQTT Client native module for react-native
68 stars 55 forks source link

Update for RN > 0.60 #4

Closed kirkryan closed 4 years ago

kirkryan commented 4 years ago

Hi @SudoPlz ! This project looks fantastic and I would love it if I could get it working with the latest RN 0.61.5 but I've tried both linking and manually importing the files to no avail.

Is there an updated pod install and RN >0.60.0 install instructions? I would like to help out if there arent but my experience is very limited in this area!

SudoPlz commented 4 years ago

Hi @kirkryan our project is an rn 61.5 project too, and we didn't have to do anything differently? What's the issue?

kirkryan commented 4 years ago

Thanks for the quick response - I've just had a facepalm moment. I had forgotten to add pod 'MQTTClient' to the podfile. It's building fine now.

Appreciate the fast response!

kirkryan commented 4 years ago

One final comment - did you find the need to link a requirement any more? Every time I use that in the post RN 0.60 world it causes havoc.

SudoPlz commented 4 years ago

I do link it manually as I did in .60, actually we just migrated to .61.5 and we didn't change anything, it just works. (we're still manually linking it as a pod dependency)

(pod 'sp-react-native-mqtt', :path => '../node_modules/sp-react-native-mqtt') in our podfile

esbenvb commented 3 years ago

On RN 0.64.1, I needed to do this to build on iOS...

image