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: Signal_Wire@0.0.1
npm ERR! Found: react-native@0.63.3
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 react-native-bluetooth-status@1.5.1
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
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: Signal_Wire@0.0.1
npm ERR! Found: react-native@0.63.3
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 react-native-bluetooth-status@1.5.1
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