one
Version:
One is a React framework for web, iOS, and Android apps.
14 lines (12 loc) • 458 B
text/typescript
// ambient light through the platform light sensor, matching
// expo-sensors' parameters, payload fields and values. the function names
// drop expo's Async suffix and the words that repeat the namespace.
export interface LightSensorMeasurement {
// ambient light in lux (lx).
illuminance: number
// seconds since boot, matching expo on android; unix seconds on web.
timestamp: number
}
export interface LightSensorSubscription {
remove(): void
}