No location
The "No location" option of the ReadyNative Expo template: no permission prompt, no expo-location.
Expo Go: yes
Runs in Expo Go; no dev build needed for this module.
This is the no-op location option: no expo-location, no permission dialog and no purpose string in your app. It owns src/lib/location.ts as a re-export of the core shim, so @/lib/location keeps the same API - location.supported is false, getCurrentPosition() resolves null and the permission calls resolve "unsupported".
Setup
bun run setup --location noneThere's nothing to configure. Switch with bun run setup --location expo-location when a screen needs the user's position.
Usage
import { location } from "@/lib/location";
if (location.supported) {
// render a "use my location" button
}
const coords = await location.getCurrentPosition(); // always nullGotchas
- Screens written against the shim already handle
null, so switching options later changes no screen code. - Nothing here needs a dev build; Expo Go is fine.
Reference
Everything below is generated from modules/location/none/module.json - the same file bun run setup reads, so it is what actually lands in your repo.
Install
bun run setup --location noneModule id: location/none.
Files
1 files copied to the project root
src/lib/location.ts