-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
No matter if the Bluetooth is switched on or off (both general settings and app settings) the state comes as false. Am I missing something?
import { BluetoothStatus } from 'react-native-bluetooth-status';
...
async checkBluetoothState() {
const isEnabled = await BluetoothStatus.state();
// false
}
When I inspect the state in the line https://github.com/solinor/react-native-bluetooth-status/blob/master/index.js#L28
this.subscription = bluetoothEvent.addListener(BT_STATUS_EVENT, state => {
state is undefined
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels