{"_id":"@autorelease/hooks","_rev":"6-0f760df69b7fe8238f5afe190e7d1b37","name":"@autorelease/hooks","dist-tags":{"latest":"2.4.10"},"versions":{"2.4.5":{"name":"@autorelease/hooks","version":"2.4.5","author":{"name":"Nader Dabit"},"license":"ISC","_id":"@autorelease/hooks@2.4.5","maintainers":[{"name":"alisowski","email":"lisowski54@gmail.com"},{"name":"adierkens","email":"adam@dierkens.com"}],"homepage":"https://github.com/hipstersmoothie/hooks-test#readme","bugs":{"url":"https://github.com/hipstersmoothie/hooks-test/issues"},"auto":{"plugins":["npm","all-contributors","first-time-contributor","released"],"noVersionPrefix":true},"dist":{"shasum":"56708b0b6f522531bed43c1d4772734c026da65e","tarball":"https://registry.npmjs.org/@autorelease/hooks/-/hooks-2.4.5.tgz","fileCount":52,"integrity":"sha512-9vfFe2t6bBmN3A4oBC7yXlTG/ymKoSFSgWfGT2OZZukLNYOw9GPL0sBKTQaNzRE+bhsOU0jhw88Y3MyPpSiC5Q==","signatures":[{"sig":"MEYCIQD9SAfFjVPQZpw+U7nGjYmX8D3xBF9eFs3rVBL4opjdSgIhAPg4ZxZtwA+O3lCCWCZJ5G9cDzQLEbC/asLLY44/ycz7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":44816,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUWawCRA9TVsSAnZWagAARzAP/iohwSov68ptKKbltKu6\niwWvnGwt+E6o/r35DVRyMIfAZibHGng+d1UEBAgvATWvBLOpF3+VjMdXXshj\nnF0Zknl4tav45plKp2EldzC6zGIrMTTm6qmchIhQ86L6jkUQudOb7vo2HyBy\nHKNWEdqAkYic22YDeLqLXtsm6uLdZDsc5njEmjtZAP2Uozrns4Toaw54eupj\nB3iXrzoW1g7YuY57lyyk2GnHCu6V6bED2cQ9Xhh+5V2qf26Lce006WyTNJda\njUbdc4VdX3t41aWKMqDjf1SV00giOW5hH4bFuzULRm13Yr608hJ3hJD/pDVI\n7FJDvmPEQf4jOPkvTJTHodhYEbiiYm3pdtFLc4CmqE2OaqBP04Hh+bNt9FBF\nGhdk766smgPgCVNJtXh0lKIRMMQ3L3IlB1XhAdk8kptalUlCm//z8ESzpjEI\nNo9eegnw2yIK1QQm/+KZivLUAcFbsD61k64yWbEdtyu37rnv/XU3W7g3+bNy\nxOtRXWajRFJGGftGKNZm67hE6wa7Mh2C13KrTqV3FFI16HOiVUrhQz1k1Lt+\nLKjGJDrow6tE0ambtTlxjBDlVuRJylUe0iW4EkZqIgPrzKpHf7lAKc4dfOCw\nKPY/3zP3ulHtGlIOeuQ5/8BZtg+3mQM9Dvt1dz1YbtP3JODvESU/MPi4GrC6\nx/l5\r\n=sjMh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"1fb036073649d0f2359b6ec99c61afdd5fbb7c91","scripts":{"lint":"eslint src/**/*.ts","test":"jest","build":"tsc","release":"auto shipit"},"_npmUser":{"name":"alisowski","email":"lisowski54@gmail.com"},"repository":{"url":"git://github.com/hipstersmoothie/hooks-test.git","type":"git"},"_npmVersion":"6.13.7","description":"![React Native Hooks](reactnativehooks.jpg)","directories":{},"_nodeVersion":"10.18.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"auto":"^9.12.0","jest":"^25.1.0","react":"^16.12.0","eslint":"^6.8.0","ts-jest":"^25.2.1","prettier":"^1.19.1","typescript":"^3.6.4","@types/jest":"^25.1.3","@types/react":"^16.9.10","react-native":"^0.61.5","@types/react-native":"^0.61.0","react-test-renderer":"^16.12.0","all-contributors-cli":"^6.13.0","eslint-plugin-prettier":"^3.1.2","@auto-it/all-contributors":"^9.12.0","@testing-library/react-hooks":"^3.2.1","@testing-library/react-native":"^5.0.3","@auto-it/first-time-contributor":"^9.12.0","@react-native-community/eslint-config":"^0.0.7"},"peerDependencies":{"react":">=16.8.0","react-native":">=0.59"},"_npmOperationalInternal":{"tmp":"tmp/hooks_2.4.5_1582393007895_0.11533304726549232","host":"s3://npm-registry-packages"}},"2.4.8":{"name":"@autorelease/hooks","version":"2.4.8","author":{"name":"Nader Dabit"},"license":"ISC","_id":"@autorelease/hooks@2.4.8","maintainers":[{"name":"adierkens","email":"adam@dierkens.com"},{"name":"alisowski","email":"lisowski54@gmail.com"}],"homepage":"https://github.com/hipstersmoothie/hooks-test#readme","bugs":{"url":"https://github.com/hipstersmoothie/hooks-test/issues"},"auto":{"plugins":["npm","all-contributors","first-time-contributor","released"],"noVersionPrefix":true},"dist":{"shasum":"4d81f964a0e875162e7e78d614bcf34a533b7ccd","tarball":"https://registry.npmjs.org/@autorelease/hooks/-/hooks-2.4.8.tgz","fileCount":52,"integrity":"sha512-0N6iXj0ofEnpFFRM6QNpvpw3R4nGcvidn+1W1nFBBm67qxyrBlYHe0XUEx29yODj4spGZro2mCpNLXYokEzvMA==","signatures":[{"sig":"MEUCIAid+BqIrJcOopZRGgoJy8BRE3RD1b+TSVNFm9ljX/J+AiEAoVid53pA8tVHid6x5PVTFEOFU0U0/cAJB3rjTC7TqEI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUWffCRA9TVsSAnZWagAAA24P/1kqO5GyhMskHzs/5Ri0\nQ2Iu8NOeprJ9+po+pKI30UqG7ME41YqDkUqSS3Hstlw2Oes7I2Mz1hYWM3/9\nIJKxfIRXcMgeCRn/tBh+3K21xfvPJgdUwilv7d8p4q7Nc7uuSepGRYCR6wIC\nbD6WptUfrQwKRvBXf4tmUaRtdWxr5Bmjk1aGUlB1PA3PLqPVVFIylr5s/D7+\nI57HnaXYfL9OmDANBr0bYMcGJl1TVDGxJB2/VpDtFe3rQKUwrEeqU7L8eFeT\nOET1IgaGy3GAY/ov0j2wI3nvomHOqS5hvHeMtJQzf6fCjV80sN7Xdf+y31yO\nm/iGtw9EwAs8NejGJ72B7zjS5+jDBnLFKbiEc8nhM2Y7SAYhpl3Roa7d442J\nCWSDnoVVrv7ZqhgOduAjIJYLmIgG04WOU9H5NMi2pPqozVpQf/iMY2+vWtml\npcBXpMpYxMdW9DwBXUheQe2Cxo8N8PP9oTZa4QTPsbQLOuN2vDKt2iyJVumL\npOeIo+6DJhnbU/sSGzPrQ6ba9ANxJIaBBA0oqAfsIcxoq47U+GZPh2jUBqmS\nV+buWWazyxFvv4ttmOUGPxLop+nDd+vRZpaJEdV14qIhxLXLJkGtsrPD6rip\njV01XLOE6gl+Br9tVE5BHIp8ejnmRaMOnt6KaM846WoYJZYJPSyCjeBM7ibq\nTXJG\r\n=+A3A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"be095d408a3018d931d9590aaf1bdb50f26ec910","scripts":{"lint":"eslint src/**/*.ts","test":"jest","build":"tsc","release":"auto shipit"},"_npmUser":{"name":"alisowski","email":"lisowski54@gmail.com"},"repository":{"url":"git://github.com/hipstersmoothie/hooks-test.git","type":"git"},"_npmVersion":"6.13.7","description":"![React Native Hooks](reactnativehooks.jpg)","directories":{},"_nodeVersion":"10.18.1","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"auto":"^9.12.0","jest":"^25.1.0","react":"^16.12.0","eslint":"^6.8.0","ts-jest":"^25.2.1","prettier":"^1.19.1","typescript":"^3.6.4","@types/jest":"^25.1.3","@types/react":"^16.9.10","react-native":"^0.61.5","@types/react-native":"^0.61.0","react-test-renderer":"^16.12.0","all-contributors-cli":"^6.13.0","eslint-plugin-prettier":"^3.1.2","@auto-it/all-contributors":"^9.12.0","@testing-library/react-hooks":"^3.2.1","@testing-library/react-native":"^5.0.3","@auto-it/first-time-contributor":"^9.12.0","@react-native-community/eslint-config":"^0.0.7"},"peerDependencies":{"react":">=16.8.0","react-native":">=0.59"},"_npmOperationalInternal":{"tmp":"tmp/hooks_2.4.8_1582393311309_0.8665590799811544","host":"s3://npm-registry-packages"}},"2.4.9":{"name":"@autorelease/hooks","version":"2.4.9","author":{"name":"Nader Dabit"},"license":"ISC","_id":"@autorelease/hooks@2.4.9","maintainers":[{"name":"adierkens","email":"adam@dierkens.com"},{"name":"alisowski","email":"lisowski54@gmail.com"}],"homepage":"https://github.com/hipstersmoothie/hooks-test#readme","bugs":{"url":"https://github.com/hipstersmoothie/hooks-test/issues"},"auto":{"plugins":["npm","all-contributors","first-time-contributor","released"],"noVersionPrefix":true},"dist":{"shasum":"a03042eccd15383f9eaa9447e3a1a73475956190","tarball":"https://registry.npmjs.org/@autorelease/hooks/-/hooks-2.4.9.tgz","fileCount":52,"integrity":"sha512-s3IlgKoI2fcIyrB94pmnvwrnf3keL9jGX+yigCSpAF2MVW/94Tw63MNrYkMA3Zz+PD3T2GTK7MgneKX3y+4riQ==","signatures":[{"sig":"MEUCIQDOUHSEmzEo7RJ+erKOGDmCKfx0MWrThYDfUgCXcJ+wIwIgGeSmag5pI2B9JK5p/JYiiuZPJmqbnikFaYbFXqKyE5Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48894,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUWm5CRA9TVsSAnZWagAA5ogQAJtUaqKO/sqMhiSXJFFo\n2Z4+zf8YkjnmWt3kXzrjjUap+biRsY5XWPEKJnhcOpVvfXtN1nzhbHUmwIZt\nrbcwYEj/4o0Zd3dcNdU/03PO9mb9xeHwQcfdG/CK1Ko6DDIG2vdxPed0hzfT\n0YreGIhtrjgQHzT0DqbvLQZ6ZJ7kIbVJkZdjfxTl99ONoEBeuLUQEJoXCDxp\nBzsrlk0dH1z0D5hyNiNNVzl3pctg575AJgY5uvpGKKptHZ6YLoqS9jVh+5My\n8y9Y+EQuASJQK75tY/gS71IHEP6egAjHPjwJ1tfGTptkcxTAZe+ehDSoJ5ld\ndj+dtc1CX2948oUBt+++9cfDEeREAEAYBaks0C1DuoPqotAOmm2KMTNs4NF0\nH213O9GvTPIdo/k4nA5QsIltghuOv32nA4CExR7O8eHzwJMhJSuCYw0VfGaf\nsaxzM/deSIhYwPADwcjki0vkYG7ACdkmQiNQIylOPau3DIrQUWkx6tqb/YAX\n3Nxlh1viAhuOI8EV7RXDdTvCLn3jbgX2pl7IBdTPrEQOyj6yh0y+sfPt7z5O\ndTZFo6AUzUFz5RKVWwDYd4DBioedceAQde7fzLruhXMVVnJVbP22I+lZJ8gL\nMvK7O9UfB7d0JiCl+J/LUvc+3uNgq6Q2MeSsTroOl3pQGULo3O1sAHL7yhvK\nQDvN\r\n=BVbL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"15569d06ec7e1a9d3a7027b14aa8ccdefe9d95c1","scripts":{"lint":"eslint src/**/*.ts","test":"jest","build":"tsc","release":"auto shipit"},"_npmUser":{"name":"alisowski","email":"lisowski54@gmail.com"},"repository":{"url":"git://github.com/hipstersmoothie/hooks-test.git","type":"git"},"_npmVersion":"6.13.7","description":"![React Native Hooks](reactnativehooks.jpg)","directories":{},"_nodeVersion":"10.18.1","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"auto":"^9.12.0","jest":"^25.1.0","react":"^16.12.0","eslint":"^6.8.0","ts-jest":"^25.2.1","prettier":"^1.19.1","typescript":"^3.6.4","@types/jest":"^25.1.3","@types/react":"^16.9.10","react-native":"^0.61.5","@types/react-native":"^0.61.0","react-test-renderer":"^16.12.0","all-contributors-cli":"^6.13.0","eslint-plugin-prettier":"^3.1.2","@auto-it/all-contributors":"^9.12.0","@testing-library/react-hooks":"^3.2.1","@testing-library/react-native":"^5.0.3","@auto-it/first-time-contributor":"^9.12.0","@react-native-community/eslint-config":"^0.0.7"},"peerDependencies":{"react":">=16.8.0","react-native":">=0.59"},"_npmOperationalInternal":{"tmp":"tmp/hooks_2.4.9_1582393785192_0.3008208366253593","host":"s3://npm-registry-packages"}},"2.4.10":{"name":"@autorelease/hooks","version":"2.4.10","author":{"name":"Nader Dabit"},"license":"ISC","_id":"@autorelease/hooks@2.4.10","maintainers":[{"name":"adierkens","email":"adam@dierkens.com"},{"name":"alisowski","email":"lisowski54@gmail.com"}],"homepage":"https://github.com/hipstersmoothie/hooks-test#readme","bugs":{"url":"https://github.com/hipstersmoothie/hooks-test/issues"},"auto":{"plugins":["npm","all-contributors","first-time-contributor","released"],"noVersionPrefix":true},"dist":{"shasum":"aeb205f0c6af862158b7940b630ee78e2cbb8474","tarball":"https://registry.npmjs.org/@autorelease/hooks/-/hooks-2.4.10.tgz","fileCount":52,"integrity":"sha512-OWW01bTAPbrW2IXnRbHCWow06s7tMkPy0WVaV50COk2CpogTu7kUxE8nVxdCfZGtg9SPm8dyotKCJu+rTFJLHQ==","signatures":[{"sig":"MEUCIEkr39XYXbAB0qe9lg+QTFLU2gvT1M3iGHEm19hdpJuRAiEA0qp877vuCjjyCXosR2t3gWLMuDc5M2SDjBwO/0njQS4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUWtgCRA9TVsSAnZWagAAuHcQAJsG3Blz80CWcRNjuZzn\n4aTvBYy7/SOUeWwGSRm3Tr8gIl7FyQPOBaQfUpkHcABqcdwDHhHwDzoUn7+7\npmWaDQI4cDCXk1otJRR5caH44dtaXI6OEJH3sy+I7B8czVJRAY/wjC3ixYh5\nBwhz6qRZ3INQDqRL4ocLkvLEDj8LyDwZczyyn/2Cvzy/Zg95P0Bsyan9nGzm\nRb6zytRMSBnbkJaT1QgWkeJzFIfZ9ddIaFgwJEON9xvcRt3ED9AoQAGbdIq8\nhh7DPPBnQJtlUiH0sEE/d1GHpLj3wBfuLaeJ6eDilcLjNpRyaeOfHOZMf1gU\n20N11c8T35WHtjAW6biHIJNEz3AJeKOKjinLmOpkjQcMpIoPSBWtJX5QOfPt\nZUgzkkY6D0+qTcFY3sYS4IZAtvbVkTz2zXHVTqy3mzAnYhtzTvHmoCzX1+Jz\nYwf9OhlFYPGFk0JTO/ivYoVrwnv2JFyWSz8UydPFLpQAEIDtNsrHAg8GF9PN\n0DayL/4Zx6Fx3ruelFntiXR3pN/0oNMDesbE5DWS4+gOVXIJ7kDmpRL7rIuI\nmn7ToSh/JvqvOUeqPRIXO2PejJmycGmQoVrYBjfxAiTZMquU9U/OFj5DcKUH\nsPy0YYhgiEGMtGfhAsiEFPdKviKiNEK2RNugCdvPiAm2preVc0fl6R1HcRUI\nBoK7\r\n=lMpi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"c731d16a404066c1068307f16630e7ff073bebf6","scripts":{"lint":"eslint src/**/*.ts","test":"jest","build":"tsc","release":"auto shipit"},"_npmUser":{"name":"alisowski","email":"lisowski54@gmail.com"},"repository":{"url":"git://github.com/hipstersmoothie/hooks-test.git","type":"git"},"_npmVersion":"6.13.7","description":"![React Native Hooks](reactnativehooks.jpg)","directories":{},"_nodeVersion":"10.18.1","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"auto":"^9.12.0","jest":"^25.1.0","react":"^16.12.0","eslint":"^6.8.0","ts-jest":"^25.2.1","prettier":"^1.19.1","typescript":"^3.6.4","@types/jest":"^25.1.3","@types/react":"^16.9.10","react-native":"^0.61.5","@types/react-native":"^0.61.0","react-test-renderer":"^16.12.0","all-contributors-cli":"^6.13.0","eslint-plugin-prettier":"^3.1.2","@auto-it/all-contributors":"^9.12.0","@testing-library/react-hooks":"^3.2.1","@testing-library/react-native":"^5.0.3","@auto-it/first-time-contributor":"^9.12.0","@react-native-community/eslint-config":"^0.0.7"},"peerDependencies":{"react":">=16.8.0","react-native":">=0.59"},"_npmOperationalInternal":{"tmp":"tmp/hooks_2.4.10_1582394207776_0.2456543077077673","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-02-22T17:36:47.682Z","modified":"2026-07-24T21:32:07.282Z","2.4.5":"2020-02-22T17:36:48.034Z","2.4.8":"2020-02-22T17:41:51.470Z","2.4.9":"2020-02-22T17:49:45.360Z","2.4.10":"2020-02-22T17:56:48.096Z"},"bugs":{"url":"https://github.com/hipstersmoothie/hooks-test/issues"},"author":{"name":"Nader Dabit"},"license":"ISC","homepage":"https://github.com/hipstersmoothie/hooks-test#readme","repository":{"url":"git://github.com/hipstersmoothie/hooks-test.git","type":"git"},"description":"![React Native Hooks](reactnativehooks.jpg)","maintainers":[{"email":"adam@dierkens.com","name":"adierkens"},{"email":"lisowski54@gmail.com","name":"alisowski"},{"email":"ketan@ketanreddy.com","name":"ketanreddy"}],"readme":"![React Native Hooks](reactnativehooks.jpg)\n\n## React Native Hooks\n\n[![Version][version-badge]][package]\n\nReact Native APIs turned into React Hooks allowing you to access asynchronous APIs directly in your functional components.\n\n> Note: You must use React Native >= 0.59.0\n\n### Installation with npm\n\n```sh\nnpm install @react-native-community/hooks\n```\n\nInstallation with yarn\n```sh\nyarn add @react-native-community/hooks\n```\n\n## API\n- [useAccessibilityInfo](https://github.com/react-native-community/hooks#useaccessibilityinfo)\n- [useAppState](https://github.com/react-native-community/hooks#useappstate)\n- [useBackHandler](https://github.com/react-native-community/hooks#usebackhandler)\n- [useCameraRoll](https://github.com/react-native-community/hooks#usecameraroll)\n- [useClipboard](https://github.com/react-native-community/hooks#useclipboard)\n- [useDimensions](https://github.com/react-native-community/hooks#usedimensions)\n- [useKeyboard](https://github.com/react-native-community/hooks#usekeyboard)\n- [useInteractionManager](https://github.com/react-native-community/hooks#useinteractionmanager)\n- [useDeviceOrientation](https://github.com/react-native-community/hooks#usedeviceorientation)\n- [useLayout](https://github.com/react-native-community/hooks#uselayout)\n\n### `useAccessibilityInfo`\n\n```js\nimport { useAccessibilityInfo } from '@react-native-community/hooks'\n\nconst isScreenReaderEnabled = useAccessibilityInfo()\n```\n\n### `useAppState`\n\nAppState will change between one of 'active', 'background', or (iOS) 'inactive' when the app is closed or put into the background.\n\n```js\nimport { useAppState } from '@react-native-community/hooks'\n\nconst currentAppState = useAppState()\n```\n\n### `useBackHandler`\n\n```js\nimport { useBackHandler } from '@react-native-community/hooks'\n\nuseBackHandler(() => {\n  if (shouldBeHandledHere) {\n    // handle it\n    return true\n  }\n  // let the default thing happen\n  return false\n})\n```\n\n### `useCameraRoll`\n\n```js\nimport { useCameraRoll } from '@react-native-community/hooks'\n\nconst [photos, getPhotos, saveToCameraRoll] = useCameraRoll()\n\n{\n  photos.map((photo, index) => /* render photos */)\n}\n\n<Button title='Get Photos' onPress={() => getPhotos()}>Get Photos</Button>\n```\n\n### `useClipboard`\n\n```js\nimport { useClipboard } from '@react-native-community/hooks'\n\nconst [data, setString] = useClipboard()\n\n<Text>{data}</Text>\n\n<Button title='Update Clipboard' onPress={() => setString('new clipboard data')}>Set Clipboard</Button>\n```\n\n### `useDimensions`\n\nGets dimensions and sets up a listener that will change the dimensions if the user changes device orientation.\n\n```js\nimport { useDimensions } from '@react-native-community/hooks'\n\nconst dimensions = useDimensions()\n// or\nconst { width, height } = useDimensions().window\n// or\nconst screen = useDimensions().screen\n```\n\n### `useKeyboard`\n\n```js\nimport { useKeyboard } from '@react-native-community/hooks'\n\nconst keyboard = useKeyboard()\n\nconsole.log('keyboard isKeyboardShow: ', keyboard.isKeyboardShow)\nconsole.log('keyboard keyboardHeight: ', keyboard.keyboardHeight)\n```\n\n### `useInteractionManager`\n\n```js\nimport { useInteractionManager } from '@react-native-community/hooks'\n\nconst interactionReady = useInteractionManager()\n\nconsole.log('interaction ready: ', interactionReady)\n```\n\n### `useDeviceOrientation`\n\n```js\nimport { useDeviceOrientation } from '@react-native-community/hooks'\n\nconst orientation = useDeviceOrientation()\n\nconsole.log('is orientation portrait: ', orientation.portrait)\nconsole.log('is orientation landscape: ', orientation.landscape)\n```\n\n### `useLayout`\n\n```js\nimport { useLayout } from '@react-native-community/hooks'\n\nconst { onLayout, ...layout } = useLayout()\n\nconsole.log('layout: ', layout)\n\n<View onLayout={onLayout} style={{width: 200, height: 200, marginTop: 30}} />\n```\n\n[version-badge]: https://img.shields.io/npm/v/@react-native-community/hooks.svg?style=flat-square\n[package]: https://www.npmjs.com/package/@react-native-community/hooks\n\n\ntest this\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"http://hipstersmoothie.com\"><img src=\"https://avatars3.githubusercontent.com/u/1192452?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Andrew Lisowski</b></sub></a><br /><a href=\"https://github.com/hipstersmoothie/hooks-test/commits?author=hipstersmoothie\" title=\"Documentation\">📖</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-enable -->\n<!-- prettier-ignore-end -->\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!","readmeFilename":"README.md"}