react-native-bluetooth-status
react-native-bluetooth-status copied to clipboard
Not able to Install npm check Bluetooth Status
I am not able to install npm bluetooth-status.
**$ npm install react-native-bluetooth-status
import { BluetoothStatus } from 'react-native-bluetooth-status';
async getBluetoothState() { const isEnabled = await BluetoothStatus.state(); }**
Getting Error !
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/react-native npm ERR! react-native@"0.63.3" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react-native@"^0.61.0" from [email protected] npm ERR! node_modules/react-native-bluetooth-status npm ERR! react-native-bluetooth-status@"*" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /Users/vivek/.npm/eresolve-report.txt for a full report.
Please Help