{"_id":"@alantoa/lightbox","_rev":"3-dfac9d90e5eb73f37468b5a174399c4c","name":"@alantoa/lightbox","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.1":{"name":"@alantoa/lightbox","version":"0.1.1","description":"@alantoa/lightbox","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","source":"src/index","scripts":{"test":"jest","typescript":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","prepare":"bob build","release":"release-it","example":"yarn --cwd example","pods":"cd example && pod-install --quiet","bootstrap":"yarn example && yarn && yarn pods"},"keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/alantoa/react-native-lightbox.git"},"author":{"name":"alantoa","email":"toacncom@gmail.com","url":"https://github.com/alantoa"},"license":"MIT","bugs":{"url":"https://github.com/alantoa/react-native-lightbox/issues"},"homepage":"https://github.com/alantoa/react-native-lightbox#readme","publishConfig":{"registry":"https://registry.npmjs.org/"},"devDependencies":{"@commitlint/config-conventional":"^11.0.0","@react-native-community/eslint-config":"^2.0.0","@release-it/conventional-changelog":"^2.0.0","@types/jest":"^26.0.0","@types/react":"~17.0.21","@types/react-native":"0.62.13","commitlint":"^11.0.0","eslint":"^7.2.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.1.3","husky":"^6.0.0","jest":"^26.0.1","pod-install":"^0.1.0","prettier":"^2.0.5","react":"^17.0.2","react-native":"0.63.4","react-native-builder-bob":"^0.18.0","release-it":"^14.2.2","typescript":"^4.1.3","react-native-gesture-handler":"~2.2.0","react-native-reanimated":"~2.8.0"},"peerDependencies":{"react":"*","react-native":"*","react-native-gesture-handler":">=2.0.0","react-native-reanimated":">=2.0.0"},"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-community","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"}]]},"resolutions":{"@types/react":"~17.0.21"},"gitHead":"f2adb722c7c7e1d209a0868b5405f81a3e8a23dc","_id":"@alantoa/lightbox@0.1.1","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-3y4NugMDdUlttkAu6JZO/V7lPLR++SLB3x+aMmNOHtKdxDA4AUu5qkhuKxDoGTFwl6aVe+Zwigg44/VdKyraXA==","shasum":"17743ab6df0d86bd9aa4d0ec75ff4e3db623f2c6","tarball":"https://registry.npmjs.org/@alantoa/lightbox/-/lightbox-0.1.1.tgz","fileCount":27,"unpackedSize":77408,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdhBwsquVbeddhuahZHYLC33NVFTy4mp5NONGk+LfV8gIgAtTZrSz+t79LAhxoD0qDPOLuV53iZ46rzyDl1wxpHqM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijOIhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmomZhAAgPvWfVXUNFG6KzctOeYfcOic0etRuwhGzGy48GGHTaJA3HIv\r\nIJB+LNv5YP/yoTSD0HVVW6M1TTvZ7fd7wragHfxafbDRRSTbnA/+e2O89aAz\r\nAAq6fg3RjtBx6hd484TrhgJa3rqiaUlZ3gEhA6Xr9KP+ht9ZvDzWOo76nZ+n\r\n9dQn97+IAqjc0AdfLDWe8AoegPV5lbrXCXPei5R++TRmM2V7zEZElGuLrAHS\r\nCMJg+lcmF2IhEc/GGW0hEr0Jn/SPSM4bPzE4Lki1OvyhY6UFKZyluhvzJqnQ\r\nyq6YLlfbixU5eNRxyOfnXnL/PgA6jS9izVUhxCgZw7bLmMOrQp5MAigEGt/d\r\nj1Q09EUDXackcyBs9WLfM6kejwU39qNcUVv8Jnb4jnFzaoeu+pCpPAEUBwdp\r\ntujl6fcUp2owGaoeSAe+mAUbgQazptONCRkqPNudeWF+tyDByxV4/Yk4Mjmq\r\nn5jItnyY8CCxIHqr7h+y/a09RjUm1xdxq7q6bHRqpH3dPZzn1wSAevsAOiMJ\r\ng29A8RPuAAsnu+24+H30+ikHViCCA2cjpR02VN4Y47FzS4saTgY5CCKDUaK2\r\nSBrZ+X3MTFHDypMEi/jzavqfnI1lcp+EHgGxWBDpS0sMzmMOo5fhIZiBwUAt\r\nm/LAAYlOs88Ddp+enXGCDfRkvNuo6GM5zA0=\r\n=gcnr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alantoa","email":"toacncom@gmail.com"},"directories":{},"maintainers":[{"name":"alantoa","email":"toacncom@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lightbox_0.1.1_1653400097654_0.7528096165243812"},"_hasShrinkwrap":false},"0.2.0":{"name":"@alantoa/lightbox","version":"0.2.0","description":"@alantoa/lightbox","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","source":"src/index","scripts":{"test":"jest","typescript":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","prepare":"bob build","release":"release-it","example":"yarn --cwd example","pods":"cd example && pod-install --quiet","bootstrap":"yarn example && yarn && yarn pods"},"keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/alantoa/react-native-lightbox.git"},"author":{"name":"alantoa","email":"toacncom@gmail.com","url":"https://github.com/alantoa"},"license":"MIT","bugs":{"url":"https://github.com/alantoa/react-native-lightbox/issues"},"homepage":"https://github.com/alantoa/react-native-lightbox#readme","publishConfig":{"registry":"https://registry.npmjs.org/"},"devDependencies":{"@commitlint/config-conventional":"^11.0.0","@react-native-community/eslint-config":"^2.0.0","@release-it/conventional-changelog":"^2.0.0","@types/jest":"^26.0.0","@types/react":"~17.0.21","@types/react-native":"0.62.13","commitlint":"^11.0.0","eslint":"^7.2.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.1.3","husky":"^6.0.0","jest":"^26.0.1","pod-install":"^0.1.0","prettier":"^2.0.5","react":"^17.0.2","react-native":"0.64.1","react-native-builder-bob":"^0.18.0","release-it":"^14.2.2","typescript":"^4.1.3","react-native-gesture-handler":"~2.2.0","react-native-reanimated":"~2.8.0"},"peerDependencies":{"react":"*","react-native":"*","react-native-gesture-handler":">=2.0.0","react-native-reanimated":">=2.0.0"},"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-community","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"}]]},"resolutions":{"@types/react":"~17.0.21"},"gitHead":"5eccd6f958d208e5001a4e0d67b8a2ea0169203d","_id":"@alantoa/lightbox@0.2.0","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-mTY0e04J1DlW8wZBmKNCyWBNw7OQ5Pm9PXHYcWGDBuJl9GWvnRrzFLDfZwewETnUYYqZf7h3+WmY29et7lE7vg==","shasum":"09aac9009a029272c8510e43629357f297295119","tarball":"https://registry.npmjs.org/@alantoa/lightbox/-/lightbox-0.2.0.tgz","fileCount":27,"unpackedSize":88837,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHwOMSCjBme3+Re8PTn+DlZyZ9qylq/1Q8JkSYdhWGFQIhAMUFMRwd6RSVu0RGZPOxSRahLuFUbrEEjIQF8eVKd9HM"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilhrEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo7vg/+PSiy0skNWUJj9VGO/WXIc0r5rgrye9w7AIvCGtmagdeZAEUD\r\noLmIUi7mxSu0ICmYvm6VF3p8ld2YsZ/oBODkdRSBRUGj4RHxIymKeFslTFtS\r\nYt8+vCD6K1RJSE1zh5RzR17KdLrrmM1+vsQPqaPUVIBrVZjWn4fVcwKC5/Dm\r\nP+CpwW35QqBsrT3b6tYhKIp4vZB0K+zC8BUju3bV0JN2Fa1DFbh2/P4v7Zfj\r\ntiv+0LsK0hv2CLydCoCK4CqC8BKIJsK/hqeST4SjfTcEfzvqGwgaljV7dI28\r\n/BXy9h5DMyapCDyJePl2QNYugQB7uHD13f86U09h1pcWY/3NnA1wLDqs/8qo\r\nKc1OV39BuP8B4fyLB6Buh3OilzD7w0R1e9eGi3Vq97naglPLbMu7unEAPKOL\r\n77AKY9VaDWg8Clm5E0rWzLr03zDgZv3Js4mC5c0AqhiD90TL2QJWXCpeJW4p\r\nsmEHREydnhYXWlMWH0G+w4mOmKrB2B1NSvyyB8JnS65rvcDwbk/oGQVLi3d+\r\nG8LECUgiaO7kx5pNYAdb3Jul0niyP2xZWgUi06ebUJaiHzeCM0BmQlrxTRrZ\r\nCQ8i0tJU3Vbi0j4Nw4enVMMp3NMMcfZdayabHPilHTHO/IJlE+1s/S7Mv5IE\r\nmUcZ4F0zqzxZpswJLEB7271DgvEut4Qr9nQ=\r\n=s87z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alantoa","email":"toacncom@gmail.com"},"directories":{},"maintainers":[{"name":"alantoa","email":"toacncom@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lightbox_0.2.0_1654004420712_0.5298655597757833"},"_hasShrinkwrap":false},"0.3.0":{"name":"@alantoa/lightbox","version":"0.3.0","description":"@alantoa/lightbox","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","source":"src/index","scripts":{"test":"jest","typescript":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","prepare":"bob build","release":"release-it","example":"yarn --cwd example","pods":"cd example && pod-install --quiet","bootstrap":"yarn example && yarn && yarn pods"},"keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/alantoa/react-native-lightbox.git"},"author":{"name":"alantoa","email":"toacncom@gmail.com","url":"https://github.com/alantoa"},"license":"MIT","bugs":{"url":"https://github.com/alantoa/react-native-lightbox/issues"},"homepage":"https://github.com/alantoa/react-native-lightbox#readme","publishConfig":{"registry":"https://registry.npmjs.org/"},"devDependencies":{"@commitlint/config-conventional":"^11.0.0","@react-native-community/eslint-config":"^2.0.0","@release-it/conventional-changelog":"^2.0.0","@types/jest":"^26.0.0","@types/react":"~17.0.21","@types/react-native":"0.62.13","commitlint":"^11.0.0","eslint":"^7.2.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.1.3","husky":"^6.0.0","jest":"^26.0.1","pod-install":"^0.1.0","prettier":"^2.0.5","react":"^17.0.2","react-native":"0.64.1","react-native-builder-bob":"^0.18.0","react-native-gesture-handler":"~2.2.0","react-native-reanimated":"~2.8.0","release-it":"^14.2.2","typescript":"^4.1.3"},"peerDependencies":{"react":"*","react-native":"*","react-native-gesture-handler":">=2.0.0","react-native-reanimated":">=2.0.0"},"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-community","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"}]]},"resolutions":{"@types/react":"~17.0.21"},"gitHead":"d274cb354c67de44defa512dc3916213fdde5dec","_id":"@alantoa/lightbox@0.3.0","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-1wfNCX7BfUrARoILZ8L9nlIWRUDILha6TKZvNDd2/hOlmjYaq22ZRYk+L4n8eitTmlUHBTjC5JTLkQXjCNdHTg==","shasum":"cdcee42504fe9cc75cb50460bb5a3213a70fdabf","tarball":"https://registry.npmjs.org/@alantoa/lightbox/-/lightbox-0.3.0.tgz","fileCount":33,"unpackedSize":137368,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQ2mgzsqPtJOrRss7PqjfSTRHTsKeRZNO68xCh8HiWtwIhAKBYAKxieEPRS3/3REeMOLuxXE45GtGKJ4ysTkvbMi2k"}]},"_npmUser":{"name":"alantoa","email":"toacncom@gmail.com"},"directories":{},"maintainers":[{"name":"alantoa","email":"toacncom@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lightbox_0.3.0_1687688616690_0.0672076438758018"},"_hasShrinkwrap":false},"0.3.1":{"name":"@alantoa/lightbox","version":"0.3.1","description":"@alantoa/lightbox","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/index.d.ts","react-native":"src/index","source":"src/index","scripts":{"test":"jest","typescript":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","prepare":"bob build","release":"release-it","example":"yarn --cwd example","pods":"cd example && pod-install --quiet","bootstrap":"yarn example && yarn && yarn pods"},"keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/alantoa/react-native-lightbox.git"},"author":{"name":"alantoa","email":"toacncom@gmail.com","url":"https://github.com/alantoa"},"license":"MIT","bugs":{"url":"https://github.com/alantoa/react-native-lightbox/issues"},"homepage":"https://github.com/alantoa/react-native-lightbox#readme","publishConfig":{"registry":"https://registry.npmjs.org/"},"devDependencies":{"@commitlint/config-conventional":"^11.0.0","@react-native-community/eslint-config":"^2.0.0","@release-it/conventional-changelog":"^2.0.0","@types/jest":"^26.0.0","@types/react":"~17.0.21","@types/react-native":"0.62.13","commitlint":"^11.0.0","eslint":"^7.2.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.1.3","husky":"^6.0.0","jest":"^26.0.1","pod-install":"^0.1.0","prettier":"^2.0.5","react":"^17.0.2","react-native":"0.64.1","react-native-builder-bob":"^0.18.0","react-native-gesture-handler":"~2.2.0","react-native-reanimated":"~2.8.0","release-it":"^14.2.2","typescript":"^4.1.3"},"peerDependencies":{"react":"*","react-native":"*","react-native-gesture-handler":">=2.0.0","react-native-reanimated":">=2.0.0"},"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-community","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"}]]},"resolutions":{"@types/react":"~17.0.21"},"gitHead":"eac52b4243d8b1e22dc20737064e7d80e423d9cd","_id":"@alantoa/lightbox@0.3.1","_nodeVersion":"18.16.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-KX8sypcDtlZ24M0ANWGE4YQLwZOlTEnt/NiI1Ccp5T4kpyvi4Qnohq0md9epl2ztqV7b3baFCg+bN4MfwcziZA==","shasum":"85fab88f5fc263a2dd15996dc3cf576b93ffd175","tarball":"https://registry.npmjs.org/@alantoa/lightbox/-/lightbox-0.3.1.tgz","fileCount":33,"unpackedSize":101912,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDR/rkrFUd4804zxElyrRcErQiGYTFsHiuYzT5gOpSnXAIhAKM9ANvKuURpQvg47mnIzaV2/DZwfI883jDXAZhzxlg3"}]},"_npmUser":{"name":"alantoa","email":"toacncom@gmail.com"},"directories":{},"maintainers":[{"name":"alantoa","email":"toacncom@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lightbox_0.3.1_1688639017315_0.7094032287528229"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-24T13:48:17.596Z","0.1.1":"2022-05-24T13:48:17.786Z","modified":"2023-07-06T10:23:37.677Z","0.2.0":"2022-05-31T13:40:20.933Z","0.3.0":"2023-06-25T10:23:36.845Z","0.3.1":"2023-07-06T10:23:37.526Z"},"maintainers":[{"name":"alantoa","email":"toacncom@gmail.com"}],"description":"@alantoa/lightbox","homepage":"https://github.com/alantoa/react-native-lightbox#readme","keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/alantoa/react-native-lightbox.git"},"author":{"name":"alantoa","email":"toacncom@gmail.com","url":"https://github.com/alantoa"},"bugs":{"url":"https://github.com/alantoa/react-native-lightbox/issues"},"license":"MIT","readme":"<div align=\"center\">\n  <h1 align=\"center\">React Native Lightbox</h1>\n</div>\n\n<div align=\"center\">\n  <img width=\"300\" src=\"./assets/example.gif\" alt=\"basic usage\">\n</div> \n\n### Todo \n- [x] tap to close\n- [ ] pinch to zoom (use [Reanimated v2](https://docs.swmansion.com/react-native-reanimated/) & [react-native-gesture-handler v2](https://docs.swmansion.com/react-native-gesture-handler/))\n- [ ] web support (use [photoswipe](https://github.com/dimsemenov/photoswipe) )\n- [ ] photo gallery (use [react-native-pager-view](https://github.com/callstack/react-native-pager-view))\n\n\n\n### Installation\nFirst you have to follow installation instructions of [Reanimated v2](https://docs.swmansion.com/react-native-reanimated/) and [react-native-gesture-handler v2](https://docs.swmansion.com/react-native-gesture-handler/)\n\n```sh\nnpm install @alantoa/lightbox\n```\n\n### Usage\n\n```js\nimport { LightBoxProvider, LightBox } from '@alantoa/lightbox';\nimport { StyleSheet, Image, Dimensions } from 'react-native';\nimport * as React from 'react';\n\nconst { width } = Dimensions.get('window');\n\nexport default function App() {\n  return (\n    <LightBoxProvider>\n      <LightBox\n        width={width / 3}\n        height={width / 3}\n        imgLayout={{ width, height: width }}\n      >\n        <Image\n          source={{\n            uri: uri,\n          }}\n          style={StyleSheet.absoluteFillObject}\n        />\n      </LightBox>\n    </LightBoxProvider>\n  );\n}\n```\n\n### Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n### License\n\nMIT\n","readmeFilename":"README.md"}