Native Bluetooth API for React Native
⚠️ Note: Initial support is available for Android only. iOS support will be added in a future release.
npm install rn-serial-bluetooth-classic
An example implementation can be found in the example/App.tsx
file:
// See example/App.tsx for full usage demonstration
Feature | Android | iOS |
---|---|---|
Bluetooth status connection | ✅ | ❌ |
Enable Bluetooth | ✅ | ❌ |
Implement state changed listener | ✅ | ❌ |
Discover device incrementally | ✅ | ❌ |
Listener when discover end | ✅ | ❌ |
Add Bluetooth device pairing | ✅ | ❌ |
Implement Bluetooth device connection | ✅ | ❌ |
Add Bluetooth device disconnection | ✅ | ❌ |
Implement Bluetooth data transfer | ✅ | ❌ |
Add Bluetooth data reception | ✅ | ❌ |
- Add iOS support
- Implement Bluetooth data parsing
- Add Bluetooth data encoding
- Add unit tests and complete documentation