react-native-beacons-manager
react-native-beacons-manager copied to clipboard
Simple example not working why ?
Simple example it not show or array in data is [ ] import { DeviceEventEmitter } from 'react-native' import Beacons from 'react-native-beacons-manager'
// Tells the library to detect iBeacons Beacons.detectIBeacons()
// Start detecting all iBeacons in the nearby
try {
await Beacons.startRangingBeaconsInRegion('REGION1')
console.log(Beacons ranging started succesfully!
)
} catch (err) {
console.log(Beacons ranging not started, error: ${error}
)
}
// Print a log of the detected iBeacons (1 per second) DeviceEventEmitter.addListener('beaconsDidRange', (data) => { console.log('Found beacons!', data.beacons) })
I have the same issue.
I also have the same issue after wasting a whole day still stuck
@bezblue @gurzoni has anyone solved this?
Finally, I have solved this you can see my solution in #147