Location and camera

Location and camera APIs give access to the device's hardware, for example with expo-location and expo-camera. They require a prior permission and have a cost in battery and privacy: you only request the necessary accuracy and frequency, and release resources when the screen is left.

Example

const pos = await Location.getCurrentPositionAsync({});

Related concepts

The whole glossary