{"_id":"react-native-view-shot","_rev":"1016296","name":"react-native-view-shot","description":"Capture a React Native view to an image","dist-tags":{"latest":"3.1.2"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"time":{"modified":"2021-09-28T15:33:42.000Z","created":"2016-08-23T19:59:04.150Z","3.1.2":"2020-01-27T10:27:40.987Z","3.1.1":"2020-01-20T08:42:43.645Z","3.1.0":"2020-01-19T15:51:25.133Z","3.0.2":"2019-08-10T03:48:56.153Z","3.0.1":"2019-07-25T07:53:18.052Z","3.0.0":"2019-07-16T17:23:39.909Z","2.6.0":"2019-05-08T13:01:16.260Z","2.5.0":"2018-10-25T12:56:53.913Z","2.4.0":"2018-06-10T12:10:42.242Z","2.3.0":"2018-02-08T19:27:25.872Z","2.2.0":"2017-11-21T10:10:39.438Z","2.1.1":"2017-10-07T16:06:28.722Z","2.1.0":"2017-09-24T07:56:29.357Z","2.0.0":"2017-08-25T19:45:22.787Z","1.12.0":"2017-08-25T12:34:23.991Z","1.11.0":"2017-08-25T08:51:47.890Z","1.10.1":"2017-06-29T12:37:50.569Z","1.10.0":"2017-06-28T14:22:22.822Z","1.9.1":"2017-03-12T09:30:27.216Z","1.9.0":"2017-03-11T12:29:07.606Z","1.8.0":"2017-03-04T16:38:35.775Z","1.7.0":"2017-02-20T14:01:45.347Z","1.6.0":"2017-01-10T09:53:35.302Z","1.5.1":"2016-11-30T21:11:15.016Z","1.5.0":"2016-10-08T07:57:44.043Z","1.4.0":"2016-10-05T17:46:25.704Z","1.3.0":"2016-10-03T10:35:12.532Z","1.2.0":"2016-10-01T08:30:11.163Z","1.1.4":"2016-09-30T16:37:56.852Z","1.1.3":"2016-09-26T07:45:57.255Z","1.1.2":"2016-09-09T21:54:58.873Z","1.1.1":"2016-09-08T14:59:18.597Z","1.1.0":"2016-08-25T15:05:51.173Z","1.0.2":"2016-08-23T20:18:15.208Z","1.0.1":"2016-08-23T20:03:00.023Z","1.0.0":"2016-08-23T19:59:04.150Z"},"users":{"christianmec":true},"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"repository":{"type":"git","url":"https://github.com/gre/react-native-view-shot.git"},"versions":{"3.1.2":{"name":"react-native-view-shot","version":"3.1.2","description":"Capture a React Native view to an image","main":"src/index.js","types":"src/index.d.ts","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"homepage":"https://github.com/gre/react-native-view-shot","license":"MIT","repository":{"type":"git","url":"https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react":"*","react-native":"*"},"devDependencies":{"flow-bin":"^0.116.1","react":"^16.12.0","react-native":"^0.61.5"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2016 Gaëtan Renaudeau\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-native-view-shot@3.1.2","dist":{"shasum":"8c8e84c67a4bc8b603e697dbbd59dbc9b4f84825","size":32013,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-3.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-3.1.2.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot_3.1.2_1580120860837_0.7177451771419294"},"_hasShrinkwrap":false,"publish_time":1580120860987,"_cnpm_publish_time":1580120860987},"3.1.1":{"name":"react-native-view-shot","version":"3.1.1","description":"Capture a React Native view to an image","main":"src/index.js","types":"src/index.d.ts","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"homepage":"https://github.com/gre/react-native-view-shot","license":"MIT","repository":{"type":"git","url":"https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react":"*","react-native":"*"},"devDependencies":{"flow-bin":"^0.116.1","react":"^16.12.0","react-native":"^0.61.5"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2016 Gaëtan Renaudeau\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-native-view-shot@3.1.1","dist":{"shasum":"d21ed5414c696f7bfd7544f81eab6a430d6d68f9","size":32014,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-3.1.1.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot_3.1.1_1579509763507_0.6387566383586567"},"_hasShrinkwrap":false,"publish_time":1579509763645,"_cnpm_publish_time":1579509763645},"3.1.0":{"name":"react-native-view-shot","version":"3.1.0","description":"Capture a React Native view to an image","main":"src/index.js","types":"src/index.d.ts","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"homepage":"https://github.com/gre/react-native-view-shot","license":"MIT","repository":{"type":"git","url":"https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react":"*","react-native":"*"},"devDependencies":{"flow-bin":"^0.116.1","react":"^16.12.0","react-native":"^0.61.5"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2016 Gaëtan Renaudeau\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-native-view-shot@3.1.0","dist":{"shasum":"a2aeca4a7e93f2658f2c96e77344006e038a7f93","size":31669,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-3.1.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot_3.1.0_1579449085026_0.7132373550443427"},"_hasShrinkwrap":false,"publish_time":1579449085133,"_cnpm_publish_time":1579449085133},"3.0.2":{"name":"react-native-view-shot","version":"3.0.2","description":"Capture a React Native view to an image","main":"src/index.js","types":"src/index.d.ts","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"homepage":"https://github.com/gre/react-native-view-shot","license":"MIT","repository":{"type":"git","url":"https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react":"*","react-native":"*"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2016 Gaëtan Renaudeau\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-native-view-shot@3.0.2","dist":{"shasum":"daccaec5b8038a680b17533ff7e72876e68c7d0d","size":32057,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-3.0.2.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot_3.0.2_1565408936030_0.17636904249813834"},"_hasShrinkwrap":false,"publish_time":1565408936153,"_cnpm_publish_time":1565408936153},"3.0.1":{"name":"react-native-view-shot","version":"3.0.1","description":"Capture a React Native view to an image","main":"src/index.js","types":"src/index.d.ts","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react":"*","react-native":"*"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2016 Gaëtan Renaudeau\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-native-view-shot@3.0.1","dist":{"shasum":"192b94e9f7f8319ff5f64e0fca98590dc084fadf","size":31872,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-3.0.1.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot_3.0.1_1564041197835_0.21214307286539524"},"_hasShrinkwrap":false,"publish_time":1564041198052,"_cnpm_publish_time":1564041198052},"3.0.0":{"name":"react-native-view-shot","version":"3.0.0","description":"Capture a React Native view to an image","main":"src/index.js","types":"src/index.d.ts","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react":"*","react-native":"*"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2016 Gaëtan Renaudeau\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-native-view-shot@3.0.0","dist":{"shasum":"6bc4098287d23a3eec300c55c145d69489a1155b","size":31863,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-3.0.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot_3.0.0_1563297819599_0.47298804307748976"},"_hasShrinkwrap":false,"publish_time":1563297819909,"_cnpm_publish_time":1563297819909},"2.6.0":{"name":"react-native-view-shot","version":"2.6.0","description":"Capture a React Native view to an image","main":"src/index.js","types":"src/index.d.ts","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react":"*","react-native":"*"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2016 Gaëtan Renaudeau\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-native-view-shot@2.6.0","dist":{"shasum":"3b23675826f67658366352c4b97b59a6aded2f43","size":31802,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-2.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-2.6.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot_2.6.0_1557320476093_0.999144293340472"},"_hasShrinkwrap":false,"publish_time":1557320476260,"_cnpm_publish_time":1557320476260},"2.5.0":{"name":"react-native-view-shot","version":"2.5.0","description":"Capture a React Native view to an image","main":"src/index.js","types":"src/index.d.ts","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react":"*","react-native":"*"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2016 Gaëtan Renaudeau\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-native-view-shot@2.5.0","dist":{"shasum":"428a997f470d3148d0067c5b46abd988ef1aa4c0","size":29211,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-2.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-2.5.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot_2.5.0_1540472213788_0.3314518311911132"},"_hasShrinkwrap":false,"publish_time":1540472213913,"_cnpm_publish_time":1540472213913},"2.4.0":{"name":"react-native-view-shot","version":"2.4.0","description":"Capture a React Native view to an image","main":"src/index.js","types":"src/index.d.ts","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react":"*","react-native":"*"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2016 Gaëtan Renaudeau\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"react-native-view-shot@2.4.0","dist":{"shasum":"ba5dd7607a217a2fdd9e2e8165d0eb24614d2438","size":24917,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-2.4.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot_2.4.0_1528632642000_0.8569024510201322"},"_hasShrinkwrap":false,"publish_time":1528632642242,"_cnpm_publish_time":1528632642242},"2.3.0":{"name":"react-native-view-shot","version":"2.3.0","description":"Capture a React Native view to an image","main":"src/index.js","types":"src/index.d.ts","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react":"*","react-native":"*"},"gitHead":"f5da06eaeaa7f8ccad15dedc4e4c5b1e39661404","bugs":{"url":"https://github.com/gre/react-native-view-shot/issues"},"homepage":"https://github.com/gre/react-native-view-shot#readme","_id":"react-native-view-shot@2.3.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"ac01880d3c560f0dc918cd7cdf8854c6ff85ca31","size":28419,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-2.3.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot_2.3.0_1518118045114_0.742908861787452"},"_hasShrinkwrap":false,"publish_time":1518118045872,"_cnpm_publish_time":1518118045872},"2.2.0":{"name":"react-native-view-shot","version":"2.2.0","description":"Capture a React Native view to an image","main":"src/index.js","types":"src/index.d.ts","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react":"*","react-native":"*"},"gitHead":"c10818a0d7f49e252c5e9f189d1707e081d52954","bugs":{"url":"https://github.com/gre/react-native-view-shot/issues"},"homepage":"https://github.com/gre/react-native-view-shot#readme","_id":"react-native-view-shot@2.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.7.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"482dc21bc37379aca8f3f97a694c080a57f1ea78","size":28362,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-2.2.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot-2.2.0.tgz_1511259038104_0.4662978022824973"},"directories":{},"publish_time":1511259039438,"_cnpm_publish_time":1511259039438,"_hasShrinkwrap":false},"2.1.1":{"name":"react-native-view-shot","version":"2.1.1","description":"Capture a React Native view to an image","main":"src/index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react":"*","react-native":"*"},"gitHead":"281cebfa5bc360fcf410f55e1baf2892a731764d","bugs":{"url":"https://github.com/gre/react-native-view-shot/issues"},"homepage":"https://github.com/gre/react-native-view-shot#readme","_id":"react-native-view-shot@2.1.1","_npmVersion":"5.4.2","_nodeVersion":"8.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"01d372a906bc71da8b0058c13f693f7ea33d6c31","size":26963,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-2.1.1.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot-2.1.1.tgz_1507392387638_0.12812449573539197"},"directories":{},"publish_time":1507392388722,"_hasShrinkwrap":false,"_cnpm_publish_time":1507392388722},"2.1.0":{"name":"react-native-view-shot","version":"2.1.0","description":"Capture a React Native view to an image","main":"src/index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react":"*","react-native":"*"},"gitHead":"840f34e1d0003ce28ae2d1105915aa5585cfad7a","bugs":{"url":"https://github.com/gre/react-native-view-shot/issues"},"homepage":"https://github.com/gre/react-native-view-shot#readme","_id":"react-native-view-shot@2.1.0","_npmVersion":"5.4.2","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"184dd01f43f20035f8f8a84c23bf48f04b260eac","size":26938,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-2.1.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot-2.1.0.tgz_1506239788264_0.5616782025899738"},"directories":{},"publish_time":1506239789357,"_cnpm_publish_time":1506239789357,"_hasShrinkwrap":false},"2.0.0":{"name":"react-native-view-shot","version":"2.0.0","description":"Capture a React Native view to an image","main":"src/index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react":"*","react-native":"*"},"gitHead":"96b25b95c994a370c5f4a372c8cdc80bcdc1883f","bugs":{"url":"https://github.com/gre/react-native-view-shot/issues"},"homepage":"https://github.com/gre/react-native-view-shot#readme","_id":"react-native-view-shot@2.0.0","scripts":{},"_shasum":"1485e1955c25f38912eade0a2bb5a53e73038226","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"1485e1955c25f38912eade0a2bb5a53e73038226","size":25552,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-2.0.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot-2.0.0.tgz_1503690321565_0.01906265108846128"},"directories":{},"publish_time":1503690322787,"_hasShrinkwrap":false,"_cnpm_publish_time":1503690322787},"1.12.0":{"name":"react-native-view-shot","version":"1.12.0","description":"Capture a React Native view to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react-native":"*"},"gitHead":"3494679d162baee2fc7fa7df661229342ae0d56c","bugs":{"url":"https://github.com/gre/react-native-view-shot/issues"},"homepage":"https://github.com/gre/react-native-view-shot#readme","_id":"react-native-view-shot@1.12.0","scripts":{},"_shasum":"04db79f55567873de0901720290d1ad53318fe6b","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"04db79f55567873de0901720290d1ad53318fe6b","size":24313,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.12.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.12.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot-1.12.0.tgz_1503664462960_0.4710859360639006"},"directories":{},"publish_time":1503664463991,"_cnpm_publish_time":1503664463991,"_hasShrinkwrap":false},"1.11.0":{"name":"react-native-view-shot","version":"1.11.0","description":"Capture a React Native view to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react-native":"*"},"gitHead":"0c77779dd6bae4eec9f58a99a7b153bed96f14ce","bugs":{"url":"https://github.com/gre/react-native-view-shot/issues"},"homepage":"https://github.com/gre/react-native-view-shot#readme","_id":"react-native-view-shot@1.11.0","scripts":{},"_shasum":"5a5f93f1fd2649a39d782b7aec3612e71c6153d8","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"5a5f93f1fd2649a39d782b7aec3612e71c6153d8","size":34591,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.11.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.11.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot-1.11.0.tgz_1503651106720_0.9216880737803876"},"directories":{},"publish_time":1503651107890,"_hasShrinkwrap":false,"_cnpm_publish_time":1503651107890},"1.10.1":{"name":"react-native-view-shot","version":"1.10.1","description":"Capture a React Native view to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react-native":"*"},"gitHead":"f5131acdbac76606d8118a6512f8e7104faf048b","bugs":{"url":"https://github.com/gre/react-native-view-shot/issues"},"homepage":"https://github.com/gre/react-native-view-shot#readme","_id":"react-native-view-shot@1.10.1","scripts":{},"_shasum":"68fd82478b2c0fb1f6a2a57abd8908c5da9531d6","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.10.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"68fd82478b2c0fb1f6a2a57abd8908c5da9531d6","size":34217,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.10.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.10.1.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot-1.10.1.tgz_1498739869420_0.8440981421153992"},"directories":{},"publish_time":1498739870569,"_cnpm_publish_time":1498739870569,"_hasShrinkwrap":false},"1.10.0":{"name":"react-native-view-shot","version":"1.10.0","description":"Capture a React Native view to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react-native":"*"},"gitHead":"45805bf3df3be95ac55bfe16551410c76ae7ac8b","bugs":{"url":"https://github.com/gre/react-native-view-shot/issues"},"homepage":"https://github.com/gre/react-native-view-shot#readme","_id":"react-native-view-shot@1.10.0","scripts":{},"_shasum":"6e072cd09539f471d3154046ba9359fdd07bb45f","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.10.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"6e072cd09539f471d3154046ba9359fdd07bb45f","size":34202,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.10.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.10.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-view-shot-1.10.0.tgz_1498659741725_0.7664323782082647"},"directories":{},"publish_time":1498659742822,"_cnpm_publish_time":1498659742822,"_hasShrinkwrap":false},"1.9.1":{"name":"react-native-view-shot","version":"1.9.1","description":"Capture a React Native view to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gre/react-native-view-shot.git"},"peerDependencies":{"react-native":"*"},"gitHead":"7af88da153436ef22b7857102a8e515b97388e13","bugs":{"url":"https://github.com/gre/react-native-view-shot/issues"},"homepage":"https://github.com/gre/react-native-view-shot#readme","_id":"react-native-view-shot@1.9.1","scripts":{},"_shasum":"22b37a31c37779d5f207009a39bc11f3e15c323e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"22b37a31c37779d5f207009a39bc11f3e15c323e","size":33484,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.9.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.9.1.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.9.1.tgz_1489311024952_0.6790222499985248"},"directories":{},"publish_time":1489311027216,"_cnpm_publish_time":1489311027216,"_hasShrinkwrap":false},"1.9.0":{"name":"react-native-view-shot","version":"1.9.0","description":"Capture a React Native view to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","peerDependencies":{"react-native":"*"},"gitHead":"70b75ce0eb9730a30cb19ff8a0b3be5b9d32a2ef","_id":"react-native-view-shot@1.9.0","scripts":{},"_shasum":"0c801fdefd3560ab70349dbea0938ee31c1e166b","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"0c801fdefd3560ab70349dbea0938ee31c1e166b","size":33454,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.9.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.9.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.9.0.tgz_1489235345573_0.5617980260867625"},"directories":{},"publish_time":1489235347606,"_cnpm_publish_time":1489235347606,"_hasShrinkwrap":false},"1.8.0":{"name":"react-native-view-shot","version":"1.8.0","description":"Snapshot a React Native view and save it to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","peerDependencies":{"react-native":"*"},"gitHead":"0066b82c0adfbc88d7ab4fd2ed63327080a7fa8f","_id":"react-native-view-shot@1.8.0","scripts":{},"_shasum":"3a6e701d44bf419c0ac0927de995db570d047a77","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"3a6e701d44bf419c0ac0927de995db570d047a77","size":22306,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.8.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.8.0.tgz_1488645515352_0.42989432089962065"},"directories":{},"publish_time":1488645515775,"_cnpm_publish_time":1488645515775,"_hasShrinkwrap":false},"1.7.0":{"name":"react-native-view-shot","version":"1.7.0","description":"Snapshot a React Native view and save it to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","peerDependencies":{"react-native":"*"},"gitHead":"ef1a8d0b5f9712d8f82b6a243b2d733f66ecf84e","_id":"react-native-view-shot@1.7.0","scripts":{},"_shasum":"4fcedcba67a59b09bdf4244d96db62c7447025bc","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"4fcedcba67a59b09bdf4244d96db62c7447025bc","size":21411,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.7.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.7.0.tgz_1487599304672_0.6773081242572516"},"directories":{},"publish_time":1487599305347,"_cnpm_publish_time":1487599305347,"_hasShrinkwrap":false},"1.6.0":{"name":"react-native-view-shot","version":"1.6.0","description":"Snapshot a React Native view and save it to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","peerDependencies":{"react-native":"*"},"gitHead":"d7f3fd81ccb6ab799fe7b1c996661bf82ae32279","_id":"react-native-view-shot@1.6.0","scripts":{},"_shasum":"fc6d42dc8a83f6ae68f5026f3be2481f64e308fd","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"fc6d42dc8a83f6ae68f5026f3be2481f64e308fd","size":21165,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.6.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.6.0.tgz_1484042013171_0.7487512629013509"},"directories":{},"publish_time":1484042015302,"_cnpm_publish_time":1484042015302,"_hasShrinkwrap":false},"1.5.1":{"name":"react-native-view-shot","version":"1.5.1","description":"Snapshot a React Native view and save it to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","peerDependencies":{"react-native":">=0.30.0"},"gitHead":"aa11f0ab1e5d41bf34185c1dcc2ef13319a2763b","_id":"react-native-view-shot@1.5.1","scripts":{},"_shasum":"693b1992ed16a6de3964f0d2e8ac42a3cc07dba2","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"693b1992ed16a6de3964f0d2e8ac42a3cc07dba2","size":20467,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.5.1.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.5.1.tgz_1480540272854_0.5311376724857837"},"directories":{},"publish_time":1480540275016,"_cnpm_publish_time":1480540275016,"_hasShrinkwrap":false},"1.5.0":{"name":"react-native-view-shot","version":"1.5.0","description":"Snapshot a React Native view and save it to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","peerDependencies":{"react-native":">=0.30.0"},"gitHead":"c623b5750c6c1f6dedf0e230ebd30bd49a3ecf5a","_id":"react-native-view-shot@1.5.0","scripts":{},"_shasum":"18cf3da736224ee53aa2224201fbf949d496ad01","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"18cf3da736224ee53aa2224201fbf949d496ad01","size":20456,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.5.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.5.0.tgz_1475913463496_0.9775923036504537"},"directories":{},"publish_time":1475913464043,"_cnpm_publish_time":1475913464043,"_hasShrinkwrap":false},"1.4.0":{"name":"react-native-view-shot","version":"1.4.0","description":"Snapshot a React Native view and save it to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","peerDependencies":{"react-native":">=0.30.0"},"gitHead":"5ff7c6db1542428b984c8e5620b21899ef3a13b9","_id":"react-native-view-shot@1.4.0","scripts":{},"_shasum":"2d47791235e1353c10cd99d88688a3ad1d18e5b1","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"2d47791235e1353c10cd99d88688a3ad1d18e5b1","size":20502,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.4.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.4.0.tgz_1475689583604_0.3221254616510123"},"directories":{},"publish_time":1475689585704,"_cnpm_publish_time":1475689585704,"_hasShrinkwrap":false},"1.3.0":{"name":"react-native-view-shot","version":"1.3.0","description":"Snapshot a React Native view and save it to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","peerDependencies":{"react-native":">=0.30.0"},"gitHead":"31bac790464c44a469e536947213960344f02ee6","_id":"react-native-view-shot@1.3.0","scripts":{},"_shasum":"134d65fe459ab90485ef81a4fadc248494288a8b","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"134d65fe459ab90485ef81a4fadc248494288a8b","size":20302,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.3.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.3.0.tgz_1475490911166_0.5720115231815726"},"directories":{},"publish_time":1475490912532,"_cnpm_publish_time":1475490912532,"_hasShrinkwrap":false},"1.2.0":{"name":"react-native-view-shot","version":"1.2.0","description":"Snapshot a React Native view and save it to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","peerDependencies":{"react-native":">=0.30.0"},"gitHead":"fb8890ffe48357a98900dccc9513015f8d8b720a","_id":"react-native-view-shot@1.2.0","scripts":{},"_shasum":"77fce5cc6ddd4f29b64cdc1a0f4dbefeb2c58b7f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"77fce5cc6ddd4f29b64cdc1a0f4dbefeb2c58b7f","size":20442,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.2.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.2.0.tgz_1475310609929_0.0041920633520931005"},"directories":{},"publish_time":1475310611163,"_cnpm_publish_time":1475310611163,"_hasShrinkwrap":false},"1.1.4":{"name":"react-native-view-shot","version":"1.1.4","description":"Snapshot a React Native view and save it to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","peerDependencies":{"react-native":">=0.30.0"},"gitHead":"47cc7a8abc3721938d38f0ca5a38693965fa25e8","_id":"react-native-view-shot@1.1.4","scripts":{},"_shasum":"0cfc0c20741d85bf3a439aa6fb81935859608c0a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"0cfc0c20741d85bf3a439aa6fb81935859608c0a","size":20273,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.1.4.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.1.4.tgz_1475253475670_0.3498617145232856"},"directories":{},"publish_time":1475253476852,"_cnpm_publish_time":1475253476852,"_hasShrinkwrap":false},"1.1.3":{"name":"react-native-view-shot","version":"1.1.3","description":"Snapshot a React Native view and save it to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","peerDependencies":{"react-native":">=0.30.0"},"gitHead":"b48921c9448a94784ccbad47adcdf8f1c6958464","_id":"react-native-view-shot@1.1.3","scripts":{},"_shasum":"58c8d25014aa1d4860beb90f32475aedc7fca781","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"58c8d25014aa1d4860beb90f32475aedc7fca781","size":10091,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.1.3.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.1.3.tgz_1474875956009_0.9575810865499079"},"directories":{},"publish_time":1474875957255,"_cnpm_publish_time":1474875957255,"_hasShrinkwrap":false},"1.1.2":{"name":"react-native-view-shot","version":"1.1.2","description":"Snapshot a React Native view and save it to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","peerDependencies":{"react-native":">=0.30.0"},"gitHead":"741cbf2a54abc641ba83d3a0b206b5741485bd6e","_id":"react-native-view-shot@1.1.2","scripts":{},"_shasum":"abf312fd6f60030e8570afe2869996e77c0ab780","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"abf312fd6f60030e8570afe2869996e77c0ab780","size":9375,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.1.2.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.1.2.tgz_1473458097332_0.36899116775020957"},"directories":{},"publish_time":1473458098873,"_cnpm_publish_time":1473458098873,"_hasShrinkwrap":false},"1.1.1":{"name":"react-native-view-shot","version":"1.1.1","description":"Snapshot a React Native view and save it to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","peerDependencies":{"react-native":">=0.30.0"},"gitHead":"a6c2c6b6b8fa66eedd1a21d538985679f8e87f97","_id":"react-native-view-shot@1.1.1","scripts":{},"_shasum":"9b360eb48e2b602b5cd58477018e770c3714d0f0","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"9b360eb48e2b602b5cd58477018e770c3714d0f0","size":9250,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.1.1.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.1.1.tgz_1473346756956_0.7964804640505463"},"directories":{},"publish_time":1473346758597,"_cnpm_publish_time":1473346758597,"_hasShrinkwrap":false},"1.1.0":{"name":"react-native-view-shot","version":"1.1.0","description":"Snapshot a React Native view and save it to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","peerDependencies":{"react-native":">=0.30.0"},"gitHead":"9b6cd06e08d24311b84b95e966b592e55b4fcb2c","_id":"react-native-view-shot@1.1.0","scripts":{},"_shasum":"327a1689a6108712b9206b3348e7d19c4cbcde64","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"327a1689a6108712b9206b3348e7d19c4cbcde64","size":9082,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.1.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.1.0.tgz_1472137549225_0.17567434604279697"},"directories":{},"publish_time":1472137551173,"_cnpm_publish_time":1472137551173,"_hasShrinkwrap":false},"1.0.2":{"name":"react-native-view-shot","version":"1.0.2","description":"Snapshot a React Native view and save it to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":{"name":"Gaëtan Renaudeau","email":"renaudeau.gaetan@gmail.com"},"license":"MIT","peerDependencies":{"react-native":">=0.30.0"},"gitHead":"c68669bed70ea1acd9ad5ea48f860ab053a5d107","_id":"react-native-view-shot@1.0.2","scripts":{},"_shasum":"bdc52d33c5e71609ee7f57f4af0be9970b5f6d26","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"bdc52d33c5e71609ee7f57f4af0be9970b5f6d26","size":8282,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.0.2.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.0.2.tgz_1471983493417_0.06843728641979396"},"directories":{},"publish_time":1471983495208,"_cnpm_publish_time":1471983495208,"_hasShrinkwrap":false},"1.0.1":{"name":"react-native-view-shot","version":"1.0.1","description":"Snapshot a React Native view and save it to an image","main":"index.js","keywords":["react-native","screenshot","viewshot","view-snapshot","snapshot","rasterize"],"author":"","license":"","peerDependencies":{"react-native":">=0.30.0"},"gitHead":"c397eea77f1316171cc2669d81c4b1e35cad4573","_id":"react-native-view-shot@1.0.1","scripts":{},"_shasum":"ee06ad2c5a1da9e8ad2dae5ede2c8f9989fb9867","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"ee06ad2c5a1da9e8ad2dae5ede2c8f9989fb9867","size":8240,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.0.1.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.0.1.tgz_1471982577606_0.339295192155987"},"directories":{},"publish_time":1471982580023,"_cnpm_publish_time":1471982580023,"_hasShrinkwrap":false},"1.0.0":{"name":"react-native-view-shot","version":"1.0.0","description":"Snapshot a view and save to an image.","main":"index.js","keywords":["react-native"],"author":"","license":"","peerDependencies":{"react-native":">=0.30.0"},"_id":"react-native-view-shot@1.0.0","scripts":{},"_shasum":"5a70e4cb433240f3d653ce071c750e5f15c1772c","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"gre","email":"renaudeau.gaetan@gmail.com"},"dist":{"shasum":"5a70e4cb433240f3d653ce071c750e5f15c1772c","size":308363,"noattachment":false,"key":"/react-native-view-shot/-/react-native-view-shot-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-view-shot/download/react-native-view-shot-1.0.0.tgz"},"maintainers":[{"name":"gre","email":"renaudeau.gaetan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-native-view-shot-1.0.0.tgz_1471982341748_0.6602246728725731"},"directories":{},"publish_time":1471982344150,"_cnpm_publish_time":1471982344150,"_hasShrinkwrap":false}},"readme":"# react-native-view-shot ![](https://img.shields.io/npm/v/react-native-view-shot.svg) ![](https://img.shields.io/badge/react--native-%2040+-05F561.svg)\n\nCapture a React Native view to an image.\n\n<img src=\"./example/docs/recursive.gif\" width=300 />\n\n## Install\n\n```bash\nyarn add react-native-view-shot\n```\n\nMake sure react-native-view-shot is correctly linked in XCode (might require a manual installation, refer to [React Native doc](https://facebook.github.io/react-native/docs/linking-libraries-ios.html)).\n\n**Before React Native 0.60.x you would have to:**\n\n```bash\nreact-native link react-native-view-shot\n```\n\n**Since 0.60.x, [autolink](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md) should just work**, On iOS, you might have to:\n\n```bash\ncd ios && pod install && cd ..\n```\n\n## Recommended High Level API\n\n```js\nimport ViewShot from \"react-native-view-shot\";\n\nclass ExampleCaptureOnMountManually extends Component {\n  componentDidMount () {\n    this.refs.viewShot.capture().then(uri => {\n      console.log(\"do something with \", uri);\n    });\n  }\n  render() {\n    return (\n      <ViewShot ref=\"viewShot\" options={{ format: \"jpg\", quality: 0.9 }}>\n        <Text>...Something to rasterize...</Text>\n      </ViewShot>\n    );\n  }\n}\n\n// alternative\nclass ExampleCaptureOnMountSimpler extends Component {\n  onCapture = uri => {\n    console.log(\"do something with \", uri);\n  }\n  render() {\n    return (\n      <ViewShot onCapture={this.onCapture} captureMode=\"mount\">\n        <Text>...Something to rasterize...</Text>\n      </ViewShot>\n    );\n  }\n}\n\n// waiting an image\nclass ExampleWaitingCapture extends Component {\n  onImageLoad = () => {\n    this.refs.viewShot.capture().then(uri => {\n      console.log(\"do something with \", uri);\n    })\n  };\n  render() {\n    return (\n      <ViewShot ref=\"viewShot\">\n        <Text>...Something to rasterize...</Text>\n        <Image ... onLoad={this.onImageLoad} />\n      </ViewShot>\n    );\n  }\n}\n\n// capture ScrollView content\nclass ExampleCaptureScrollViewContent extends Component {\n  onCapture = uri => {\n    console.log(\"do something with \", uri);\n  }\n  render() {\n    return (\n      <ScrollView>\n        <ViewShot onCapture={this.onCapture} captureMode=\"mount\">\n          <Text>...The Scroll View Content Goes Here...</Text>\n        </ViewShot>\n      </ScrollView>\n    );\n  }\n}\n```\n\n**Props:**\n\n- **`children`**: the actual content to rasterize.\n- **`options`**: the same options as in `captureRef` method.\n- **`captureMode`** (string):\n  - if not defined (default). the capture is not automatic and you need to use the ref and call `capture()` yourself.\n  - `\"mount\"`. Capture the view once at mount. (It is important to understand image loading won't be waited, in such case you want to use `\"none\"` with `viewShotRef.capture()` after `Image#onLoad`.)\n  - `\"continuous\"` EXPERIMENTAL, this will capture A LOT of images continuously. For very specific use-cases.\n  - `\"update\"` EXPERIMENTAL, this will capture images each time React redraw (on did update). For very specific use-cases.\n- **`onCapture`**: when a `captureMode` is defined, this callback will be called with the capture result.\n- **`onCaptureFailure`**: when a `captureMode` is defined, this callback will be called when a capture fails.\n\n## `captureRef(view, options)` lower level imperative API\n\n```js\nimport { captureRef } from \"react-native-view-shot\";\n\ncaptureRef(viewRef, {\n  format: \"jpg\",\n  quality: 0.8\n}).then(\n  uri => console.log(\"Image saved to\", uri),\n  error => console.error(\"Oops, snapshot failed\", error)\n);\n```\n\nReturns a Promise of the image URI.\n\n- **`view`** is a reference to a React Native component.\n- **`options`** may include:\n  - **`width`** / **`height`** _(number)_: the width and height of the final image (resized from the View bound. don't provide it if you want the original pixel size).\n  - **`format`** _(string)_: either `png` or `jpg` or `webm` (Android). Defaults to `png`.\n  - **`quality`** _(number)_: the quality. 0.0 - 1.0 (default). (only available on lossy formats like jpg)\n  - **`result`** _(string)_, the method you want to use to save the snapshot, one of:\n    - `\"tmpfile\"` (default): save to a temporary file _(that will only exist for as long as the app is running)_.\n    - `\"base64\"`: encode as base64 and returns the raw string. Use only with small images as this may result of lags (the string is sent over the bridge). _N.B. This is not a data uri, use `data-uri` instead_.\n    - `\"data-uri\"`: same as `base64` but also includes the [Data URI scheme](https://en.wikipedia.org/wiki/Data_URI_scheme) header.\n  - **`snapshotContentContainer`** _(bool)_: if true and when view is a ScrollView, the \"content container\" height will be evaluated instead of the container height.\n\n## `releaseCapture(uri)`\n\nThis method release a previously captured `uri`. For tmpfile it will clean them out, for other result types it just won't do anything.\n\nNB: the tmpfile captures are automatically cleaned out after the app closes, so you might not have to worry about this unless advanced usecases. The `ViewShot` component will use it each time you capture more than once (useful for continuous capture to not leak files).\n\n## `captureScreen()` Android and iOS Only\n\n```js\nimport { captureScreen } from \"react-native-view-shot\";\n\ncaptureScreen({\n  format: \"jpg\",\n  quality: 0.8\n}).then(\n  uri => console.log(\"Image saved to\", uri),\n  error => console.error(\"Oops, snapshot failed\", error)\n);\n```\n\nThis method will capture the contents of the currently displayed screen as a native hardware screenshot. It does not require a ref input, as it does not work at the view level. This means that ScrollViews will not be captured in their entirety - only the portions currently visible to the user.\n\nReturns a Promise of the image URI.\n\n- **`options`**: the same options as in `captureRef` method.\n\n### Advanced Examples\n\n[Checkout react-native-view-shot-example](example)\n\n## Interoperability Table\n\n> Snapshots are not guaranteed to be pixel perfect. It also depends on the platform. Here is some difference we have noticed and how to workaround.\n\nModel tested: iPhone 6 (iOS), Nexus 5 (Android).\n\n| System                | iOS              | Android           | Windows                |\n| --------------------- | ---------------- | ----------------- | ---------------------- |\n| View,Text,Image,..    | YES              | YES               | YES                    |\n| WebView               | YES              | YES<sup>1</sup>   | YES                    |\n| gl-react v2           | YES              | NO<sup>2</sup>    | NO<sup>3</sup>         |\n| react-native-video    | NO               | NO                | NO                     |\n| react-native-maps     | YES              | NO<sup>4</sup>    | NO<sup>3</sup>         |\n| react-native-svg      | YES              | YES               | maybe?                 |\n| react-native-camera   | NO               | YES               | NO <sup>3</sup>        |\n\n>\n\n1. Only supported by wrapping a `<View collapsable={false}>` parent and snapshotting it.\n2. It returns an empty image (not a failure Promise).\n3. Component itself lacks platform support.\n4. But you can just use the react-native-maps snapshot function: https://github.com/airbnb/react-native-maps#take-snapshot-of-map\n\n## Performance Optimization\n\nDuring profiling captured several things that influence on performance:\n\n1. (de-)allocation of memory for bitmap\n2. (de-)allocation of memory for Base64 output buffer\n3. compression of bitmap to different image formats: PNG, JPG\n\nTo solve that in code introduced several new approaches:\n\n- reusable images, that reduce load on GC;\n- reusable arrays/buffers that also reduce load on GC;\n- RAW image format for avoiding expensive compression;\n- ZIP deflate compression for RAW data, that works faster in compare to `Bitmap.compress`\n\nmore details and code snippet are below.\n\n### RAW Images\n\nIntroduced a new image format RAW. it correspond a ARGB array of pixels.\n\nAdvantages:\n\n- no compression, so its supper quick. Screenshot taking is less than 16ms;\n\nRAW format supported for `zip-base64`, `base64` and `tmpfile` result types.\n\nRAW file on disk saved in format: `${width}:${height}|${base64}` string.\n\n### zip-base64\n\nIn compare to BASE64 result string this format fast try to apply zip/deflate compression on screenshot results\nand only after that convert results to base64 string. In combination zip-base64 + raw we got a super fast\napproach for capturing screen views and deliver them to the react side.\n\n### How to work with zip-base64 and RAW format?\n\n```js\nconst fs = require(\"fs\");\nconst zlib = require(\"zlib\");\nconst PNG = require(\"pngjs\").PNG;\nconst Buffer = require(\"buffer\").Buffer;\n\nconst format = Platform.OS === \"android\" ? \"raw\" : \"png\";\nconst result = Platform.OS === \"android\" ? \"zip-base64\" : \"base64\";\n\ncaptureRef(this.ref, { result, format }).then(data => {\n  // expected pattern 'width:height|', example: '1080:1731|'\n  const resolution = /^(\\d+):(\\d+)\\|/g.exec(data);\n  const width = (resolution || [\"\", 0, 0])[1];\n  const height = (resolution || [\"\", 0, 0])[2];\n  const base64 = data.substr((resolution || [\"\"])[0].length || 0);\n\n  // convert from base64 to Buffer\n  const buffer = Buffer.from(base64, \"base64\");\n  // un-compress data\n  const inflated = zlib.inflateSync(buffer);\n  // compose PNG\n  const png = new PNG({ width, height });\n  png.data = inflated;\n  const pngData = PNG.sync.write(png);\n  // save composed PNG\n  fs.writeFileSync(output, pngData);\n});\n```\n\nKeep in mind that packaging PNG data is a CPU consuming operation as a `zlib.inflate`.\n\nHint: use `process.fork()` approach for converting raw data into PNGs.\n\n> Note: code is tested in large commercial project.\n\n> Note #2: Don't forget to add packages into your project:\n>\n> ```js\n> yarn add pngjs\n> yarn add zlib\n> ```\n\n## Troubleshooting / FAQ\n\n### Saving to a file?\n\n- If you want to save the snapshotted image result to the CameraRoll, just use https://facebook.github.io/react-native/docs/cameraroll.html#savetocameraroll\n- If you want to save it to an arbitrary file path, use something like https://github.com/itinance/react-native-fs\n- For any more advanced needs, you can write your own (or find another) native module that would solve your use-case.\n\n### The snapshot is rejected with an error?\n\n- Support of special components like Video / GL views is not guaranteed to work. In case of failure, the `captureRef` promise gets rejected (the library won't crash).\n\n### get a black or blank result or still have an error with simple views?\n\nCheck the **Interoperability Table** above. Some special components are unfortunately not supported. If you have a View that contains one of an unsupported component, the whole snapshot might be compromised as well.\n\n### black background instead of transparency / weird border appear around texts?\n\n- It's preferable to **use a background color on the view you rasterize** to avoid transparent pixels and potential weirdness that some border appear around texts.\n\n### on Android, getting \"Trying to resolve view with tag '{tagID}' which doesn't exist\"\n\n> you need to make sure `collapsable` is set to `false` if you want to snapshot a **View**. Some content might even need to be wrapped into such `<View collapsable={false}>` to actually make them snapshotable! Otherwise that view won't reflect any UI View. ([found by @gaguirre](https://github.com/gre/react-native-view-shot/issues/7#issuecomment-245302844))\n\nAlternatively, you can use the `ViewShot` component that will have `collapsable={false}` set to solve this problem.\n\n### Getting \"The content size must not be zero or negative.\"\n\n> Make sure you don't snapshot instantly, you need to wait at least there is a first `onLayout` event, or after a timeout, otherwise the View might not be ready yet. (It should also be safe to just wait Image `onLoad` if you have one). If you still have the problem, make sure your view actually have a width and height > 0.\n\nAlternatively, you can use the `ViewShot` component that will wait the first `onLayout`.\n\n### Snapshotted image does not match my width and height but is twice/3-times bigger\n\nThis is because the snapshot image result is in real pixel size where the width/height defined in a React Native style are defined in \"point\" unit. You might want to set width and height option to force a resize. (might affect image quality)\n\n---\n\n## Thanks\n\n- To initial iOS work done by @jsierles in https://github.com/jsierles/react-native-view-snapshot\n- To React Native implementation of takeSnapshot in iOS by @nicklockwood\n- To Windows implementation by @ryanlntn\n","_attachments":{},"homepage":"https://github.com/gre/react-native-view-shot","license":"MIT"}