A simple demo to show how to use mqtt with React Native.
- Xcode and iOS Simulator
Execute the following command in the RNMQTTDemo
directory environment
npm install
Execute the following command in the RNMQTTDemo/ios
directory environment
pod install
In the RNMQTTDemo
directory environment, create two new terminal windows and execute the following commands respectively
npx react-native start
npx react-native run-ios