Bluetooth classic Android(Bluetooth)/IOS(ExternalAccessory) module for serial communication
React Native Bluetooth Classic is a library designed to facilitate the use of Bluetooth Classic on iOS devices by utilizing the External Accessory framework. It is an extension of the react-native-bluetooth-serial port, with improvements and updates targeted specifically at replacing CoreBluetooth (BLE) on iOS. The library offers different versions tailored to specific React Native versions, with considerations for potential breaking changes.
Getting started:
Install the library from NPM for React Native 0.60.0 and later versions, which support autolinking.
Manual Installation (iOS):
iOS Pods:
Update the Podfile with the appropriate line to include the development pod for iOS.
Android Autolinking:
With React Native 0.60.0 and later, autolinking is supported; default configuration is provided. For custom implementations, autolinking can be overridden following the documentation.
Disable Autolinking (Android):
To skip autolinking, disable it by:
The React Native Bluetooth Classic library is a useful tool for integrating Bluetooth Classic functionalities into React Native applications, especially on iOS devices where the External Accessory framework is utilized. The library’s versions cater to different React Native versions, ensuring compatibility and ease of use. Installation is streamlined with autolinking support for newer versions of React Native, and manual installation steps are provided for exceptional cases. Autolinking on Android is supported out-of-the-box, with flexibility to override configurations for custom implementations, making it a versatile solution for developers needing Bluetooth Classic capabilities in their React Native projects.