I have recently started with React-Native and wanted to try a bluetooth connectivity library ( https://github.com/innoveit/react-native-ble-manager )
Steps to create app and run on device:
react-native init myBluetoothHandler
cd myBluetoothHandler
npm i --save react-native-ble-manager
When I do this I see this log:
Which fails with this error log:
Just for a hit and try I ran step 3 again and this printed. And after that link command also worked.:
But I am not able to run the project from Xcode on my device. I see this error:
Same happened to me when I tried a different library: https://github.com/Polidea/react-native-ble-plx/issues/388
Use react-native init <project_name> --version 0.59.0
. Do not use rc versions.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.