Complementary hooks for Expo
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 appuseBattery
— 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) stateuseBrightness
— change or track the screen brightnessuseSystemBrightness
— change or track the system screen brightnessuseSystemBrightnessMode
— change or track the system brightness modeuseFonts
— load a map of fontsusePermissions
— get or ask permissionsuseScreenOrientation
— track changes in screen orientationuseScreenOrientationLock
— lock the screen to an orientationuseScreenOrientationPlatformLock
— lock multiple platforms to an orientationuseAccelerometer
— 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 datesuseStoreReviewHasAction
— 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 availableuseBrowsers
— Get a list of Android browsersuseWarmBrowser
— Warm up and cool down and android browserYou can import these hooks by installing the @use-expo/<group>
packages.
import { useBrightness } from '@use-expo/brightness';
import { usePermissions } from '@use-expo/permissions';
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 🐛 💻 |