File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import {
1717} from './module.types' ;
1818
1919const BeaconsManager : BeaconsManagerANDROID = RN . NativeModules . BeaconsAndroidModule ;
20+ const BeaconsEventEmitter = RN . DeviceEventEmitter ;
2021
2122const ARMA_RSSI_FILTER = BeaconsManager . ARMA_RSSI_FILTER ;
2223const RUNNING_AVG_RSSI_FILTER = BeaconsManager . RUNNING_AVG_RSSI_FILTER ;
@@ -238,6 +239,8 @@ function stopRangingBeaconsInRegion(
238239}
239240
240241module . exports = {
242+ BeaconsEventEmitter,
243+
241244 setHardwareEqualityEnforced,
242245 detectIBeacons,
243246 detectAltBeacons,
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import type {
99} from './module.types' ;
1010
1111const BeaconsManager : BeaconsManagerIOS = RN . NativeModules . RNiBeacon ;
12+ const BeaconsEventEmitter = new RN . NativeEventEmitter ( BeaconsManager ) ;
1213
1314/**
1415 * request always authorization (mandatory when ranging beacons but energy drain)
@@ -143,6 +144,8 @@ function stopRangingBeaconsInRegion(
143144}
144145
145146module . exports = {
147+ BeaconsEventEmitter,
148+
146149 requestAlwaysAuthorization,
147150 requestWhenInUseAuthorization,
148151 getAuthorizationStatus,
You can’t perform that action at this time.
0 commit comments