{"_id":"@britishgas-engineering/bg-react-native-torch","_rev":"4-8949546630f3904fda6963a06300f8eb","name":"@britishgas-engineering/bg-react-native-torch","description":"Control the device's torch","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.5":{"name":"@britishgas-engineering/bg-react-native-torch","version":"0.1.5","keywords":["react-native","ios","android"],"author":{"url":"https://github.com/KGajraj","name":"KGajraj","email":"Kieran.Gajraj@centrica.com"},"license":"MIT","_id":"@britishgas-engineering/bg-react-native-torch@0.1.5","maintainers":[{"name":"kgajraj","email":"kieran.gajraj@centrica.com"},{"name":"gczene","email":"gabor@czene.co.uk"},{"name":"britishgas-engineering-new","email":"czene.gabor@gmail.com"}],"homepage":"https://github.com/britishgas-engineering/bg-react-native-torch#readme","bugs":{"url":"https://github.com/britishgas-engineering/bg-react-native-torch/issues"},"dist":{"shasum":"ef0ea1c4ee16f8dd79473e03f53122d6d549cf37","tarball":"https://registry.npmjs.org/@britishgas-engineering/bg-react-native-torch/-/bg-react-native-torch-0.1.5.tgz","fileCount":40,"integrity":"sha512-NQOKChHcrJnfFVsoEbkmj16SFc49VA6HJsltb84sVfMBSnyynD/45W0B/CyNuw+cm2PSVbuE/9XyK8P4S6Rhlg==","signatures":[{"sig":"MEYCIQC4ej7eDmRrYCdFPtX2SzqZNOdnoDh9jJgTKtrDykzA1AIhAN/LSjcWld0Am/jp6vUri4S+kUGsav6d7FDc0ji72oK4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":107949},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"lib/commonjs/index","types":"lib/typescript/src/index.d.ts","module":"lib/module/index","source":"src/index","gitHead":"3acdceee71d0e9dc31073d32d2a957cf5bbcee88","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build lib","example":"yarn workspace bg-react-native-torch-example","prepare":"bob build","release":"release-it","typecheck":"tsc --noEmit"},"_npmUser":{"name":"kgajraj","email":"kieran.gajraj@centrica.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"repository":{"url":"git+https://github.com/britishgas-engineering/bg-react-native-torch.git","type":"git"},"workspaces":["example"],"_npmVersion":"10.2.4","description":"Control the device's torch","directories":{},"resolutions":{"@types/react":"^18.2.44"},"_nodeVersion":"21.6.2","eslintConfig":{"root":true,"rules":{"prettier/prettier":["error",{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"}]},"extends":["@react-native","prettier"]},"eslintIgnore":["node_modules/","lib/"],"react-native":"src/index","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"18.2.0","turbo":"^1.10.7","eslint":"^8.51.0","del-cli":"^5.1.0","prettier":"^3.0.3","commitlint":"^17.0.2","release-it":"^15.0.0","typescript":"^5.2.2","@types/jest":"^29.5.5","@types/react":"^18.2.44","react-native":"0.73.6","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","react-native-builder-bob":"^0.20.0","@react-native/eslint-config":"^0.73.1","@commitlint/config-conventional":"^17.0.2","@release-it/conventional-changelog":"^5.0.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/bg-react-native-torch_0.1.5_1714058781788_0.850129290791173","host":"s3://npm-registry-packages"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"0.1.6":{"name":"@britishgas-engineering/bg-react-native-torch","version":"0.1.6","keywords":["react-native","ios","android"],"author":{"url":"https://github.com/KGajraj","name":"KGajraj","email":"Kieran.Gajraj@centrica.com"},"license":"MIT","_id":"@britishgas-engineering/bg-react-native-torch@0.1.6","maintainers":[{"name":"kgajraj","email":"kieran.gajraj@centrica.com"},{"name":"gczene","email":"gabor@czene.co.uk"},{"name":"britishgas-engineering-new","email":"czene.gabor@gmail.com"}],"homepage":"https://github.com/britishgas-engineering/bg-react-native-torch#readme","bugs":{"url":"https://github.com/britishgas-engineering/bg-react-native-torch/issues"},"dist":{"shasum":"213ddbcc932f7a9ab430c36c3f0f65ae7c61335e","tarball":"https://registry.npmjs.org/@britishgas-engineering/bg-react-native-torch/-/bg-react-native-torch-0.1.6.tgz","fileCount":40,"integrity":"sha512-yIwmKbyleMq8WOmjl/Tc9R+Z9fHBwuzsViG17xLd6F5g2ayCFG4JIugSxmUVzcIICC+y4smHRLmNzdRPF1Za7Q==","signatures":[{"sig":"MEYCIQCEJQmlG06gGWjOPeMf/f49LI7FZyT+S088YVWZKm/a7AIhAMJilxl/oQJcFR4zPOsS/DChLgbo4d7l1pOp+2twZwgQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":108085},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"lib/commonjs/index","types":"lib/typescript/src/index.d.ts","module":"lib/module/index","source":"src/index","gitHead":"7588aaf7041e0c703499f9a3edb9e165e1e4330d","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build lib","example":"yarn workspace bg-react-native-torch-example","prepare":"bob build","release":"release-it","typecheck":"tsc --noEmit"},"_npmUser":{"name":"kgajraj","email":"kieran.gajraj@centrica.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"repository":{"url":"git+https://github.com/britishgas-engineering/bg-react-native-torch.git","type":"git"},"workspaces":["example"],"_npmVersion":"10.2.4","description":"Control the device's torch","directories":{},"resolutions":{"@types/react":"^18.2.44"},"_nodeVersion":"21.6.2","eslintConfig":{"root":true,"rules":{"prettier/prettier":["error",{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"}]},"extends":["@react-native","prettier"]},"eslintIgnore":["node_modules/","lib/"],"react-native":"src/index","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"18.2.0","turbo":"^1.10.7","eslint":"^8.51.0","del-cli":"^5.1.0","prettier":"^3.0.3","commitlint":"^17.0.2","release-it":"^15.0.0","typescript":"^5.2.2","@types/jest":"^29.5.5","@types/react":"^18.2.44","react-native":"0.73.6","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","react-native-builder-bob":"^0.20.0","@react-native/eslint-config":"^0.73.1","@commitlint/config-conventional":"^17.0.2","@release-it/conventional-changelog":"^5.0.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/bg-react-native-torch_0.1.6_1716302838254_0.919814626020951","host":"s3://npm-registry-packages"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"0.1.7":{"name":"@britishgas-engineering/bg-react-native-torch","version":"0.1.7","keywords":["react-native","ios","android"],"author":{"url":"https://github.com/KGajraj","name":"KGajraj","email":"Kieran.Gajraj@centrica.com"},"license":"MIT","_id":"@britishgas-engineering/bg-react-native-torch@0.1.7","maintainers":[{"name":"kgajraj","email":"kieran.gajraj@centrica.com"},{"name":"gczene","email":"gabor@czene.co.uk"},{"name":"britishgas-engineering-new","email":"czene.gabor@gmail.com"}],"homepage":"https://github.com/britishgas-engineering/bg-react-native-torch#readme","bugs":{"url":"https://github.com/britishgas-engineering/bg-react-native-torch/issues"},"dist":{"shasum":"d8e13be967283998d57f4856ca001826d3ab6f38","tarball":"https://registry.npmjs.org/@britishgas-engineering/bg-react-native-torch/-/bg-react-native-torch-0.1.7.tgz","fileCount":41,"integrity":"sha512-4GmTWwwRXcEvo9gmxo6IqEr4c/MWLy95ujV/kaobXBLGeu3Aaykh3d3hhgu3mPZv7AHAVO4MuCrPi6QEZjzLcA==","signatures":[{"sig":"MEUCIQCyanQdRg9lckoiupxsDDxbtcCmirc/XIeXDd2ZnOtmYAIgbOutZ/I1XcsLkny6CKDLys4zc9jhaJl4HSEElUQCul4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":103052},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"lib/commonjs/index","types":"lib/typescript/src/index.d.ts","module":"lib/module/index","source":"src/index","gitHead":"4850526fd8099cd01ea429ddc6a163475b298512","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build lib","example":"yarn workspace bg-react-native-torch-example","prepare":"bob build","release":"release-it","typecheck":"tsc --noEmit"},"_npmUser":{"name":"kgajraj","email":"kieran.gajraj@centrica.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"repository":{"url":"git+https://github.com/britishgas-engineering/bg-react-native-torch.git","type":"git"},"workspaces":["example"],"_npmVersion":"10.2.4","description":"Control the device's torch","directories":{},"resolutions":{"@types/react":"^18.2.44"},"_nodeVersion":"21.6.2","eslintConfig":{"root":true,"rules":{"prettier/prettier":["error",{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"}]},"extends":["@react-native","prettier"]},"eslintIgnore":["node_modules/","lib/"],"react-native":"src/index","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"18.2.0","turbo":"^1.10.7","eslint":"^8.51.0","del-cli":"^5.1.0","prettier":"^3.0.3","commitlint":"^17.0.2","release-it":"^15.0.0","typescript":"^5.2.2","@types/jest":"^29.5.5","@types/react":"^18.2.44","react-native":"0.73.6","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","react-native-builder-bob":"^0.20.0","@react-native/eslint-config":"^0.73.1","@commitlint/config-conventional":"^17.0.2","@release-it/conventional-changelog":"^5.0.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/bg-react-native-torch_0.1.7_1716840155828_0.14561760099075105","host":"s3://npm-registry-packages"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"0.1.8":{"name":"@britishgas-engineering/bg-react-native-torch","version":"0.1.8","keywords":["react-native","ios","android"],"author":{"url":"https://github.com/KGajraj","name":"KGajraj","email":"Kieran.Gajraj@centrica.com"},"license":"MIT","_id":"@britishgas-engineering/bg-react-native-torch@0.1.8","maintainers":[{"name":"kgajraj","email":"kieran.gajraj@centrica.com"},{"name":"gczene","email":"gabor@czene.co.uk"},{"name":"britishgas-engineering-new","email":"czene.gabor@gmail.com"}],"homepage":"https://github.com/britishgas-engineering/bg-react-native-torch#readme","bugs":{"url":"https://github.com/britishgas-engineering/bg-react-native-torch/issues"},"dist":{"shasum":"f74efb97b77c8221f3a6d306884ec3ad04c91c8f","tarball":"https://registry.npmjs.org/@britishgas-engineering/bg-react-native-torch/-/bg-react-native-torch-0.1.8.tgz","fileCount":42,"integrity":"sha512-7IcHEZLmgili7nJ2gAz5NmrvSluoyu3sqAGXbgdk1cHE63HiXzDym6DcryZ+w7226Ktp9xbul5XC9e4uMCWJCw==","signatures":[{"sig":"MEUCIAXY9IcZWaBCZOgo4hG83erlWxEAvTRmaIRJnd3PJUjfAiEAz4CMR/PXI3lkT+td8CoRKae7SsrFkYuVDztdMQ8bpZg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":103012},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"lib/commonjs/index","types":"lib/typescript/src/index.d.ts","module":"lib/module/index","source":"src/index","gitHead":"c873f60794888a039001f532a61377933aa147aa","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build lib","example":"yarn workspace bg-react-native-torch-example","prepare":"bob build","release":"release-it","typecheck":"tsc --noEmit"},"_npmUser":{"name":"kgajraj","email":"kieran.gajraj@centrica.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"repository":{"url":"git+https://github.com/britishgas-engineering/bg-react-native-torch.git","type":"git"},"workspaces":["example"],"_npmVersion":"10.2.4","description":"Control the device's torch","directories":{},"resolutions":{"@types/react":"^18.2.44"},"_nodeVersion":"21.6.2","eslintConfig":{"root":true,"rules":{"prettier/prettier":["error",{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"}]},"extends":["@react-native","prettier"]},"eslintIgnore":["node_modules/","lib/"],"react-native":"src/index","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"18.2.0","turbo":"^1.10.7","eslint":"^8.51.0","del-cli":"^5.1.0","prettier":"^3.0.3","commitlint":"^17.0.2","release-it":"^15.0.0","typescript":"^5.2.2","@types/jest":"^29.5.5","@types/react":"^18.2.44","react-native":"0.73.6","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","react-native-builder-bob":"^0.20.0","@react-native/eslint-config":"^0.73.1","@commitlint/config-conventional":"^17.0.2","@release-it/conventional-changelog":"^5.0.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/bg-react-native-torch_0.1.8_1716992190806_0.40385435482273335","host":"s3://npm-registry-packages"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"0.2.0":{"name":"@britishgas-engineering/bg-react-native-torch","version":"0.2.0","description":"Control the device's torch","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/src/index.d.ts","react-native":"src/index","source":"src/index","scripts":{"example":"yarn workspace bg-react-native-torch-example","test":"jest","typecheck":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build lib","prepare":"bob build","release":"release-it"},"keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/britishgas-engineering/bg-react-native-torch.git"},"author":{"name":"KGajraj","email":"Kieran.Gajraj@centrica.com","url":"https://github.com/KGajraj"},"license":"MIT","bugs":{"url":"https://github.com/britishgas-engineering/bg-react-native-torch/issues"},"homepage":"https://github.com/britishgas-engineering/bg-react-native-torch#readme","publishConfig":{"registry":"https://registry.npmjs.org/"},"devDependencies":{"@commitlint/config-conventional":"^17.0.2","@evilmartians/lefthook":"^1.5.0","@react-native/eslint-config":"^0.73.1","@release-it/conventional-changelog":"^5.0.0","@types/jest":"^29.5.5","@types/react":"^18.2.44","commitlint":"^17.0.2","del-cli":"^5.1.0","eslint":"^8.51.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","jest":"^29.7.0","prettier":"^3.0.3","react":"18.2.0","react-native":"0.73.6","react-native-builder-bob":"^0.20.0","release-it":"^15.0.0","turbo":"^1.10.7","typescript":"^5.2.2"},"resolutions":{"@types/react":"^18.2.44"},"peerDependencies":{"react":"*","react-native":"*"},"workspaces":["example"],"packageManager":"yarn@3.6.1","jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"commitMessage":"chore: release ${version}","tagName":"v${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"eslintConfig":{"root":true,"extends":["@react-native","prettier"],"rules":{"prettier/prettier":["error",{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false}]}},"eslintIgnore":["node_modules/","lib/"],"prettier":{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false},"react-native-builder-bob":{"source":"src","output":"lib","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]},"_id":"@britishgas-engineering/bg-react-native-torch@0.2.0","gitHead":"c38e19461573c548acda88fc77545e06397f4ca4","_nodeVersion":"21.6.2","_npmVersion":"10.2.4","dist":{"integrity":"sha512-Z/YMQ5NiOVs80OpM0CNtz0WfsjRuNBfx0iFevEJMFk3SAOaSeLH2Mgrqybdoz7d36/bOC4eYLVzNwWgokHn/Mg==","shasum":"6adac97b34dfa0568ecbd37d143d52123a183bd8","tarball":"https://registry.npmjs.org/@britishgas-engineering/bg-react-native-torch/-/bg-react-native-torch-0.2.0.tgz","fileCount":41,"unpackedSize":102674,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHG2rDEot95nVRMWUjqFGTz1tW3nL+OEmAbvlvF956B7AiATH7CgWvCS57uXvoLqSV2nBvklpQA0XEYvi5bxYSssvA=="}]},"_npmUser":{"name":"kgajraj","email":"kieran.gajraj@centrica.com"},"directories":{},"maintainers":[{"name":"kgajraj","email":"kieran.gajraj@centrica.com"},{"name":"gczene","email":"gabor@czene.co.uk"},{"name":"britishgas-engineering-new","email":"czene.gabor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bg-react-native-torch_0.2.0_1717062315110_0.5184133341900286"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-25T15:26:21.673Z","modified":"2024-05-30T09:45:15.566Z","0.1.5":"2024-04-25T15:26:21.945Z","0.1.6":"2024-05-21T14:47:18.409Z","0.1.7":"2024-05-27T20:02:36.087Z","0.1.8":"2024-05-29T14:16:31.002Z","0.2.0":"2024-05-30T09:45:15.273Z"},"maintainers":[{"name":"kgajraj","email":"kieran.gajraj@centrica.com"},{"name":"gczene","email":"gabor@czene.co.uk"},{"name":"britishgas-engineering-new","email":"czene.gabor@gmail.com"}],"author":{"name":"KGajraj","email":"Kieran.Gajraj@centrica.com","url":"https://github.com/KGajraj"},"repository":{"type":"git","url":"git+https://github.com/britishgas-engineering/bg-react-native-torch.git"},"keywords":["react-native","ios","android"],"license":"MIT","homepage":"https://github.com/britishgas-engineering/bg-react-native-torch#readme","bugs":{"url":"https://github.com/britishgas-engineering/bg-react-native-torch/issues"},"readme":"# bg-react-native-torch\n\nControl the device's torch\n\n---\n\n## Install\n\n`npm install bg-react-native-torch`\n\n## Usage\n\n### Turn the torch on or off\n\n`setEnabledState(newState: boolean)`\n\nPass `true` to turn the torch on, or `false` to turn the torch off.\n\n\n### Determine whether the torch is available\n\n`getAvailableState(): boolean`\n\nReturns `true` if torch is available, `false` otherwise.\n\n\n### Determine whether the torch is enabled\n\n`getEnabledState(): boolean`\n\nReturns `true` if the torch is turned on, `false` otherwise.\n\nNote: On iOS, this will not accurately track if the torch has been enabled using the Control Centre. i.e. if the torch has only been enabled through the Control Centre, this will still return `false`.\n\n\n### Set a callback function for torch state changes\n\n`onStateChange(callback: (torchState: TorchState) => void): EventSubscription`\n\nCallback function will be called whenever the availability or enabled state of the torch changes. The `torchState` argument passed to the callback function contains the new states of the torch. When finished you should unsubscribe by calling `.remove()` on the returned `EventSubscription`.\n\n\n### TorchState interface\n\n```\ninterface TorchState {\n    enabled: boolean;\n    available: boolean;\n}\n```\n\nMade with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)\n","readmeFilename":"README.md"}