Application
useApplicationInstallTime
— get the time the app was installed on the deviceuseApplicationAndroidInstallReferrer
— get the referrer URL of the installed appuseApplicationAndroidLastUpdateTime
— get the time the app was last updated via the Google Play StoreuseApplicationIosIdForVendor
— get the referrer URL of the installed app
Battery
useBattery
— get the battery level, state and power modeuseBatteryLevel
— get or track the battery level or percentage remaininguseBatteryLowPowerMode
— get or track the battery low power modeuseBatteryState
— get or track the battery (charging) state
Brightness
useBrightness
— change or track the screen brightnessuseSystemBrightness
— change or track the system screen brightnessuseSystemBrightnessMode
— change or track the system brightness mode
Font
useFonts
— load a map of fonts
Permissions
usePermissions
— get or ask permissions
Screen Orientation
useScreenOrientation
— track changes in screen orientationuseScreenOrientationLock
— lock the screen to an orientationuseScreenOrientationPlatformLock
— lock multiple platforms to an orientation
Sensors
useAccelerometer
— track changes in accelerationuseBarometer
— track changes in air pressureuseDeviceMotion
— track device motion and orientationuseGyroscope
— track changes in rotationuseMagnetometer
— track changes in the magnetic fielduseMagnetometerUncalibrated
— track changes in the magnetic field using raw datausePedometer
— track user step countusePedometerHistory
— get historical step count between two dates
Store Review
useStoreReviewHasAction
— determines if the store review can perform any actionuseStoreReviewIsAvailable
— determines if the platform has the capabilities to use request reviewuseStoreReviewRequest
— request a store review if available
WebBrowser
useBrowsers
— Get a list of Android browsersuseWarmBrowser
— Warm up and cool down and android browser
Usage
You can import these hooks by installing the @use-expo/<group>
packages.
import { useBrightness } from '@use-expo/brightness';
import { usePermissions } from '@use-expo/permissions';
Contributors
This project follows the all-contributors specification (emoji key). Contributions of any kind welcome!
Cedric van Putten |
Evan Bacon |
Robbie op de Weegh |
Jakub Biesiada |
with