{"id":15628280,"url":"https://github.com/bycedric/use-expo","last_synced_at":"2025-04-04T12:06:26.450Z","repository":{"id":34923929,"uuid":"190869261","full_name":"byCedric/use-expo","owner":"byCedric","description":"Complementary hooks for Expo","archived":false,"fork":false,"pushed_at":"2022-12-10T14:46:36.000Z","size":6131,"stargazers_count":315,"open_issues_count":37,"forks_count":13,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T11:08:35.262Z","etag":null,"topics":["expo","hooks","react-native"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/byCedric.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-08T09:26:56.000Z","updated_at":"2025-02-16T06:54:27.000Z","dependencies_parsed_at":"2023-01-15T10:45:24.933Z","dependency_job_id":null,"html_url":"https://github.com/byCedric/use-expo","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byCedric%2Fuse-expo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byCedric%2Fuse-expo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byCedric%2Fuse-expo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byCedric%2Fuse-expo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byCedric","download_url":"https://codeload.github.com/byCedric/use-expo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174415,"owners_count":20896078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["expo","hooks","react-native"],"created_at":"2024-10-03T10:21:45.754Z","updated_at":"2025-04-04T12:06:26.418Z","avatar_url":"https://github.com/byCedric.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003eexpo hooks\u003c/h1\u003e\n    \u003cp\u003eComplementary hooks for \u003ca href=\"https://github.com/expo/expo\"\u003eExpo\u003c/a\u003e\u003c/p\u003e\n    \u003csup\u003e\n        \u003ca href=\"https://github.com/bycedric/use-expo#contributors\"\u003e\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n            \u003cimg src=\"https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square\" alt=\"contributors\" /\u003e\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n        \u003c/a\u003e\n        \u003ca href=\"https://github.com/bycedric/use-expo/actions\"\u003e\n            \u003cimg src=\"https://img.shields.io/github/workflow/status/byCedric/use-expo/Packages/master.svg?style=flat-square\" alt=\"builds\" /\u003e\n        \u003c/a\u003e\n        \u003ca href=\"https://exp.host/@bycedric/use-expo\"\u003e\n            \u003cimg src=\"https://img.shields.io/badge/demo-expo.io-lightgrey.svg?style=flat-square\" alt=\"demo\" /\u003e\n        \u003c/a\u003e\n    \u003c/sup\u003e\n    \u003cbr /\u003e\n    \u003cp align=\"center\"\u003e\n        \u003ca href=\"https://github.com/byCedric/use-expo#usage\"\u003e\u003cb\u003eUsage\u003c/b\u003e\u003c/a\u003e\n        \u0026nbsp;\u0026nbsp;\u0026mdash;\u0026nbsp;\u0026nbsp;\n        \u003ca href=\"https://github.com/byCedric/use-expo/blob/master/CHANGELOG.md\"\u003e\u003cb\u003eChangelog\u003c/b\u003e\u003c/a\u003e\n    \u003c/p\u003e\n    \u003cbr /\u003e\n\u003c/div\u003e\n\n### [Application](./packages/application)\n\n- [`useApplicationInstallTime`](./packages/application/docs/use-application-install-time.md) \u0026nbsp;\u0026mdash;\u0026nbsp; get the time the app was installed on the device\n- [`useApplicationAndroidInstallReferrer`](./packages/application/docs/use-application-android-install-referrer.md) \u0026nbsp;\u0026mdash;\u0026nbsp; get the referrer URL of the installed app\n- [`useApplicationAndroidLastUpdateTime`](./packages/application/docs/use-application-android-last-update-time.md) \u0026nbsp;\u0026mdash;\u0026nbsp; get the time the app was last updated via the Google Play Store\n- [`useApplicationIosIdForVendor`](./packages/application/docs/use-application-ios-id-for-vendor.md) \u0026nbsp;\u0026mdash;\u0026nbsp; get the referrer URL of the installed app\n\n### [Battery](./packages/battery)\n\n- [`useBattery`](./packages/battery/docs/use-battery.md) \u0026nbsp;\u0026mdash;\u0026nbsp; get the battery level, state and power mode\n- [`useBatteryLevel`](./packages/battery/docs/use-battery-level.md) \u0026nbsp;\u0026mdash;\u0026nbsp; get or track the battery level or percentage remaining\n- [`useBatteryLowPowerMode`](./packages/battery/docs/use-battery-low-power-mode.md) \u0026nbsp;\u0026mdash;\u0026nbsp; get or track the battery low power mode\n- [`useBatteryState`](./packages/battery/docs/use-battery-state.md) \u0026nbsp;\u0026mdash;\u0026nbsp; get or track the battery (charging) state\n\n### [Brightness](./packages/brightness)\n\n- [`useBrightness`](./packages/brightness/docs/use-brightness.md) \u0026nbsp;\u0026mdash;\u0026nbsp; change or track the screen brightness\n- [`useSystemBrightness`](./packages/brightness/docs/use-system-brightness.md) \u0026nbsp;\u0026mdash;\u0026nbsp; change or track the system screen brightness\n- [`useSystemBrightnessMode`](./packages/brightness/docs/use-system-brightness-mode.md) \u0026nbsp;\u0026mdash;\u0026nbsp; change or track the system brightness mode\n\n### [Font](./packages/font)\n\n- [`useFonts`](./packages/font/docs/use-fonts.md) \u0026nbsp;\u0026mdash;\u0026nbsp; load a map of fonts\n\n### [Permissions](./packages/permissions)\n\n- [`usePermissions`](./packages/permissions/docs/use-permissions.md) \u0026nbsp;\u0026mdash;\u0026nbsp; get or ask permissions\n\n### [Screen Orientation](./packages/screen-orientation)\n\n- [`useScreenOrientation`](./packages/screen-orientation/docs/use-screen-orientation.md) \u0026nbsp;\u0026mdash;\u0026nbsp; track changes in screen orientation\n- [`useScreenOrientationLock`](./packages/screen-orientation/docs/use-screen-orientation-lock.md) \u0026nbsp;\u0026mdash;\u0026nbsp; lock the screen to an orientation\n- [`useScreenOrientationPlatformLock`](./packages/screen-orientation/docs/use-screen-orientation-platform-lock.md) \u0026nbsp;\u0026mdash;\u0026nbsp; lock multiple platforms to an orientation\n\n### [Sensors](./packages/sensors)\n\n- [`useAccelerometer`](./packages/sensors/docs/use-accelerometer.md) \u0026nbsp;\u0026mdash;\u0026nbsp; track changes in acceleration\n- [`useBarometer`](./packages/sensors/docs/use-barometer.md) \u0026nbsp;\u0026mdash;\u0026nbsp; track changes in air pressure\n- [`useDeviceMotion`](./packages/sensors/docs/use-device-motion.md) \u0026nbsp;\u0026mdash;\u0026nbsp; track device motion and orientation\n- [`useGyroscope`](./packages/sensors/docs/use-gyroscope.md) \u0026nbsp;\u0026mdash;\u0026nbsp; track changes in rotation\n- [`useMagnetometer`](./packages/sensors/docs/use-magnetometer.md) \u0026nbsp;\u0026mdash;\u0026nbsp; track changes in the magnetic field\n- [`useMagnetometerUncalibrated`](./packages/sensors/docs/use-magnetometer.md) \u0026nbsp;\u0026mdash;\u0026nbsp; track changes in the magnetic field using raw data\n- [`usePedometer`](./packages/sensors/docs/use-pedometer.md) \u0026nbsp;\u0026mdash;\u0026nbsp; track user step count\n- [`usePedometerHistory`](./packages/sensors/docs/use-pedometer-history.md) \u0026nbsp;\u0026mdash;\u0026nbsp; get historical step count between two dates\n\n### [Store Review](./packages/store-review)\n\n- [`useStoreReviewHasAction`](./packages/store-review/docs/use-store-review-has-action.md) \u0026nbsp;\u0026mdash;\u0026nbsp; determines if the store review can perform any action\n- [`useStoreReviewIsAvailable`](./packages/store-review/docs/use-store-review-is-available.md) \u0026nbsp;\u0026mdash;\u0026nbsp; determines if the platform has the capabilities to use request review\n- [`useStoreReviewRequest`](./packages/store-review/docs/use-store-review-request.md) \u0026nbsp;\u0026mdash;\u0026nbsp; request a store review if available\n\n### [WebBrowser](./packages/web-browser)\n\n- [`useBrowsers`](./packages/web-browser/docs/use-browsers.md) \u0026nbsp;\u0026mdash;\u0026nbsp; Get a list of Android browsers\n- [`useWarmBrowser`](./packages/web-browser/docs/use-warm-browser.md) \u0026nbsp;\u0026mdash;\u0026nbsp; Warm up and cool down and android browser\n\n\n## Usage\n\nYou can import these hooks by installing the `@use-expo/\u003cgroup\u003e` packages.\n\n```js\nimport { useBrightness } from '@use-expo/brightness';\nimport { usePermissions } from '@use-expo/permissions';\n```\n\n\n## Contributors\n\nThis 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!\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://bycedric.com\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/1203991?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eCedric van Putten\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/byCedric/use-expo/commits?author=byCedric\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/byCedric/use-expo/commits?author=byCedric\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#example-byCedric\" title=\"Examples\"\u003e💡\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://twitter.com/baconbrix\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/9664363?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eEvan Bacon\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/byCedric/use-expo/commits?author=EvanBacon\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/byCedric/use-expo/commits?author=EvanBacon\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/rodw1995\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/3266698?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eRobbie op de Weegh\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/byCedric/use-expo/commits?author=rodw1995\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/byCedric/use-expo/commits?author=rodw1995\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://jb1905.github.io/portfolio/\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/28870390?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJakub Biesiada\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/byCedric/use-expo/issues?q=author%3AJB1905\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"https://github.com/byCedric/use-expo/commits?author=JB1905\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\n\n\u003cdiv align=\"center\"\u003e\n    \u003cbr /\u003e\n    with :heart: \u003cstrong\u003ebyCedric\u003c/strong\u003e\n    \u003cbr /\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbycedric%2Fuse-expo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbycedric%2Fuse-expo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbycedric%2Fuse-expo/lists"}