{"_id":"@and-cru/use-foreground","_rev":"1-e7d9cac2bbf779fa42c17a5a3e87200a","name":"@and-cru/use-foreground","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@and-cru/use-foreground","description":"React Native hook to call handler function when app is in foreground","version":"1.0.0","author":{"name":"Tiaan du Plessis","email":"tiaanduplessis@hotmail.com"},"type":"module","main":"src/index.js","exports":"src/index.js","types":"./index.d.ts","keywords":["react-native","react","hook","foreground","appstate"],"repository":{"type":"git","url":"git+https://github.com/and-cru/use-foreground.git"},"license":"MIT","scripts":{"lint":"standard --fix","prepublish":"tsc --allowJs -d --emitDeclarationOnly ./index.js"},"peerDependencies":{"react-native":"^0.60","react":"^16"},"devDependencies":{"standard":"^16.0.3","typescript":"^4.1.3"},"standard":{"env":{"browser":true}},"gitHead":"fdad571c10913110b4191d296035b006e3d5f44a","bugs":{"url":"https://github.com/and-cru/use-foreground/issues"},"homepage":"https://github.com/and-cru/use-foreground#readme","_id":"@and-cru/use-foreground@1.0.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Di1bXzBIN2nhrYlj4LEi8G/5T6xqdsmZAAH29dHnEBmP4J4DGnEOcUvOcjVRfDGAEXccKiZl8SW+TDzS59dgvA==","shasum":"afcb5b40f42e035ea4409bce9433cb23079bbe57","tarball":"https://registry.npmjs.org/@and-cru/use-foreground/-/use-foreground-1.0.0.tgz","fileCount":4,"unpackedSize":4422,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgF8mqCRA9TVsSAnZWagAAgYwQAI+34BjITkPlcww5aqQw\ndq3bHikxzr4rr/IwTFMAaxiMcIGOW2Cau2HHv9u0tTcvB5GFUQ+U1MR2OKPJ\nKPP+r4BbSeWNisU07udAVH5woQ9AIZUeuzOAsiiWo7R4LencQmiNNZ5erimz\n2D2Aciw2ptfhCU29SiFFEO8K7qLSp3CIfr6b+vO5mkFtNju4lGQPgywsI7Zy\nqd8W8dSYzLto4olZlH4jtFTpkFlMo2HKRRdhlbpp1jUGOkKkAbUuKsbrRls3\nqeaXrIBNwKYPFaXihfgPVjQiOqiEotktY6i2i0/LwJSoIR+X7efDaCwf0q1d\n6hc43ZaMaUUoh4ct8Bh8DgzwsABsi+Qpwd0M27GSHEX8ceOm3vC3FaklcbAS\nhqM1dzGjMiM/JzNVDHaMMOL4mVUlF4izsb4SfWxHY4vqFd0WXxdT3+hMcULO\n67uo0C5Kf6UavqKb/W74UNMRgzKM1cEEmR6MM4staguPkH3/MvE+PWbcYDgp\nhjAgi5ExlojlJ65qgceq8zi0rjEqgvyrWo9FiQhKX+cYBRP0nxeurEKNa2l7\nC0yffTP/lEcDngQEh4uIt6MgKyxV2nbRqQi1KaJpUfAtjHT/xmXv/A6r1bZw\nuRXnvA+gcLPPyqHTwXQhkyHWDUvypIef079yickWU2Ra4689g5w6yz/SoD5G\n0/oT\r\n=4Gk5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHIdtzLJPFour5IYFtrkbmR4HMad0VPWCt1HuAeTyJTQIgKc1dK9Q8qH9GCYz94NyYj7QENH9hSvQXRi23rL3qCxc="}]},"_npmUser":{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},"directories":{},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},{"name":"pedreviljoen","email":"pedre87@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-foreground_1.0.0_1612171689711_0.4247549702554305"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-01T09:28:09.531Z","1.0.0":"2021-02-01T09:28:09.836Z","modified":"2022-04-04T13:57:18.583Z"},"maintainers":[{"name":"tiaanduplessis","email":"tiaanduplessis@hotmail.com"},{"name":"pedreviljoen","email":"pedre87@gmail.com"}],"description":"React Native hook to call handler function when app is in foreground","homepage":"https://github.com/and-cru/use-foreground#readme","keywords":["react-native","react","hook","foreground","appstate"],"repository":{"type":"git","url":"git+https://github.com/and-cru/use-foreground.git"},"author":{"name":"Tiaan du Plessis","email":"tiaanduplessis@hotmail.com"},"bugs":{"url":"https://github.com/and-cru/use-foreground/issues"},"license":"MIT","readme":"\n# @and-cru/use-foreground\n[![package version](https://img.shields.io/npm/v/@and-cru/use-foreground.svg?style=flat-square)](https://npmjs.org/package/@and-cru/use-foreground)\n[![package downloads](https://img.shields.io/npm/dm/@and-cru/use-foreground.svg?style=flat-square)](https://npmjs.org/package/@and-cru/use-foreground)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![package license](https://img.shields.io/npm/l/@and-cru/use-foreground.svg?style=flat-square)](https://npmjs.org/package/@and-cru/use-foreground)\n[![make a pull request](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\n> React Native hook to call handler function when app is in foreground\n\n## Table of Contents\n\n- [Usage](#usage)\n- [Install](#install)\n- [Contribute](#contribute)\n- [License](#License)\n\n## Usage\n\n```js\nimport useForeground from '@and-cru/use-foreground'\n\nexport const Example = () => {\n  useForeground(() => {\n    console.log('refreshing state...')\n  })\n\n  return null\n}\n\n```\n\n\n## Install\n\nThis project uses [node](https://nodejs.org) and [npm](https://www.npmjs.com). \n\n```sh\n$ npm install @and-cru/use-foreground\n$ # OR\n$ yarn add @and-cru/use-foreground\n```\n\n## Contribute\n\n1. Fork it and create your feature branch: `git checkout -b my-new-feature`\n2. Commit your changes: `git commit -am \"Add some feature\"`\n3. Push to the branch: `git push origin my-new-feature`\n4. Submit a pull request\n\n## License\n\nMIT\n    ","readmeFilename":"README.md"}