{"_id":"@drakexorn/expo-torchstate","_rev":"2-a8b13c0eba0c4a9d19ff82b697ccb7e7","name":"@drakexorn/expo-torchstate","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@drakexorn/expo-torchstate","version":"0.1.0","description":"A library to access the devices' flashlight","main":"build/index.js","types":"build/index.d.ts","scripts":{"build":"expo-module build","clean":"expo-module clean","lint":"expo-module lint","test":"expo-module test","prepare":"expo-module prepare","prepublishOnly":"expo-module prepublishOnly","expo-module":"expo-module","open:ios":"open -a \"Xcode\" example/ios","open:android":"open -a \"Android Studio\" example/android"},"keywords":["react-native","expo","@drakexorn/expo-torchstate","Torchstate"],"repository":{"type":"git","url":"git+https://github.com/DrakeXorn/expo-torchstate.git"},"bugs":{"url":"https://github.com/DrakeXorn/expo-torchstate/issues"},"author":{"name":"Christophe 'DrakeXorn' Bernard","email":"chbernard4444@hotmail.com","url":"https://github.com/DrakeXorn"},"license":"MIT","homepage":"https://github.com/DrakeXorn/expo-torchstate#readme","dependencies":{},"devDependencies":{"@types/react":"^18.0.25","expo-module-scripts":"^3.4.1","expo-modules-core":"^1.11.12"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"_id":"@drakexorn/expo-torchstate@0.1.0","gitHead":"3fe47b8959bee7d624e84b573fdfe9464da6ae81","_nodeVersion":"21.7.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-aEgdRiyMoatpZbiUS6QJEyVI/43+NGxm/R/tUQqr7ibB2LPHlrC4J26bBSE0TZJKVr90EzjeFl1fifbQB3d8Xw==","shasum":"22c60a7684f383485908c36f9adf89fb87431b26","tarball":"https://registry.npmjs.org/@drakexorn/expo-torchstate/-/expo-torchstate-0.1.0.tgz","fileCount":26,"unpackedSize":17274,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEqbrMpBGncvxJ16kR5vrumlXAuu321URl8Of39ypK4QIgdaneyVZekEUd6ukfbifH91ZXWc9BRcBsm2/AzgqOIzc="}]},"_npmUser":{"name":"drakexorn","email":"drakexorn@gmail.com"},"directories":{},"maintainers":[{"name":"drakexorn","email":"drakexorn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expo-torchstate_0.1.0_1714841857069_0.27400001394175155"},"_hasShrinkwrap":false},"0.1.1":{"name":"@drakexorn/expo-torchstate","version":"0.1.1","description":"A library to access the devices' flashlight","main":"build/index.js","types":"build/index.d.ts","scripts":{"build":"expo-module build","clean":"expo-module clean","lint":"expo-module lint","test":"expo-module test","typecheck":"tsc --noEmit","prepare":"expo-module prepare","prepublishOnly":"expo-module prepublishOnly","expo-module":"expo-module","open:ios":"open -a \"Xcode\" example/ios","open:android":"open -a \"Android Studio\" example/android"},"keywords":["react-native","expo","@drakexorn/expo-torchstate","Torchstate"],"repository":{"type":"git","url":"git+https://github.com/DrakeXorn/expo-torchstate.git"},"bugs":{"url":"https://github.com/DrakeXorn/expo-torchstate/issues"},"author":{"name":"Christophe 'DrakeXorn' Bernard","email":"chbernard4444@hotmail.com","url":"https://github.com/DrakeXorn"},"license":"MIT","homepage":"https://github.com/DrakeXorn/expo-torchstate#readme","dependencies":{},"devDependencies":{"@types/react":"^18.0.25","expo-module-scripts":"^3.4.1","expo-modules-core":"^1.11.12"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"_id":"@drakexorn/expo-torchstate@0.1.1","gitHead":"b5f48a530bbd01c43a5930d7d55cee99d17c27e9","_nodeVersion":"21.7.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-kD4mlfF0n7YSEIrTo99bNcvaPmJ0lwRYEsnQaiF+5EA75cjLAv+QfJb2JzbYqjuEBaX1f+K7qJbbbAbxezB0sw==","shasum":"b7e2e7466d1f516d21ce81ec538b3c24a694c826","tarball":"https://registry.npmjs.org/@drakexorn/expo-torchstate/-/expo-torchstate-0.1.1.tgz","fileCount":31,"unpackedSize":28832,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoQlrdW9nbAjvvA19r2ox9JhqbjqbOISBL1jBR7tSvfwIhAM1Tbtgihi3s8b7nk3JiPT6HYbneg/l5GHVs1XSQAsQz"}]},"_npmUser":{"name":"drakexorn","email":"drakexorn@gmail.com"},"directories":{},"maintainers":[{"name":"drakexorn","email":"drakexorn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expo-torchstate_0.1.1_1714857668155_0.4484219986031277"},"_hasShrinkwrap":false},"0.1.2":{"name":"@drakexorn/expo-torchstate","version":"0.1.2","description":"A library to access the devices' flashlight","main":"build/index.js","types":"build/index.d.ts","scripts":{"build":"expo-module build","clean":"expo-module clean","lint":"expo-module lint","test":"expo-module test","typecheck":"tsc --noEmit","prepare":"expo-module prepare","prepublishOnly":"expo-module prepublishOnly","expo-module":"expo-module","open:ios":"open -a \"Xcode\" example/ios","open:android":"open -a \"Android Studio\" example/android"},"keywords":["react-native","expo","@drakexorn/expo-torchstate","Torchstate"],"repository":{"type":"git","url":"git+https://github.com/DrakeXorn/expo-torchstate.git"},"bugs":{"url":"https://github.com/DrakeXorn/expo-torchstate/issues"},"author":{"name":"Christophe 'DrakeXorn' Bernard","email":"chbernard4444@hotmail.com","url":"https://github.com/DrakeXorn"},"license":"MIT","homepage":"https://github.com/DrakeXorn/expo-torchstate#readme","dependencies":{},"devDependencies":{"@types/react":"^18.0.25","expo-module-scripts":"^3.4.1","expo-modules-core":"^1.11.12"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"_id":"@drakexorn/expo-torchstate@0.1.2","gitHead":"b5f48a530bbd01c43a5930d7d55cee99d17c27e9","_nodeVersion":"21.7.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-47me4QIMOpxJLBszMIy+3tMKP3H/geEOk/U/UQLc0xsVywWavq7aSBldIxoWDQEgtEsB2BvRIIGSyU1Ez65BlQ==","shasum":"514a27d4364ad3e0e4fd5fce59fa46454cc0f5cb","tarball":"https://registry.npmjs.org/@drakexorn/expo-torchstate/-/expo-torchstate-0.1.2.tgz","fileCount":31,"unpackedSize":28832,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3ojlgwZQtXoibweB2XEFKznhv7iQ12naubcr4fnbVBwIhAPVeF3WPpSXWbu9uJYmS17yKUwfWHu7QMjpwHiRiD6Fq"}]},"_npmUser":{"name":"drakexorn","email":"drakexorn@gmail.com"},"directories":{},"maintainers":[{"name":"drakexorn","email":"drakexorn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expo-torchstate_0.1.2_1714858385738_0.33053786386526585"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-04T16:57:36.966Z","0.1.0":"2024-05-04T16:57:37.237Z","modified":"2024-05-04T21:33:06.112Z","0.1.1":"2024-05-04T21:21:08.373Z","0.1.2":"2024-05-04T21:33:05.913Z"},"maintainers":[{"name":"drakexorn","email":"drakexorn@gmail.com"}],"description":"A library to access the devices' flashlight","homepage":"https://github.com/DrakeXorn/expo-torchstate#readme","keywords":["react-native","expo","@drakexorn/expo-torchstate","Torchstate"],"repository":{"type":"git","url":"git+https://github.com/DrakeXorn/expo-torchstate.git"},"author":{"name":"Christophe 'DrakeXorn' Bernard","email":"chbernard4444@hotmail.com","url":"https://github.com/DrakeXorn"},"bugs":{"url":"https://github.com/DrakeXorn/expo-torchstate/issues"},"license":"MIT","readme":"# @drakexorn/expo-torchstate\n\nA library to access the devices' flashlight.\n\n## Installation\n\nIn order to install this package, you need to have a project created with [Expo](https://expo.dev/).\nFor bare React Native projects, you must ensure that you\nhave [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before\ncontinuing.\n\nOnce you have your project ready, you can install the package using the following command:\n\n```bash\nnpm install @drakexorn/expo-torchstate\n```\n\n## Usage\n\nTo be able to use the library, you need to import it in your file:\n\n```javascript\nimport {useTorch} from '@drakexorn/expo-torchstate';\n```\n\nThen, you can use the `useTorch` hook to access the flashlight. For example :\n\n```javascript\nexport default function SeeTorchState() {\n  const [torchOn, setTorchStatus] = useTorch();\n\n  return (\n    <View style={styles.container}>\n      <Text>Flashlight turned {torchOn ? \"on\" : \"off\"}</Text>\n      <Pressable style={styles.button} onPress={() => setTorchStatus(currentState => !currentState)}>\n        <Text>Toggle flashlight</Text>\n      </Pressable>\n    </View>\n  );\n}\n```\n\nThe hook provides a boolean value representing the current state of the flashlight and a function to toggle it.\n\n## Contributing\n\nContributions are very welcome! Please refer to guidelines described in the [contributing guide](./CONTRIBUTING.md).\n\n## Authors\n\nThanks to the following people who have contributed to this project:\n\n- Christophe Bernard - **Initial work** - [@drakexorn](https://github.com/DrakeXorn)\n- Tinaël Devresse - **Suggestions** - [@hunteroi](https://github.com/hunteroi)\n\n## Acknowledgements\n\nThis project has been built using `create-expo-module`, thanks to the Expo team for providing this tool.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.\n","readmeFilename":"README.md"}