Skip to content

Commit

Permalink
[TS][location][docs] add maximumAge to TS, timeout to docs, & fix…
Browse files Browse the repository at this point in the history
… docs error (#6808)

* [location] add TS for maximumAge

* update docs for timeout option

* add unique key prop to TableOfContentSection
  • Loading branch information
cruzach committed Jan 28, 2020
1 parent ee29508 commit 99512d9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/components/plugins/TableOfContentSection.js
Expand Up @@ -104,6 +104,7 @@ export default class TableOfContentSection extends React.Component {
{contents.map(data => {
return (
<a
key={data}
href={`#${createAnchorLink(data)}`}
className={STYLES_EXTERNAL_LINK}
rel="noopener noreferrer">
Expand Down
1 change: 1 addition & 0 deletions docs/pages/versions/unversioned/sdk/location.md
Expand Up @@ -102,6 +102,7 @@ Get the current position of the device.
- **options (_object_)** -- A map of options:
- **accuracy : [Location.Accuracy](#locationaccuracy)** -- Location manager accuracy. Pass one of [Location.Accuracy](#locationaccuracy) enum values. For low-accuracy the implementation can avoid geolocation providers that consume a significant amount of power (such as GPS).
- **maximumAge (_number_)** -- (Android only). If specified, allow returning a previously cached position that is at most this old in milliseconds. If not specified, always gets a new location. On iOS this option is ignored and a new location is always returned.
- **timeout (_number_)** -- (Android only). Specifies the duration of time in milliseconds to wait before timing out the location request.

#### Returns

Expand Down
1 change: 1 addition & 0 deletions docs/pages/versions/v36.0.0/sdk/location.md
Expand Up @@ -102,6 +102,7 @@ Get the current position of the device.
- **options (_object_)** -- A map of options:
- **accuracy : [Location.Accuracy](#locationaccuracy)** -- Location manager accuracy. Pass one of [Location.Accuracy](#locationaccuracy) enum values. For low-accuracy the implementation can avoid geolocation providers that consume a significant amount of power (such as GPS).
- **maximumAge (_number_)** -- (Android only). If specified, allow returning a previously cached position that is at most this old in milliseconds. If not specified, always gets a new location. On iOS this option is ignored and a new location is always returned.
- **timeout (_number_)** -- (Android only). Specifies the duration of time in milliseconds to wait before timing out the location request.

#### Returns

Expand Down
1 change: 1 addition & 0 deletions packages/expo-location/build/Location.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/expo-location/build/Location.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/expo-location/src/Location.ts
Expand Up @@ -20,6 +20,7 @@ export interface ProviderStatus {

export interface LocationOptions {
accuracy?: LocationAccuracy;
maximumAge?: number;
enableHighAccuracy?: boolean;
timeInterval?: number;
distanceInterval?: number;
Expand Down

0 comments on commit 99512d9

Please sign in to comment.