This gives you the device position through expo-location: src/lib/location.ts implements the shim, so location.getCurrentPosition() asks for foreground permission when it is still undetermined, returns a recent cached fix when there is one (up to 10 minutes old) and otherwise waits for a balanced-accuracy fix. location.reverseGeocode(coords) names the place ("Almaty") on iOS and Android. Every call resolves - null on denial, no fix or web geocoding - so screens never need a try. The weather demo's "My location" card uses it.
At a glance
- Runs in Expo Go
- Yes
- Files added
- 2
- npm packages
- 1
- Keys to paste
- None
- Included in
- Starter and Pro
Set it up
bun run setup --location expo-locationSetup copies the module in, installs SDK-matched versions and removes the options you did not pick. Then bun run doctor lists every key still missing, with a link to where you get it. The step-by-step guide is in the Expo Location docs.
Get it
Expo Location ships in Starter and Pro: one payment, lifetime updates. See pricing or browse every module.