In our project, we add the “react-native-ble-plx” package, and config the Xcode as described in https://github.com/Polidea/react-native-ble-plx but after finishing the configurations, we build it and run on the simulator (iOS 11.2), it failed.
we have an expo project ,and we need bluetooth feature. But you know, exp project is incompatible with the “react-native-ble-plx” package. So we detached the expo to exposit. Then we can configure the expokit as described in https://github.com/Polidea/react-native-ble-plx. But first error is “React/RCTBridgeModule.h’ is not found” as follows:
In order to solve this problem, we drag “node_modules/react-native/React/React.xcodeproj” to the xcode and compile it first. The build our project and the problem disappeared. But a new problem occurs as follows:
The expokit can run successfully both on iOS and android before importing the “react-native-ble-plx”. And after importing the “react-native-ble-plx”, it cann’t run on iOS but on android.