This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 57).
Expo LightSensor
A library that provides access to the device's light sensor.
Android
Included in Expo Go
LightSensor from expo-sensors provides access to the device's light sensor to respond to illuminance changes.
Installation
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
Basic Light Sensor usage
API
import { LightSensor } from 'expo-sensors';
No API data file found, sorry!