{"_id":"@around25/react-native-gallery-media-picker","_rev":"11-fc0a341384a6c56f53950855964aab05","name":"@around25/react-native-gallery-media-picker","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@around25/react-native-gallery-media-picker","version":"0.1.0","description":"A react native component that will get all the media files (images and video) from device gallery and allow to select items","main":"index.js","scripts":{"test":"test-component"},"keywords":["react-native","camera-roll","media","component","react-native","component"],"peerDependencies":{"react":"^16.3.0-alpha.1","react-native":"0.54.3"},"author":{"name":"Andrei Rat"},"license":"MIT","directories":{"example":"example"},"repository":{"type":"git","url":"git+https://github.com/Around25/react-native-gallery-media-picker.git"},"bugs":{"url":"https://github.com/Around25/react-native-gallery-media-picker/issues"},"homepage":"https://github.com/Around25/react-native-gallery-media-picker#readme","gitHead":"15c3a51faa37e19b29f045964c90efdbd9a59817","_id":"@around25/react-native-gallery-media-picker@0.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"andreirat","email":"andrei.rat@around25.com"},"dist":{"integrity":"sha512-sQUtF4ZJlscwgHByW26o/V73BxKni3aM/IesQskhK1vPC7sB4yC2YLd/cBrJMJts6B1lm6a16FoT49leu5hy3A==","shasum":"e9aba1776c98162100a6aa0f186320d28c06dec8","tarball":"https://registry.npmjs.org/@around25/react-native-gallery-media-picker/-/react-native-gallery-media-picker-0.1.0.tgz","fileCount":9,"unpackedSize":19778,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFYoJK+/vapImhp1of47UWSY8Kxkh4Fm7O8HXq+aNnztAiEAjhEFZ97xsHwy4A4xmxbKO+vFCj48OSgQEpnte11jWpU="}]},"maintainers":[{"name":"alinporumb","email":"alin.porumb@gmail.com"},{"name":"andreirat","email":"andrei.rat@around25.com"},{"name":"calintamas","email":"calinntamas@gmail.com"},{"name":"cosminharangus","email":"cosmin@around25.com"},{"name":"cupsadarius","email":"cupsadarius@gmail.com"},{"name":"daniel.suciu.developer","email":"suciudaniel2@gmail.com"},{"name":"deniel","email":"denielheinrich@gmail.com"},{"name":"gabicg","email":"dogabicg@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-gallery-media-picker_0.1.0_1522649924024_0.38699749889724866"},"_hasShrinkwrap":false},"0.1.1":{"name":"@around25/react-native-gallery-media-picker","version":"0.1.1","description":"A react native component that will get all the media files (images and video) from device gallery and allow to select items","main":"index.js","scripts":{"test":"test-component"},"keywords":["react-native","camera-roll","media","component","react-native","component"],"peerDependencies":{"react":"^16.3.0-alpha.1","react-native":"0.54.3"},"author":{"name":"Andrei Rat"},"license":"MIT","directories":{"example":"example"},"repository":{"type":"git","url":"git+https://github.com/Around25/react-native-gallery-media-picker.git"},"bugs":{"url":"https://github.com/Around25/react-native-gallery-media-picker/issues"},"homepage":"https://github.com/Around25/react-native-gallery-media-picker#readme","gitHead":"04175c8d238a9c8b010294f671ca240e89c53f7a","_id":"@around25/react-native-gallery-media-picker@0.1.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"andreirat","email":"andrei.rat@around25.com"},"dist":{"integrity":"sha512-So7czQDrj1Y76FzEsnd2W102r86TfXoX9zSnpomiStRN7HqZKTJI1V+zEPVTIOCqkuhObzLV2zMoS/5j7DG7Pw==","shasum":"459b660c43a70e4049a3b1e132f2bcbddd5ba78a","tarball":"https://registry.npmjs.org/@around25/react-native-gallery-media-picker/-/react-native-gallery-media-picker-0.1.1.tgz","fileCount":9,"unpackedSize":19786,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsYk6jq596hyKZmeBcoHOvmbx+nejVc/9swPUumxEtRgIhAJ7/f8ff/tqkeuzifJw85nYPMMximckf7JejhFF2QWzD"}]},"maintainers":[{"name":"alinporumb","email":"alin.porumb@gmail.com"},{"name":"andreirat","email":"andrei.rat@around25.com"},{"name":"calintamas","email":"calinntamas@gmail.com"},{"name":"cosminharangus","email":"cosmin@around25.com"},{"name":"cupsadarius","email":"cupsadarius@gmail.com"},{"name":"daniel.suciu.developer","email":"suciudaniel2@gmail.com"},{"name":"deniel","email":"denielheinrich@gmail.com"},{"name":"gabicg","email":"dogabicg@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-gallery-media-picker_0.1.1_1522650160664_0.11404388254322817"},"_hasShrinkwrap":false},"0.1.2":{"name":"@around25/react-native-gallery-media-picker","version":"0.1.2","description":"A react native component that will get all the media files (images and video) from device gallery and allow to select items","main":"index.js","scripts":{"test":"test-component"},"keywords":["react-native","camera-roll","media","component","react-native","component"],"peerDependencies":{"react":"^16.3.0-alpha.1","react-native":"0.54.3"},"author":{"name":"Andrei Rat"},"license":"MIT","directories":{"example":"example"},"repository":{"type":"git","url":"git+https://github.com/Around25/react-native-gallery-media-picker.git"},"bugs":{"url":"https://github.com/Around25/react-native-gallery-media-picker/issues"},"homepage":"https://github.com/Around25/react-native-gallery-media-picker#readme","gitHead":"04175c8d238a9c8b010294f671ca240e89c53f7a","_id":"@around25/react-native-gallery-media-picker@0.1.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"andreirat","email":"andrei.rat@around25.com"},"dist":{"integrity":"sha512-HE9PwUAlNB2zuFo8r4yRG0gqgRvGugMsitEHOb0tOhaMXL6licjlzVZ1fKILF5Jlhwlk4IkZp7JPIsxrtqL4Fw==","shasum":"dc3fc9be071c9a0025ab34a759fe1124a4680307","tarball":"https://registry.npmjs.org/@around25/react-native-gallery-media-picker/-/react-native-gallery-media-picker-0.1.2.tgz","fileCount":9,"unpackedSize":20129,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC6HuBBJ18uUa9nu/YA4DeruWVA0T5YgHINAashM95bPAiEAvsTDjdb8dYTlxlEciLUQNyZXYKU4Dx+IivHcy1/61iA="}]},"maintainers":[{"name":"alinporumb","email":"alin.porumb@gmail.com"},{"name":"andreirat","email":"andrei.rat@around25.com"},{"name":"calintamas","email":"calinntamas@gmail.com"},{"name":"cosminharangus","email":"cosmin@around25.com"},{"name":"cupsadarius","email":"cupsadarius@gmail.com"},{"name":"daniel.suciu.developer","email":"suciudaniel2@gmail.com"},{"name":"deniel","email":"denielheinrich@gmail.com"},{"name":"gabicg","email":"dogabicg@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-gallery-media-picker_0.1.2_1522650888748_0.49266742958783327"},"_hasShrinkwrap":false},"0.1.3":{"name":"@around25/react-native-gallery-media-picker","version":"0.1.3","description":"A react native component that will get all the media files (images and video) from device gallery and allow to select items","main":"index.js","scripts":{"test":"test-component"},"keywords":["react-native","camera-roll","media","component","react-native","component"],"peerDependencies":{"react":"^16.3.0-alpha.1","react-native":"0.54.3"},"author":{"name":"Andrei Rat"},"license":"MIT","directories":{"example":"example"},"repository":{"type":"git","url":"git+https://github.com/Around25/react-native-gallery-media-picker.git"},"bugs":{"url":"https://github.com/Around25/react-native-gallery-media-picker/issues"},"homepage":"https://github.com/Around25/react-native-gallery-media-picker#readme","gitHead":"cf7027f3da47de0d1c61a892be8d237bbeda555a","_id":"@around25/react-native-gallery-media-picker@0.1.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"andreirat","email":"andrei.rat@around25.com"},"dist":{"integrity":"sha512-KAFrFSMmb+Z2RLQwmSTMgQnOYUGIsjPtjsTMadAhWdFXYbUUn6HR1A89N9kaq4vNF4alHNtePa8iY3Z+qiEI8w==","shasum":"f607cbcb031f282a8e8d50494cef8a11ad4eb927","tarball":"https://registry.npmjs.org/@around25/react-native-gallery-media-picker/-/react-native-gallery-media-picker-0.1.3.tgz","fileCount":9,"unpackedSize":20162,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa3st0CRA9TVsSAnZWagAAiccP/1mxm6Qd6fG3yhjPj4EW\nteF2HDRTTQkLQ5tS/Oqwrb3uaIDfl7rY0eO4opChaIWZ+0Xf/sdPaZUsUlRq\n8cTamd81GLvF6gXV142tT8X1L5nkuKkfxAenX+SEluuEljvfPK6voiRo6UVF\negxyv1SImQAmoQDluiB/3mb8mEGYLNZm8vVDrFMAbzSYCB9M9WahOSfpHEEv\njQfD+Gd1ZOHrSaBohBS3bA51Oj6IeAm8o9FYYun3lEdk+k+OsshTmBavJ5Jy\nMCGWZWE9DFZKncuNwURy7/0PyERJqIFtJ7oYrSelhon6fZ5rVHbQNqZvbOXG\nBSMM1vWp44m4FrIRbe6XftXv6tpqSNusAhljhnP+jAw4QkmfsFZc1j8FGXcL\n1p8mce9kpoKvqYVNtUUk4YhfI/WKHoYLR+YOc//hNERFRRvCQtB97Md0uiL2\nkFoDIuJXbBBxYqhZHBMUWCpb2IHM1HRweIxpw/7499Jp+b4FG+kmMhFdWzAD\n/msnF2vFQY0lO75WMGrF7ARvgpUdNauPnJ0muEtuCtb671XPk3QlC2xm4Uf5\nzxdNpLMDgJTkZaOYtjUFCPi0JYHFZ9Opcf5IDPNgkvW0kZcxIlWKyb61a+Nm\nFW3tnNNMin5CXmmK+3aD0JdqEaFd41BwucUtdRTAJJBD2Ij4YRQow2uNaJcu\nz4de\r\n=Uf5g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGaqUIuyjtwvewq2GZdQsNS8ez8YjgFIY7HiYY4xT3qoAiEA74W7/zcDagJc5QZpxCRMCqkiQ50JE5CjWdbtHDvMfz8="}]},"maintainers":[{"name":"alinporumb","email":"alin.porumb@gmail.com"},{"name":"andreirat","email":"andrei.rat@around25.com"},{"name":"calintamas","email":"calinntamas@gmail.com"},{"name":"cosminharangus","email":"cosmin@around25.com"},{"name":"cupsadarius","email":"cupsadarius@gmail.com"},{"name":"daniel.suciu.developer","email":"suciudaniel2@gmail.com"},{"name":"deniel","email":"denielheinrich@gmail.com"},{"name":"gabicg","email":"dogabicg@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-gallery-media-picker_0.1.3_1524550515425_0.2352585649070984"},"_hasShrinkwrap":false},"0.1.4":{"name":"@around25/react-native-gallery-media-picker","version":"0.1.4","description":"A react native component that will get all the media files (images and video) from device gallery and allow to select items","main":"index.js","scripts":{"test":"test-component"},"keywords":["react-native","camera-roll","media","component","react-native","component"],"peerDependencies":{"react":"^16.3.0-alpha.1","react-native":"0.54.3","react-native-thumbnail-a25av":"^1.2.0","lodash":"^4.17.11"},"author":{"name":"Andrei Rat"},"license":"MIT","directories":{"example":"example"},"repository":{"type":"git","url":"git+https://github.com/Around25/react-native-gallery-media-picker.git"},"bugs":{"url":"https://github.com/Around25/react-native-gallery-media-picker/issues"},"homepage":"https://github.com/Around25/react-native-gallery-media-picker#readme","dependencies":{"lodash":"^4.17.11","moment":"^2.22.2","react-native-thumbnail-a25av":"^1.2.0"},"gitHead":"bf5c9c80009b3e3108c9adc6a2e4d4949d840eb0","_id":"@around25/react-native-gallery-media-picker@0.1.4","_nodeVersion":"10.15.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-CEj5w25e4JkYJoC3K74R/nNKPTGS7m47JOLyHvEU9nliAPpNnfqTvKfn/+D7w8kXXy792iwSEnykkfzsWFQTyQ==","shasum":"7e1d9e31fa80b5a794a99105caed80c92e15e5a5","tarball":"https://registry.npmjs.org/@around25/react-native-gallery-media-picker/-/react-native-gallery-media-picker-0.1.4.tgz","fileCount":17,"unpackedSize":34202,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcuHWRCRA9TVsSAnZWagAAPrkP+wWSDP/Rs+bdEeD5mg1s\njyYWxlva4tZNz61nvI6TTT9mFj+G/bacvgIO2kTcpbfXZoo8LM3GS7ZV5b7Z\nIpLWKQ/0YGu/ZhepDFu9vp0i6afKWKATFkEyj61fqqEwo4kYIYK3nCvkqR+y\ncwLIteTVBdJ6cKOf+CwvkuErNzjyLi1W4y5cNluPaBKDdBGjjhv66w5mNhNN\nC2iWeu5sq0GRk7logTEIHsJzewt1/NZdxMWB4Gne8TKP7ddg9ovbqxVT211p\ng7h5lLqxSk89JJqAb8Tcaji8Ek2mwcaVTt5Sxj1R8wIvJevp9K3zWbFCq3pF\nwprAwY7OHl4PHUemsx5j1YTFV4j01167e1Sf6DNOLKawkZX8Va5Xc8Nsrc3u\nKXDgbUEWJgZFNqy6QGrCQ99z/MPKLj0AGHUn2xO0J00H5gH1UGxZrHh2fhks\nm6HyKQJSe/C+EH61DWkwf+lCL8T8O55XTqfyASpX1cR2gkF5igzvb+AM0Ql7\nU818BS75H0/vqObV3ISK1z5tkCoS/TlsdcXMQtgqQDmZDixf10h2h//8O5fm\ngdBGQmZD9CPwskSffb/1vCAuBy1u6/KGGck52/ITwkJd883qbuxaCB+1B3hw\nKbSstJWOurYvdOvsQSKalT/a78fVjMUqjiIQ8Sug9zJOdgIacrc623DyuNfs\nrOmC\r\n=sqwp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCa7KLUg+rX96gb0VtTuK2zIRRqwDMHao4HsKZ7NFEupwIhAJd2b7oIFYoHp/aqubl3U1MCRvqWnXbgZP7xBgF5EgPU"}]},"maintainers":[{"email":"adrian@around25.com","name":"adrian.boros"},{"email":"alin.porumb@gmail.com","name":"alinporumb"},{"email":"andrei.rat@around25.com","name":"andreirat"},{"email":"farcas.bianca25@gmail.com","name":"biancap"},{"email":"calinntamas@gmail.com","name":"calintamas"},{"email":"cosmin@around25.com","name":"cosminharangus"},{"email":"cupsadarius@gmail.com","name":"cupsadarius"},{"email":"suciudaniel2@gmail.com","name":"daniel.suciu.developer"},{"email":"dogabicg@gmail.com","name":"gabicg"}],"_npmUser":{"name":"biancap","email":"farcas.bianca25@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-gallery-media-picker_0.1.4_1555592592966_0.36421075796837554"},"_hasShrinkwrap":false},"0.2.0":{"name":"@around25/react-native-gallery-media-picker","version":"0.2.0","description":"A react native component that will get all the media files (images and video) from device gallery and allow to select items","main":"index.js","scripts":{"test":"test-component"},"keywords":["react-native","camera-roll","media","component","react-native","component"],"peerDependencies":{"react":"^16.3.0-alpha.1","react-native":"0.54.3","react-native-thumbnail-a25av":"^1.2.0","lodash":"^4.17.11"},"author":{"name":"Andrei Rat"},"license":"MIT","directories":{"example":"example"},"repository":{"type":"git","url":"git+https://github.com/Around25/react-native-gallery-media-picker.git"},"bugs":{"url":"https://github.com/Around25/react-native-gallery-media-picker/issues"},"homepage":"https://github.com/Around25/react-native-gallery-media-picker#readme","dependencies":{"lodash":"^4.17.11","moment":"^2.22.2","react-native-thumbnail-a25av":"^1.2.0"},"gitHead":"05f74210dfbda8240fd22de6ffcae29fdfd18604","_id":"@around25/react-native-gallery-media-picker@0.2.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-qaao0DeK32Mv3L+lSKS6Wj7uHLMzJZxqFlyPZ4kvrKj6BpTvUlalkjj3VAiufvpacFTPYZPZvgZs3va15/qBFA==","shasum":"9034a0361c905f058746cff84e942080070c1a3d","tarball":"https://registry.npmjs.org/@around25/react-native-gallery-media-picker/-/react-native-gallery-media-picker-0.2.0.tgz","fileCount":17,"unpackedSize":34221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIyK4CRA9TVsSAnZWagAAK/EP/iPsLMLlv3W27kWKeCU1\n1oK0cO/YjEjr7pQd8O7gJS6AOGvJj7fRYPFv/1xxPvcvvQOp73+aAnlE5HJa\nwcVkgQJC52vpAR27qniHLSidORLvJ8eIJEI5SBfVzFGmIFain6fPv0NtdRTx\nKOtBtncdt7YbhwFDzL3hU0efHigTVccL/w1kL18XGi/sryYiekZwjQt9YNWs\nyQuWevc6UXuPCrNyHFuqH8vYq9AJzTvFr/599w24ASDJpnDJyKFVC8DCmNeU\nFbcZBAl4IYsOjYFvvEWFyfntT6PL3aWtUnGUBA8km6UTay7m0xL8/nY6KkmL\nL7ITwHtqdYLtIFk4Fpp1iOfz6KgwLs8/XG84AhH8nxWEUvfNenIaOcsDeqlH\n4PdbVCQDcMEoan+Q94qhspblKZJh+H5HTZKGAUPGY0jxpuECdkiBDF9YbWVp\n/YVQHMf1geTKqHBybxbxYYrB391+kotP+X11sEuxL+XZkH198jCCSLMjxPW4\nHAcZjytR3JNQVG9i4rN4XHtf/ONazoDkcfkaUbFtAKHWkNXxp/EHsOxk/z0W\n4dRs5ckrIGaoFgjcSMavBm7ImndLy7y0DtcWVqJVywAjSN9IkK7DD7bzB3Cg\nUNQO0V78Jq1RPpGwfW9xD1MupvvEZvl8pyEbSjkOiD5sRpySxgGZIYmCC8Yj\nekaZ\r\n=wziK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqCEYr7Xd2LpQ0rVaDk0sqEkSmdSxrT3XX/XM9EmKkQgIhANi2BFHKBay7Z2p5BT0zwOgSK+H/CxcGXkhVspyy974A"}]},"maintainers":[{"email":"adrian@around25.com","name":"adrian.boros"},{"email":"alin.porumb@gmail.com","name":"alinporumb"},{"email":"andrei.rat@around25.com","name":"andreirat"},{"email":"farcas.bianca25@gmail.com","name":"biancap"},{"email":"calinntamas@gmail.com","name":"calintamas"},{"email":"cosmin@around25.com","name":"cosminharangus"},{"email":"cupsadarius@gmail.com","name":"cupsadarius"},{"email":"suciudaniel2@gmail.com","name":"daniel.suciu.developer"},{"email":"dogabicg@gmail.com","name":"gabicg"}],"_npmUser":{"name":"calintamas","email":"calinntamas@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-gallery-media-picker_0.2.0_1579360952483_0.9961627156203412"},"_hasShrinkwrap":false}},"time":{"created":"2018-04-02T06:18:43.980Z","0.1.0":"2018-04-02T06:18:44.076Z","modified":"2022-04-04T15:34:04.072Z","0.1.1":"2018-04-02T06:22:40.757Z","0.1.2":"2018-04-02T06:34:48.833Z","0.1.3":"2018-04-24T06:15:15.482Z","0.1.4":"2019-04-18T13:03:13.065Z","0.2.0":"2020-01-18T15:22:32.632Z"},"maintainers":[{"email":"farcas.bianca25@gmail.com","name":"biancap"},{"email":"adrian@around25.com","name":"adrian.boros"},{"email":"dogabicg@gmail.com","name":"gabicg"},{"email":"suciudaniel2@gmail.com","name":"daniel.suciu.developer"},{"email":"cupsadarius@gmail.com","name":"cupsadarius"},{"email":"calinntamas@gmail.com","name":"calintamas"},{"email":"cosmin@around25.com","name":"cosminharangus"}],"description":"A react native component that will get all the media files (images and video) from device gallery and allow to select items","homepage":"https://github.com/Around25/react-native-gallery-media-picker#readme","keywords":["react-native","camera-roll","media","component","react-native","component"],"repository":{"type":"git","url":"git+https://github.com/Around25/react-native-gallery-media-picker.git"},"author":{"name":"Andrei Rat"},"bugs":{"url":"https://github.com/Around25/react-native-gallery-media-picker/issues"},"license":"MIT","readme":"# @around25/react-native-gallery-media-picker\n\n\n![npm](https://img.shields.io/npm/v/@around25/react-native-gallery-media-picker.svg) ![npm](https://img.shields.io/npm/l/@around25/react-native-gallery-media-picker.svg) ![npm](https://img.shields.io/npm/dw/@around25/react-native-gallery-media-picker.svg) ![npm](https://img.shields.io/npm/dt/@around25/react-native-gallery-media-picker.svg)\n\n\n\n\nThis is a react-native component that fetches gallery files ( images and video ) and render them in a list. Every picture or video can be selected the array with selected items is returned in a callback.\n\n  - works on iOS and Android\n\n### Release notes v2.0\n\nWith the release of version 2.0 of this package, the functionality has been overhauled to work in the following manner:\n  - firstly, display a list of albums for the user to choose from\n  - secondly, display the media that are associated with the selected album\n\nThis is the first implementation of the new functionality and it will receive incremental updates in the future.\n\n### Features\n\n  - creates a list of albums\n  - fetches images and videos for the selected album\n  - categorize the media files by the date they were created ()\n  - render a button that offers a way to go back to the album list\n  - set maximum number of selected items\n  - custom loader component\n  - customizable default loader\n  - option to select just one item\n  - option to change the number of initial list size\n  - fetch only Photos, only Videos or both\n  - set assets location ( albums )\n  - custom text if there are no photos or videos in gallery\n  - set number of items per row\n  - set media file margins\n\n### Categorized by date\n\nWith version 2.0, after selecting an album, the user is presented with a gallery of media files categorized by the date they were created.\n\nThese are the categories:\n  - \"Today\" = files that were created after 00:00 of today\n  - \"This Week\" = files that were created after 00:00 of Monday of the current week\n  - \"This Month\" = files that were created after 00:00 of the first day of the current month\n  - [month name] (descending order) = files that were created between 00:00 of the first day of the previous month and 00:00 of the first day of the current month\n  - [year] (descending order) = files tht were created between 00:00 of 1st of January of the previous year and 00:00 of 1st of January of the current year\n\nThe categories, that are empty, are not rendered.\n\n### Installation\n\n```sh\n$ npm i @around25/react-native-gallery-media-picker --save\n```\n\n### iOS\n\nAdd in `info.plist`\n\n```<plist version=\"1.0\">\n  <dict>\n    ...\n    <key>NSPhotoLibraryUsageDescription</key>\n    <string>$(PRODUCT_NAME) would like access to your photo gallery</string>\n    <key>NSPhotoLibraryAddUsageDescription</key>\n    <string>$(PRODUCT_NAME) would like to save photos to your photo gallery</string>\n  </dict>\n</plist>\n```\n\n### Android\n\nAdd the required permissions in `AndroidManifest.xml`\n\n```\n<uses-permission android:name=\"android.permission.CAMERA\" />\n```\nAnd then request camera permission in your component\n\n```\nimport { PermissionsAndroid } from 'react-native';\n\n\n  async requestCameraPermission() {\n    try {\n      const granted = await PermissionsAndroid.request(\n        PermissionsAndroid.PERMISSIONS.CAMERA,\n        {\n          'title': 'Cool Photo App Camera Permission',\n          'message': 'Cool Photo App needs access to your camera ' +\n          'so you can take awesome pictures.'\n        }\n      )\n      if (granted === PermissionsAndroid.RESULTS.GRANTED) {\n        console.log(\"Camera permission accepted\")\n      } else {\n        console.log(\"Camera permission denied\")\n      }\n    } catch (err) {\n      console.warn(err)\n    }\n  }\n  ```\n\n### Options\n\n\n\n| Option | iOS    | Android | Description | Default | Options | Type\n|:------:|:------:|:-------:|:----:|:-------------:|:--------:|:----:|\n| `batchSize` | YES | YES | How many items to render in the initial batch. This should be enough to fill the screen but not much more. | ***1*** | - | **{integer}**\n| `groupTypes` | YES | NO | Specifies which group types to filter the results to | ***SavedPhotos*** | *All*, *Album*, *Event*, *Faces*, *Library*, *PhotoStream*, *SavedPhotos* | **{string}**\n| `assetType` | YES | YES | Specifies filter on assets | ***Photos*** | *All*, *Photos*, *Videos* | **{string}**\n| `selectSingleItem` | YES | YES | If `true` only one item can be selected | ***false*** | *true*, *false* | **{boolean}**\n| `emptyGalleryText` | YES | YES | Specifies the text to display if there are no images or videos | ***There are no photos or video*** | - | **{string}**\n| `maximumSelectedFiles` | YES | YES | Specifies the number of files that can be selected | ***15*** | - | **{integer}**\n| `selected` | YES | YES | Specifies the array with selected files that are retuned from callback in your component | ***[]***  | - | **{array}**\n| `itemsPerRow` | YES | YES | Specifies the number of items on one row | ***3***  | - | **{integer}**\n| `imageMargin` | YES | YES | Specifies margins of the image | ***5***  | - | **{integer}**\n| `customLoader` | YES | YES | Specifies custom component with loading indicator | ***<ActivityIndicator/>***  | - | **{component}**\n| `customSelectMarker` | YES | YES | Specifies custom component with select marker | ***<Image/>***  | - | **{component}**\n| `markIcon` | YES | YES | Specifies custom icon for default marker | - | - | **{image}**\n\n### Methods\n| Method | Description | Type\n|:------:|:-----------:|:----:|\n| `callback` | Callback with selected files and current selected file | ***{function}***\n\n### Example\n\n```javascript\nimport React, { Component } from 'react';\nimport { StyleSheet, ActivityIndicator, View, Image, PermissionsAndroid } from 'react-native';\n\nimport GalleryMediaPicker from 'react-native-gallery-media-picker'\nconst marker = require('./check.png');\n\nexport default class App extends Component {\n  constructor(props){\n    super(props);\n    this.state = {\n      totalFiles: 0,\n      selected: [],\n      hasPermission: false\n    }\n  }\n\n\n  async requestCameraPermission() {\n    try {\n      const granted = await PermissionsAndroid.request(\n        PermissionsAndroid.PERMISSIONS.CAMERA,\n        {\n          'title': 'Cool Photo App Camera Permission',\n          'message': 'Cool Photo App needs access to your camera ' +\n          'so you can take awesome pictures.'\n        }\n      )\n      if (granted === PermissionsAndroid.RESULTS.GRANTED) {\n        this.setState({hasPermission: true })\n      } else {\n        console.log(\"Camera permission denied\")\n      }\n    } catch (err) {\n      console.warn(err)\n    }\n  }\n\n  componentWillMount(){\n    this.requestCameraPermission();\n  }\n\n  getSelectedFiles(files, current) {\n    this.setState({ totalFiles: files.length, selected: files });\n    console.log('Current: ',current);\n    console.log(this.state.selected);\n  }\n\n  /**\n  * @description Render custom loader that shows when files are fetching\n  */\n  renderLoader(){\n    return(\n      <ActivityIndicator color=\"red\" size=\"large\"/>\n    )\n  }\n\n  /**\n  * @description Render custom marker\n  * This will cancel the \"markIcon\" option\n  */\n  renderSelectMarker(){\n    return(\n    <View style={styles.markerWrapper}>\n      <Image source={marker} style={styles.marker}/>\n    </View>\n    )\n  }\n\n  render() {\n    return (\n      <View style={styles.container}>\n        {this.state. hasPermission && <GalleryMediaPicker\n          groupTypes='All'\n          assetType='All'\n          markIcon={marker}\n          customSelectMarker={this.renderSelectMarker()}\n          batchSize={1}\n          emptyGalleryText={'There are no photos or video'}\n          maximumSelectedFiles={3}\n          selected={this.state.selected}\n          itemsPerRow={3}\n          imageMargin={3}\n          customLoader={this.renderLoader()}\n          callback={this.getSelectedFiles.bind(this)} />}\n      </View>\n    );\n  }\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1\n  },\n  marker:{\n    width: 30,\n    height: 30,\n    zIndex: 2445,\n    top: 5,\n    right: 5,\n    backgroundColor: 'transparent',\n  },\n  markerWrapper: {\n    position: 'absolute',\n    flex:1,\n    top: 0 ,\n    zIndex: 2445,\n    bottom: 0,\n    left: 0,\n    right: 0,\n    alignItems: 'center',\n    justifyContent: 'center'\n  }\n});\n\n```\n\n# Todos\n\n - add more options\n - add filter buttons\n - add overlay with total video duration for video files\n - add more customization\n - add an \"All\" album\n - add the possibility to disable categorization by date\n\n# License\n\nMIT\n","readmeFilename":"README.md"}