react-native-beacons-manager
react-native-beacons-manager copied to clipboard
Beacons.startRangingBeaconsIsRegion() crashes App
Version 1.0.7 Android 28 react native 0.63.4 npm 6.13.4
const detectBeacon = async () => { const id = 'REGION1'; const uuid = [UUID];
try {
await Beacons.startRangingBeaconsInRegion(id, uuid);
console.log(`Beacons ranging started succesfully!`)
} catch (err) {
console.log(`Beacons ranging not started, error: ${err}`)
}
return;
}
Platform is android and app crashes when call function "Beacons.startRangingBeaconsInRegion(id, uuid);"
At console, i can show Beacons ranging started succesfully!
and then app crashes.
Is there any way to resolve this without downgrading RN version ?
Plz give me the answer ,,,, :(
I've solved this by updating node_modules\react-native-beacons-manager\android\build.gradle
compile 'com.facebook.react:react-native:0.12.+'
to compile 'com.facebook.react:react-native:0.63.+'
@samuel-joly thanks!!
For me worked using like this: compile 'com.facebook.react:react-native:+'