Skip to content

Commit c65a3e2

Browse files
committed
update monitoring.ios.md
1 parent e5e00b8 commit c65a3e2

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

examples/samples/monitoring.ios.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Ensure to call
2828
Beacons.requestAlwaysAuthorization();
2929
```
3030

31+
[See matching lines in sample example](https://github.com/MacKentoch/react-native-beacons-manager/blob/master/examples/samples/monitoring.ios.js#L36)
32+
3133
#### in your iOS project
3234

3335
To be effective your `info.plist` file should have `Privacy - Location Always Usage Description` key defined (*empty value or not. It is better to define a value to a custom / more user-friendly message*).
@@ -51,6 +53,8 @@ const region = { identifier, uuid };
5153
Beacons.startMonitoringForRegion(region);
5254
```
5355

56+
[See matching lines in sample example](https://github.com/MacKentoch/react-native-beacons-manager/blob/master/examples/samples/monitoring.ios.js#L43)
57+
5458
## 3- get the position of the device
5559

5660
Monitoring needs you to get position of the device.
@@ -60,7 +64,7 @@ Just call:
6064
Beacons.startUpdatingLocation();
6165
```
6266

63-
[See matching lines in sample example]()
67+
[See matching lines in sample example](https://github.com/MacKentoch/react-native-beacons-manager/blob/master/examples/samples/monitoring.ios.js#L45)
6468

6569
## 4- register events
6670

@@ -97,7 +101,7 @@ DeviceEventEmitter.addListener(
97101
- **if you start the monotoring when already in region, `regionDidEnter` will not trigger first time. (leave region and wait at least 30 seconds then enter again the region)**
98102

99103

100-
[See matching lines in sample example]()
104+
[See matching lines in sample example](https://github.com/MacKentoch/react-native-beacons-manager/blob/master/examples/samples/monitoring.ios.js#L54)
101105

102106

103107
## 5- on componentWillUnMount: unregister events and stop monitoring
@@ -115,4 +119,4 @@ Beacons.stopUpdatingLocation();
115119
DeviceEventEmitter.remove();
116120
```
117121

118-
[See matching lines in sample example]()
122+
[See matching lines in sample example](https://github.com/MacKentoch/react-native-beacons-manager/blob/master/examples/samples/monitoring.ios.js#L75)

0 commit comments

Comments
 (0)