Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bycedric/use-expo

Complementary hooks for Expo
https://github.com/bycedric/use-expo

expo hooks react-native

Last synced: 14 days ago
JSON representation

Complementary hooks for Expo

Awesome Lists containing this project

README

        


expo hooks


Complementary hooks for Expo



contributors



builds


demo





Usage
  —  
Changelog




### [Application](./packages/application)

- [`useApplicationInstallTime`](./packages/application/docs/use-application-install-time.md)  —  get the time the app was installed on the device
- [`useApplicationAndroidInstallReferrer`](./packages/application/docs/use-application-android-install-referrer.md)  —  get the referrer URL of the installed app
- [`useApplicationAndroidLastUpdateTime`](./packages/application/docs/use-application-android-last-update-time.md)  —  get the time the app was last updated via the Google Play Store
- [`useApplicationIosIdForVendor`](./packages/application/docs/use-application-ios-id-for-vendor.md)  —  get the referrer URL of the installed app

### [Battery](./packages/battery)

- [`useBattery`](./packages/battery/docs/use-battery.md)  —  get the battery level, state and power mode
- [`useBatteryLevel`](./packages/battery/docs/use-battery-level.md)  —  get or track the battery level or percentage remaining
- [`useBatteryLowPowerMode`](./packages/battery/docs/use-battery-low-power-mode.md)  —  get or track the battery low power mode
- [`useBatteryState`](./packages/battery/docs/use-battery-state.md)  —  get or track the battery (charging) state

### [Brightness](./packages/brightness)

- [`useBrightness`](./packages/brightness/docs/use-brightness.md)  —  change or track the screen brightness
- [`useSystemBrightness`](./packages/brightness/docs/use-system-brightness.md)  —  change or track the system screen brightness
- [`useSystemBrightnessMode`](./packages/brightness/docs/use-system-brightness-mode.md)  —  change or track the system brightness mode

### [Font](./packages/font)

- [`useFonts`](./packages/font/docs/use-fonts.md)  —  load a map of fonts

### [Permissions](./packages/permissions)

- [`usePermissions`](./packages/permissions/docs/use-permissions.md)  —  get or ask permissions

### [Screen Orientation](./packages/screen-orientation)

- [`useScreenOrientation`](./packages/screen-orientation/docs/use-screen-orientation.md)  —  track changes in screen orientation
- [`useScreenOrientationLock`](./packages/screen-orientation/docs/use-screen-orientation-lock.md)  —  lock the screen to an orientation
- [`useScreenOrientationPlatformLock`](./packages/screen-orientation/docs/use-screen-orientation-platform-lock.md)  —  lock multiple platforms to an orientation

### [Sensors](./packages/sensors)

- [`useAccelerometer`](./packages/sensors/docs/use-accelerometer.md)  —  track changes in acceleration
- [`useBarometer`](./packages/sensors/docs/use-barometer.md)  —  track changes in air pressure
- [`useDeviceMotion`](./packages/sensors/docs/use-device-motion.md)  —  track device motion and orientation
- [`useGyroscope`](./packages/sensors/docs/use-gyroscope.md)  —  track changes in rotation
- [`useMagnetometer`](./packages/sensors/docs/use-magnetometer.md)  —  track changes in the magnetic field
- [`useMagnetometerUncalibrated`](./packages/sensors/docs/use-magnetometer.md)  —  track changes in the magnetic field using raw data
- [`usePedometer`](./packages/sensors/docs/use-pedometer.md)  —  track user step count
- [`usePedometerHistory`](./packages/sensors/docs/use-pedometer-history.md)  —  get historical step count between two dates

### [Store Review](./packages/store-review)

- [`useStoreReviewHasAction`](./packages/store-review/docs/use-store-review-has-action.md)  —  determines if the store review can perform any action
- [`useStoreReviewIsAvailable`](./packages/store-review/docs/use-store-review-is-available.md)  —  determines if the platform has the capabilities to use request review
- [`useStoreReviewRequest`](./packages/store-review/docs/use-store-review-request.md)  —  request a store review if available

### [WebBrowser](./packages/web-browser)

- [`useBrowsers`](./packages/web-browser/docs/use-browsers.md)  —  Get a list of Android browsers
- [`useWarmBrowser`](./packages/web-browser/docs/use-warm-browser.md)  —  Warm up and cool down and android browser

## Usage

You can import these hooks by installing the `@use-expo/` packages.

```js
import { useBrightness } from '@use-expo/brightness';
import { usePermissions } from '@use-expo/permissions';
```

## Contributors

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification ([emoji key](https://allcontributors.org/docs/en/emoji-key)). Contributions of any kind welcome!



Cedric van Putten

💻 📖 💡

Evan Bacon

💻 📖

Robbie op de Weegh

💻 📖

Jakub Biesiada

🐛 💻




with :heart: byCedric