You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method should be called when you don't need to receive location-based information and want to save battery power.
149
149
150
+
### Beacons.shouldDropEmptyRanges
151
+
```javascript
152
+
Beacons.shouldDropEmptyRanges(true);
153
+
```
154
+
Call this method to stop sending the `beaconsDidRange` event when the beacon list is empty. This can be useful when listening to multiple beacon regions and can reduce cpu usage by 1-1.5%.
155
+
150
156
## Events
151
157
To listen to events we need to call `DeviceEventEmitter.addListener` (`var {DeviceEventEmitter} = require('react-native')`) where the first parameter is the event we want to listen to and the second is a callback function that will be called once the event is triggered.
0 commit comments