Skip to content

Commit 1c5ddb4

Browse files
Updated README.md examples to use Geolocation instead of the incorrect casing geolocation (#117)
1 parent 577feba commit 1c5ddb4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Check out the [example project](example) for more examples.
174174
#### `setRNConfiguration()`
175175

176176
```javascript
177-
geolocation.setRNConfiguration(config);
177+
Geolocation.setRNConfiguration(config);
178178
```
179179

180180
Sets configuration options that will be used in all location requests.
@@ -195,7 +195,7 @@ Supported options:
195195
#### `requestAuthorization()`
196196

197197
```javascript
198-
geolocation.requestAuthorization();
198+
Geolocation.requestAuthorization();
199199
```
200200

201201
Request suitable Location permission based on the key configured on pList. If NSLocationAlwaysUsageDescription is set, it will request Always authorization, although if NSLocationWhenInUseUsageDescription is set, it will request InUse authorization.
@@ -205,7 +205,7 @@ Request suitable Location permission based on the key configured on pList. If NS
205205
#### `getCurrentPosition()`
206206

207207
```javascript
208-
geolocation.getCurrentPosition(geo_success, [geo_error], [geo_options]);
208+
Geolocation.getCurrentPosition(geo_success, [geo_error], [geo_options]);
209209
```
210210

211211
Invokes the success callback once with the latest location info.
@@ -229,7 +229,7 @@ Supported options:
229229
#### `watchPosition()`
230230

231231
```javascript
232-
geolocation.watchPosition(success, [error], [options]);
232+
Geolocation.watchPosition(success, [error], [options]);
233233
```
234234

235235
Invokes the success callback whenever the location changes. Returns a `watchId` (number).
@@ -255,7 +255,7 @@ Supported options:
255255
#### `clearWatch()`
256256

257257
```javascript
258-
geolocation.clearWatch(watchID);
258+
Geolocation.clearWatch(watchID);
259259
```
260260

261261
**Parameters:**
@@ -269,12 +269,12 @@ geolocation.clearWatch(watchID);
269269
#### `stopObserving()`
270270

271271
```javascript
272-
geolocation.stopObserving();
272+
Geolocation.stopObserving();
273273
```
274274

275275
Stops observing for device location changes. In addition, it removes all listeners previously registered.
276276

277-
Notice that this method has only effect if the `geolocation.watchPosition(successCallback, errorCallback)` method was previously invoked.
277+
Notice that this method has only effect if the `Geolocation.watchPosition(successCallback, errorCallback)` method was previously invoked.
278278

279279
## Contributors
280280

0 commit comments

Comments
 (0)