{"_id":"react-native-background-timer","_rev":"37-6dfd9872f93d24ccb0e48012ebb43f58","name":"react-native-background-timer","description":"Emit event periodically (even when app is in the background)","dist-tags":{"latest":"2.4.1","beta":"0.1.4-beta","alpha":"2.2.0-alpha.1"},"versions":{"0.1.0":{"name":"react-native-background-timer","version":"0.1.0","description":"Emit event periodically (also when application is running in the background)","keywords":["android","timer","react-native"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","gitHead":"37d8502d16cb9c5d396f75ef3117b761c9ae2f33","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@0.1.0","_shasum":"6e9156108f2279d336115d9bdd7338471ff1e141","_from":".","_npmVersion":"3.8.1","_nodeVersion":"5.6.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"shasum":"6e9156108f2279d336115d9bdd7338471ff1e141","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-0.1.0.tgz","integrity":"sha512-J7Kdjy3XojjV3/SO9urfW3v/v61cMAusH3tVlp6MR/+LFyOP1fCAT2KNg9mCl6PLQSgHh53X5OT0p/HrbXWDCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/MElXimR8LDlXu3QVjm6vevyf3xfW3H986FZQ6pCvkQIgAfEQWh4V3GKbWjvufDcv7iVkPhnJd7fRDjCNNnkNiDk="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-native-background-timer-0.1.0.tgz_1462950816899_0.08996477792970836"},"directories":{}},"0.1.1":{"name":"react-native-background-timer","version":"0.1.1","description":"Emit event periodically (also when application is running in the background)","keywords":["android","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","gitHead":"3e30f269732a0ba31ab9d9fdc99005f33788ce9c","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@0.1.1","_shasum":"b1bef6f9402f592713059a934cf2f84f42923aa4","_from":".","_npmVersion":"3.8.1","_nodeVersion":"5.6.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"shasum":"b1bef6f9402f592713059a934cf2f84f42923aa4","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-0.1.1.tgz","integrity":"sha512-kRUl3KS5FpZnmNs9ZBIjeFdm9op2Jkjynh8ATc4WPTsnPQBIUS6TcEu8+OUixpIDSGhhaPrlbHUmgaRc0Rg/YQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDA+yKq6qnyZie5WSZfGzJAvQoHrg7LOysYl3wlqjLBogIgAc0MUy11Tn2xt0DUtaCIE05o6PQ2ZeV/e9zsM888w3A="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-native-background-timer-0.1.1.tgz_1463070158433_0.3017185975331813"},"directories":{}},"0.1.2":{"name":"react-native-background-timer","version":"0.1.2","description":"Emit event periodically (also when application is running in the background)","keywords":["android","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","gitHead":"9d956a69a17b2d75bf2669763e6a9b64bf2d1821","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@0.1.2","_shasum":"7cb036884157f61d2417bf8e9d842f67642803f0","_from":".","_npmVersion":"3.8.1","_nodeVersion":"5.6.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"shasum":"7cb036884157f61d2417bf8e9d842f67642803f0","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-0.1.2.tgz","integrity":"sha512-65Us21a86Is7OXAGkTx6eesg7OloFFNwfvFKkQ3gZSQvq1OGj3sOp9e71cag8VwuvhOAqpxL3bcqRr/azbJHLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEgmBF05ZcxjptqB4cacRK94r9idnGuJ3Z86l/FcnwYAAiEAjeIDHR4AbU8L+829DVlMGHdHuvpHbEBj+NpXGW4iy6Y="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-native-background-timer-0.1.2.tgz_1467392787831_0.9241845754440874"},"directories":{}},"0.1.3":{"name":"react-native-background-timer","version":"0.1.3","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","gitHead":"e0462f6c9f24992e71008debeb790dcc21307573","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@0.1.3","_shasum":"e8e98a41a4f26eaf416f23ccb27368f2fb260571","_from":".","_npmVersion":"3.8.1","_nodeVersion":"5.6.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"shasum":"e8e98a41a4f26eaf416f23ccb27368f2fb260571","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-0.1.3.tgz","integrity":"sha512-Jumules1cze+WRwq/ToRjvjOXMxPR+U/zHau+mODRuLeDnL2P+5TZO2IA/Q0NnWrJoS3xGPg7cZzH7h/QJ40Zw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDXMnvh33uLl511IeTJq4sduDDuHh9of0etU4Iwdp2rjAiAnpUBrxLq8dsW1mqj3H/xh8jQBcK2NG8u0dCdtlfXELw=="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-native-background-timer-0.1.3.tgz_1473197801904_0.09893753938376904"},"directories":{}},"0.1.4-beta":{"name":"react-native-background-timer","version":"0.1.4-beta","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","gitHead":"5d4b0f1dff6aab12c7e9e48cc73fa931a3cde6fa","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@0.1.4-beta","_shasum":"6c9c1ad8b7c978251076597f4e219116bffb503a","_from":".","_npmVersion":"3.10.9","_nodeVersion":"5.6.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"shasum":"6c9c1ad8b7c978251076597f4e219116bffb503a","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-0.1.4-beta.tgz","integrity":"sha512-L/ak5GTwWV88PBQxADiBGV2y+cPR0TSFGcwMTIGQcmfadmJLxaOo35EAKwwHmY6P7c7GZ3ReyM1UVHeqCk52OA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHG9YyHB4rOWmSpmgook6Qf0M90nTJrxD7y7BZ268u8cAiEAzTLQijBGbsEVKUBT3plWgTPytzP9CZmen2D7642zC48="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-native-background-timer-0.1.4-beta.tgz_1481392789691_0.3348209203686565"},"directories":{}},"0.1.4":{"name":"react-native-background-timer","version":"0.1.4","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":"<0.40.0"},"gitHead":"3675103e284ba3b81e110245af9f3b9171618ebe","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@0.1.4","_shasum":"010cf68fa1fbb5b506ab709f4111b8bf6e004d49","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.2.1","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"shasum":"010cf68fa1fbb5b506ab709f4111b8bf6e004d49","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-0.1.4.tgz","integrity":"sha512-aTiHGNdU3KK9h+B8boXg39szzHU97F6xTLYfYccVHIIve2mbviBaUzT2BxqxbzPJCKbDLlZYFQmzkypYSw/Kpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiWutyI6ThXvhaNhHe+Gz5j8QJujaUiO7vPzZ6xWV1FgIgCcQt5PaBxxdcrbcajTF3H6/5bhiVty7oYb1MohIwEaM="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-native-background-timer-0.1.4.tgz_1485020854656_0.8606182981748134"},"directories":{}},"1.0.0":{"name":"react-native-background-timer","version":"1.0.0","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.40.0"},"gitHead":"ec8ef64dbfc75520a9b66eeddbe57f1bb5e1d15a","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@1.0.0","_shasum":"3735b12e23f1f10760a154d7ed054c1f86f1cc46","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.2.1","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"shasum":"3735b12e23f1f10760a154d7ed054c1f86f1cc46","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-1.0.0.tgz","integrity":"sha512-/ZIgwAm4cODEjldgmkETD075VxXc+bXZkKb95UgYPXyifzoogCWhKRsojdr9Kwu56k/Bl+oe+fXqbzSWaJhhdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICeZEgXr7ffWn+vNNsFW+RdPIX9AaB0gXSdhcXu77IHWAiAuT/N34ymrdmE/nA6y8r3H4dfsfG1S//52li2SsKVkXw=="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-native-background-timer-1.0.0.tgz_1485030237805_0.7668807709123939"},"directories":{}},"1.0.1":{"name":"react-native-background-timer","version":"1.0.1","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.40.0"},"gitHead":"e8eba0ea9e3315bd7be579607070a872de3d1122","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@1.0.1","_shasum":"97712d8df111a117651f7766dfe6d5f13a2ebd59","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"shasum":"97712d8df111a117651f7766dfe6d5f13a2ebd59","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-1.0.1.tgz","integrity":"sha512-ZmmI5lAsnfEda0HFEBRKlpdKNJUZPW8SzRfTqj+mlb+9Pm+p5cBjOPdlL7xOTdVh2SBjwlRnsbWPpna1zMUyEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIaoDhbvdVXYJnW3UDkr5CA8eP1KZRLuoFHwPrNJXjFwIhAP7pkqyh53b6awsPlGRP1g4cRZyff/EB/7GKmiGLMLXY"}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-native-background-timer-1.0.1.tgz_1493842388365_0.8865406026598066"},"directories":{}},"1.0.2":{"name":"react-native-background-timer","version":"1.0.2","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.40.0"},"gitHead":"6ec2f75e17dc54b6358bcd9890a358246246a580","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@1.0.2","_shasum":"7cdd3d53653f7eca50a4c31814685073d73a7523","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"shasum":"7cdd3d53653f7eca50a4c31814685073d73a7523","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-1.0.2.tgz","integrity":"sha512-3Nf9nbdfeez9SuL2jE25IKK3gyXNBJ1Q6URjyCpIZbBblgVJeo9r1+FcL6NXqy37r3XpB8psYvvicQhlKY4Daw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICLeBl3jWRhmGDvcNivr5jy2rPkt3uSXbka+5dD8f1iOAiBygoaasbQ1d20yc7f5VOQbUckpaagszDXXjMv0WnW2xA=="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer-1.0.2.tgz_1495268078359_0.4640248802024871"},"directories":{}},"1.0.3":{"name":"react-native-background-timer","version":"1.0.3","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.40.0"},"gitHead":"29bd3eb6310ce47f4988a992a8443e5bcf880ae0","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@1.0.3","_shasum":"0bf81b2c6bd08548a108ce373d0f834e0e8174bc","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"shasum":"0bf81b2c6bd08548a108ce373d0f834e0e8174bc","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-1.0.3.tgz","integrity":"sha512-/O1/0DhKIAZCRlASx2mZgzZTCvxJ+ySegixMlZHqkV0DTQuIwxJb7E7Rz0Q4YF/JnUpWnOVt0PbjIPmZIDZyCA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHgJYigFN4oXMXznER4sWL/MswQdDZdF1bIT55Ed+W1DAiEAkRJL+19OdpO9xaEyt87i4OgVz4vnjn4GelWSQ2QTsD0="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer-1.0.3.tgz_1497384893118_0.08868726273067296"},"directories":{}},"1.0.4":{"name":"react-native-background-timer","version":"1.0.4","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.40.0"},"gitHead":"37efb2e9c7bfe34a7fcf0164b75b0c06ba4e109f","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@1.0.4","_npmVersion":"5.0.3","_nodeVersion":"6.10.2","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"integrity":"sha512-gAVRbtffyaZmifgAodywBppg/wZnl+AN96pSDGeg+E1nfJn2J+5fmX27jXN1pqfXut5NmQtKygfABTcpxuxpGw==","shasum":"8cf3d982001b6041209498cde806dbe13e894c8d","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-1.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGuYb/l4l6/W/8SUXjEvoz6XiwoHf/CXng+YfdHyFZdyAiEA+UN5jbyNXtaoky+ex2YyYlx3T7D7k0Bniyw+/KjJ9+4="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer-1.0.4.tgz_1499928706496_0.7110718404874206"},"directories":{}},"1.1.0":{"name":"react-native-background-timer","version":"1.1.0","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.40.0"},"gitHead":"52255a08628b130ff5552c15f47d9fc1d781eef8","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@1.1.0","_shasum":"634f4abaf080a7c7427bd619b88d8c4d5ae2cabd","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"shasum":"634f4abaf080a7c7427bd619b88d8c4d5ae2cabd","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-1.1.0.tgz","integrity":"sha512-tpvFVLkjMa9oTQHlPwsrC8aFt6jYBABR28KXr+KIsgRCL7RRx0zRq+CzZ1HIFDVwxAQiRoIKQZvRcsdyqDMAiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1zgFRtvd70w9yb/fzhzCwhl5ww1jTfEBZY9vG+1v+FQIgWBYkcvOCz1xSZoBZLu7yzOk6iKFRD/8d3R9QU46YUUQ="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer-1.1.0.tgz_1500137558620_0.36106665013357997"},"directories":{}},"1.2.0":{"name":"react-native-background-timer","version":"1.2.0","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"gitHead":"07dd6694c1cae6bcaf201aa63ea633e6f766b65b","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@1.2.0","_shasum":"fd951f93e5c70ec899a5fb4285e1270d0e8b9fb2","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"shasum":"fd951f93e5c70ec899a5fb4285e1270d0e8b9fb2","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-1.2.0.tgz","integrity":"sha512-VIg/yu6jA2b2lS4H6sVCZpMlmnSIWlohIheKekhPu71QkXHXKM2o8KV/MdK3jY8t/UhFBozD43O1aFWlMJDjqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXGBobbYWsCYqopEeCEFMrD2jq+JrZVpwnl28WG+SnFgIgXrW5kiLpLbrhlxg6ZcFpGHpPMc2k4I5ajfHB1ygfE4A="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer-1.2.0.tgz_1501916357841_0.9067131348419935"},"directories":{}},"1.3.0":{"name":"react-native-background-timer","version":"1.3.0","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"gitHead":"90026da43bde9483008a376209fcb47bf87128b0","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@1.3.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"integrity":"sha512-2SvLov0BfGwBYNGCfSNo2cZ6FePlVfxqXYNoB5frRHmUyru0NYb4Qa+f+E5WpHTvbkZxqpR9POCaxpWqrDmf2g==","shasum":"032114347e74512f2fb69c59c19fdb7ebdefafd7","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-1.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPgJGOA48t7LtdeXrHXwsWYkT4KPTZhvKf4G2msi/DTQIgNGYzbQtjvn6V0asWeYM3+lFNHtdMcvBqD9MOzIoMve4="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer-1.3.0.tgz_1506969793272_0.9893054242711514"},"directories":{}},"2.0.0":{"name":"react-native-background-timer","version":"2.0.0","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"gitHead":"a64b98835eb00ccf3b4d83f4f68cca9ff31fd49c","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"integrity":"sha512-vLNJIedXQZN4p3ChFsAgVHacnJqQMnLl+wBsnZuliRkmsjEHo8kQOA9fnLih/OoiDi1O3eHQvXC5L8f+RYiKgw==","shasum":"afdac10b7441952d570acea4a8dbb065107b5461","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICN7CzgNQY9IAvQNCLxCZgq2Em/93NhDYjOivHqnUlUgAiB3b8Q9HmxYhHgNDjdvvXhL3Mq4llMRB4j0cYL5x1R8Qw=="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer-2.0.0.tgz_1510774306235_0.05977466213516891"},"directories":{}},"2.0.1":{"name":"react-native-background-timer","version":"2.0.1","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"gitHead":"23d60b1d2cad94bf8bb077a44e3357066687d984","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"integrity":"sha512-1owXTUQh1Ox/CrAMP/pjPzO9X4mGlbEklZ7eDjYhycVVzAbXcpHCaV/VZUhxRj8+ne+/3EUydG7G3N5iUW9e4g==","shasum":"ef714a4bfd28fc47cbbd335631b581cf915604a2","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.0.1.tgz","fileCount":13,"unpackedSize":26499,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAMw7ieQ7Rrb1G5pfv9iTlNyOtBKGbe89b566AXsX9OJAiARSLgZIFAoTmO17X6sAsy6kqWasvD+VSAQgR8eZ5qu5A=="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.0.1_1519899340514_0.07865998558564402"},"_hasShrinkwrap":false},"2.1.0-alpha.0":{"name":"react-native-background-timer","version":"2.1.0-alpha.0","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"readme":"# React Native Background Timer\nEmit event periodically (even when app is in the background).\n\n## Installation\n- `npm i react-native-background-timer --save`\n- `react-native link`\n\n### Installation using CocoaPods on iOS\n- `npm i react-native-background-timer --save`\n- add the following to your Podfile: `pod 'react-native-background-timer', :path => '../node_modules/react-native-background-timer'`\n\n## Usage Crossplatform\nTo use the same code both on Android and iOS use runBackgroundTimer() and stopBackgroundTimer(). There can be used only one background timer to keep code consistent.\n\n```javascript\nBackgroundTimer.runBackgroundTimer(() => { \n//code that will be called every 3 seconds \n}, \n3000);\n//rest of code will be performing for iOS on background too\n\nBackgroundTimer.stopBackgroundTimer(); //after this call all code on background stop run.\n```\n> Android didn't tested as well.\n\n## Usage iOS\nAfter iOS update logic of background task little bit changed. So we can't use as it was. \nYou have to use only start() and stop() without parameters. And all code that is performing will continue performing on background including all setTimeout() timers.\n\nExample:\n```javascript\nBackgroundTimer.start();\n// Do whatever you want incuding setTimeout;\nBackgroundTimer.stop();\n```\n\n> If you call stop() on background no new tasks will be started!\n> Don't call .start() twice, as it stop performing previous background task and starts new. \n> If it will be called on backgound no tasks will run.\n\n## Usage Android\nYou can use the `setInterval` and `setTimeout` functions.\nThis API is identical to that of `react-native` and can be used to quickly replace existing timers\nwith background timers.\n\n```javascript\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```javascript\n// Start a timer that runs continuous after X milliseconds\nconst intervalId = BackgroundTimer.setInterval(() => {\n\t// this will be executed every 200 ms\n\t// even when app is the the background\n\tconsole.log('tic');\n}, 200);\n\n// Cancel the timer when you are done with it\nBackgroundTimer.clearInterval(intervalId);\n```\n\n```javascript\n// Start a timer that runs once after X milliseconds\nconst timeoutId = BackgroundTimer.setTimeout(() => {\n\t// this will be executed once after 10 seconds\n\t// even when app is the the background\n  \tconsole.log('tac');\n}, 10000);\n\n// Cancel the timeout if necessary\nBackgroundTimer.clearTimeout(timeoutId);\n```\n\n### Obsolete\nObsolete usage which doesn't allows to use multiple background timers.\n\n```js\nimport {\n  DeviceEventEmitter,\n  NativeAppEventEmitter,\n  Platform,\n} from 'react-native';\n\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```js\nconst EventEmitter = Platform.select({\n  ios: () => NativeAppEventEmitter,\n  android: () => DeviceEventEmitter,\n})();\n```\n\n```js\n// start a global timer\nBackgroundTimer.start(5000); // delay in milliseconds only for Android\n```\n```js\n// listen for event\nEventEmitter.addListener('backgroundTimer', () => {\n\t// this will be executed once after 5 seconds\n\tconsole.log('toe');\n});\n```\n```js\n// stop the timer\nBackgroundTimer.stop();\n```\n","readmeFilename":"README.md","gitHead":"c3b49c602f27a7fc5ac92b95ef3ea6e560c1a77a","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.1.0-alpha.0","_npmVersion":"6.4.0","_nodeVersion":"10.9.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"integrity":"sha512-UH0ipWOsBTyg4Ilbxef9kkmvaeDRhynx4q/SuJIbL9O/JYURROVRNP8TgzD+kRxQ+LI+5MhZZahmOsEi6Cbmuw==","shasum":"b3906b9aa63687f70c6466f50d93f2c36b8056ba","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.1.0-alpha.0.tgz","fileCount":13,"unpackedSize":27341,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbeUHOCRA9TVsSAnZWagAAEvsP/AtfXpFqY+Kuxj7ZDBSC\nhELGCJh3zR7lrCEJkRq1ZDfH8Cmm9WkPxh/3nmIMlRAHzcmhMzpJAst88JwH\nQVSDS2P/U5xa0ru809Peidd4jYuBMdpYyq8q09ZyX9cP89X8Vke+rLncT6Yc\nHf4NIIbwVnBZH9Q3v7UnRIc3mEYrP+THMCWyy4NLw2DgttcV+dZTJHEtvIB+\n1ixE9AvHJbiWnYgi6HmsCXlN2AJE9ypiZnpCkb0a1jZDm14dwNhdXrE0HPyR\nR0kpcPr9Dq76nfA4rBzNLfPABF+M8HLyBvKNO6DFPD+BlCRUABKHNWGGyJlw\n6yC3gn0k1RHm0hOVnZ5j2Y5zI2a2ob3lElasZB5/ciWYfRjf3dyIjPYyGL0q\nX79oB2C8TNaoi+TfpkgqXK420x73tzAwI1THiFw1xPdu42m3Rli9gZ0J+ro4\n13Owp4sDn+stzpNJKWDtAdMmvR2d+an2AiX6e7OfRw7rYClOGRHvtS9taqQj\nUO5xVYhPmZ4LMEl0Qr1Eg1zQffz+UVrm2qJzY5gJ48XU2gHiUS0Ad3syprvA\ntxYSiUjyskFZt4de9XlGLy7wNEn4//Qu0w+b0QR+5ZUFQ1MnQdH8cU0VRhgg\n3mv06haOnX/LKkQygk0OVW+vfRQiz5PIGE7pQfm5b7dFgT+Oxd3go8vrqkZU\nJ/At\r\n=oLKE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBEdQCncAFwMjkvlNLvmi/f39549NaDcEfpBm/aolwieAiEAkr3m814DJnFtB0PRQduU8L4b2UtK7t+sHRuhpXs+q7A="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.1.0-alpha.0_1534673357824_0.7828784007033214"},"_hasShrinkwrap":false},"2.1.0-alpha.1":{"name":"react-native-background-timer","version":"2.1.0-alpha.1","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"readme":"# React Native Background Timer\nEmit event periodically (even when app is in the background).\n\n## Installation\n- `npm i react-native-background-timer --save`\n- `react-native link`\n\n### Installation using CocoaPods on iOS\n- `npm i react-native-background-timer --save`\n- add the following to your Podfile: `pod 'react-native-background-timer', :path => '../node_modules/react-native-background-timer'`\n\n## Usage Crossplatform\nTo use the same code both on Android and iOS use runBackgroundTimer() and stopBackgroundTimer(). There can be used only one background timer to keep code consistent.\n\n```javascript\nBackgroundTimer.runBackgroundTimer(() => { \n//code that will be called every 3 seconds \n}, \n3000);\n//rest of code will be performing for iOS on background too\n\nBackgroundTimer.stopBackgroundTimer(); //after this call all code on background stop run.\n```\n> Android didn't tested as well.\n\n## Usage iOS\nAfter iOS update logic of background task little bit changed. So we can't use as it was. \nYou have to use only start() and stop() without parameters. And all code that is performing will continue performing on background including all setTimeout() timers.\n\nExample:\n```javascript\nBackgroundTimer.start();\n// Do whatever you want incuding setTimeout;\nBackgroundTimer.stop();\n```\n\n> If you call stop() on background no new tasks will be started!\n> Don't call .start() twice, as it stop performing previous background task and starts new. \n> If it will be called on backgound no tasks will run.\n\n## Usage Android\nYou can use the `setInterval` and `setTimeout` functions.\nThis API is identical to that of `react-native` and can be used to quickly replace existing timers\nwith background timers.\n\n```javascript\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```javascript\n// Start a timer that runs continuous after X milliseconds\nconst intervalId = BackgroundTimer.setInterval(() => {\n\t// this will be executed every 200 ms\n\t// even when app is the the background\n\tconsole.log('tic');\n}, 200);\n\n// Cancel the timer when you are done with it\nBackgroundTimer.clearInterval(intervalId);\n```\n\n```javascript\n// Start a timer that runs once after X milliseconds\nconst timeoutId = BackgroundTimer.setTimeout(() => {\n\t// this will be executed once after 10 seconds\n\t// even when app is the the background\n  \tconsole.log('tac');\n}, 10000);\n\n// Cancel the timeout if necessary\nBackgroundTimer.clearTimeout(timeoutId);\n```\n\n### Obsolete\nObsolete usage which doesn't allows to use multiple background timers.\n\n```js\nimport {\n  DeviceEventEmitter,\n  NativeAppEventEmitter,\n  Platform,\n} from 'react-native';\n\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```js\nconst EventEmitter = Platform.select({\n  ios: () => NativeAppEventEmitter,\n  android: () => DeviceEventEmitter,\n})();\n```\n\n```js\n// start a global timer\nBackgroundTimer.start(5000); // delay in milliseconds only for Android\n```\n```js\n// listen for event\nEventEmitter.addListener('backgroundTimer', () => {\n\t// this will be executed once after 5 seconds\n\tconsole.log('toe');\n});\n```\n```js\n// stop the timer\nBackgroundTimer.stop();\n```\n","readmeFilename":"README.md","gitHead":"70efa54361bb2f65d3844330d777c57fd04c93fa","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.1.0-alpha.1","_npmVersion":"6.4.0","_nodeVersion":"10.9.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"integrity":"sha512-S0E13SOKjyNArshqQbOyTbshDvUw03hDCYM5L6nOPMy/8gvF9CbWfzl+SZdIulDZs5qqntt7/uNGmlgb+0i57w==","shasum":"5fc5118ce4643bd9ae162de0012ba26c6661bee4","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.1.0-alpha.1.tgz","fileCount":13,"unpackedSize":27341,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbeaStCRA9TVsSAnZWagAAv14P/10NsVhUF1nMX4KkJ06T\nTEimkXBUnHcQPY8eN67udjggc5x8Wy5qMJRiBIFX8VKaRT7YIBZzIbE7I8F8\niAvblF1gLsP46+HgQeKTYi7ZwmpZvvLY3hklGyv2uJbtbjk3mSa+ppdWb275\nSlI9MFA233aEhnuETAQjYozJzXi5CPD1vOh94+1PQ5G9uZy4dFJqh+bF1zj5\nL12ohS2GevN9lefxDTU5vwrlkMjc9lEf16pBRvcH2giMbUIqc6G9evY957CW\n9id2WMLvv46UMpKJIGsA8dqFCB1n/Y4Y8+t1m+ySi6GQjfdk0HWwo0f0M03Y\nMEhnxceRuyamXXMMC9Dfk650z+tYO/DuhtZNr9Pt+5yjQErxL+TCnaAATF/a\nSzv+0dV5v4IbdItCdJNNxDesaBkOnjZeP4SOEtEfcRjCFhwyJdwg5k/IVCp/\nO4BtYGad6xTswHwPIw7/tmv1SwdO3Hf2k0RRVVnr4Kos/iaqj4w9oWQKJaOn\n3TUrJ/dIGg0RfzurBV3sP2ZF+egRaiBJFgEX0mp6gQn1PauL0vuaoKC8xQQD\ncPphotmv12fMqA0iVoIJtEzv50MR/SmYB0MHZVcFTPpPvxwPe5/unMXrsgLb\nTT4HJ6dqqi4vNgekhu4jRjNfhv8CIY1+Dkr6F7ZtW7eWjpaB0UOfc5gzoTCl\nGliu\r\n=xA3n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEr2iUy7SXehLVffF/v+iWy1yePr9GKAv7bCVhGO0DRIAiEAgD3GR8oOr1xnY/kYHRBoo74tgdZLk2Tvc0nSQHVmfeU="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.1.0-alpha.1_1534698669206_0.8447626583799668"},"_hasShrinkwrap":false},"2.1.0-alpha.2":{"name":"react-native-background-timer","version":"2.1.0-alpha.2","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"readme":"# React Native Background Timer\nEmit event periodically (even when app is in the background).\n\n## Installation\n- `npm i react-native-background-timer --save`\n- `react-native link`\n\n### Installation using CocoaPods on iOS\n- `npm i react-native-background-timer --save`\n- add the following to your Podfile: `pod 'react-native-background-timer', :path => '../node_modules/react-native-background-timer'`\n\n## Usage Crossplatform\nTo use the same code both on Android and iOS use runBackgroundTimer() and stopBackgroundTimer(). There can be used only one background timer to keep code consistent.\n\n```javascript\nBackgroundTimer.runBackgroundTimer(() => { \n//code that will be called every 3 seconds \n}, \n3000);\n//rest of code will be performing for iOS on background too\n\nBackgroundTimer.stopBackgroundTimer(); //after this call all code on background stop run.\n```\n> Android didn't tested as well.\n\n## Usage iOS\nAfter iOS update logic of background task little bit changed. So we can't use as it was. \nYou have to use only start() and stop() without parameters. And all code that is performing will continue performing on background including all setTimeout() timers.\n\nExample:\n```javascript\nBackgroundTimer.start();\n// Do whatever you want incuding setTimeout;\nBackgroundTimer.stop();\n```\n\n> If you call stop() on background no new tasks will be started!\n> Don't call .start() twice, as it stop performing previous background task and starts new. \n> If it will be called on backgound no tasks will run.\n\n## Usage Android\nYou can use the `setInterval` and `setTimeout` functions.\nThis API is identical to that of `react-native` and can be used to quickly replace existing timers\nwith background timers.\n\n```javascript\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```javascript\n// Start a timer that runs continuous after X milliseconds\nconst intervalId = BackgroundTimer.setInterval(() => {\n\t// this will be executed every 200 ms\n\t// even when app is the the background\n\tconsole.log('tic');\n}, 200);\n\n// Cancel the timer when you are done with it\nBackgroundTimer.clearInterval(intervalId);\n```\n\n```javascript\n// Start a timer that runs once after X milliseconds\nconst timeoutId = BackgroundTimer.setTimeout(() => {\n\t// this will be executed once after 10 seconds\n\t// even when app is the the background\n  \tconsole.log('tac');\n}, 10000);\n\n// Cancel the timeout if necessary\nBackgroundTimer.clearTimeout(timeoutId);\n```\n\n### Obsolete\nObsolete usage which doesn't allows to use multiple background timers.\n\n```js\nimport {\n  DeviceEventEmitter,\n  NativeAppEventEmitter,\n  Platform,\n} from 'react-native';\n\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```js\nconst EventEmitter = Platform.select({\n  ios: () => NativeAppEventEmitter,\n  android: () => DeviceEventEmitter,\n})();\n```\n\n```js\n// start a global timer\nBackgroundTimer.start(5000); // delay in milliseconds only for Android\n```\n```js\n// listen for event\nEventEmitter.addListener('backgroundTimer', () => {\n\t// this will be executed once after 5 seconds\n\tconsole.log('toe');\n});\n```\n```js\n// stop the timer\nBackgroundTimer.stop();\n```\n","readmeFilename":"README.md","gitHead":"2a8cad40894e5d290b1aed71b235d17f49a62c7b","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.1.0-alpha.2","_npmVersion":"6.4.0","_nodeVersion":"10.9.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"integrity":"sha512-dPyFfIMsLL8qGiCY0RdgQuJTu/xdgEbyTdE7uj0ivmKrSYTk70TNx5qZfaGBqGbzu5e4bHCfl2FYNF4Rt+XBqg==","shasum":"d7e727964970fc5d0973b68ea6dc91eb2ed62b2d","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.1.0-alpha.2.tgz","fileCount":13,"unpackedSize":27409,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbeb9bCRA9TVsSAnZWagAA7JAP/j8O/cMLSWNdbh345t7R\ns1XXxwsDHvZ6UrfvDSwlN0olqRlrp7ExeMoNGwcQ51nqEgscQJN8QELPjXFm\n6VTg6h2OLaEP/1ioJtzaXXpl95atEUs4dQZEVZGoZr/VU5BO51qTuJ0AskXY\nYavFzWdjsjKLsR/glKehghcp+5v0xYEXgUEofDnYYhBVaRmVk13bmZaLKuqA\nTG3Z0bNy8P5cbNq1uB86hbp3+Pdi0GhOdSbYe6g65d3xXs/+HDz/mVPoNjgB\nJlhtA6EQ4XeR3T0f6sMEAsh0Z7WpD7BvYHRX8zCwaA3MRLuU6VgcjYJYOCyU\nhHqwahdJSQrmNtKjM0R0DsYAK3oYA2trlZkfK/WdEQzoaN9g8wx3nhBM3YbW\n621h/lc5VSYo4lm/Ieb9c/OR0wV01oWI9Ae+BOTICJuLV/4eyGA+QMNjmoX9\nKut1c9yoMi/VnsH6vNE8BQ5D6ThrHBwj48Vx3bCuiGXmmfmyXx1wk8RGAT5+\nrK4OIB0hLduHTnReaYZhIepECVG602RKY+xb5M6FKwVI6Ky4+wehQSljGD65\n+gXaY4IOFRhf+cJi3kRoH7f73q+ViYKSz2VkBlQQ4sl1QUR3+irQnWCkNfM0\ngX2a4KxCAjv6f63PXkQuAYwZ545QQ9wdJGqAp0zl54uoataBSEkU/E25qlhO\nY8ew\r\n=Em3M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPuHvP9uMrkQCW+FVti/pyQ8EwfMKsoHk5yCdvSCzZUAIhAJRY2JeHSBrfKCAjfwRoLhtkV+8wwkOLBl3op6W6H0NK"}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.1.0-alpha.2_1534705498450_0.8466954972530008"},"_hasShrinkwrap":false},"2.1.0-alpha.3":{"name":"react-native-background-timer","version":"2.1.0-alpha.3","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"readme":"# React Native Background Timer\nEmit event periodically (even when app is in the background).\n\n## Installation\n- `npm i react-native-background-timer --save`\n- `react-native link`\n\n### Installation using CocoaPods on iOS\n- `npm i react-native-background-timer --save`\n- add the following to your Podfile: `pod 'react-native-background-timer', :path => '../node_modules/react-native-background-timer'`\n\n## Usage Crossplatform\nTo use the same code both on Android and iOS use runBackgroundTimer() and stopBackgroundTimer(). There can be used only one background timer to keep code consistent.\n\n```javascript\nBackgroundTimer.runBackgroundTimer(() => { \n//code that will be called every 3 seconds \n}, \n3000);\n//rest of code will be performing for iOS on background too\n\nBackgroundTimer.stopBackgroundTimer(); //after this call all code on background stop run.\n```\n> Android didn't tested as well.\n\n## Usage iOS\nAfter iOS update logic of background task little bit changed. So we can't use as it was. \nYou have to use only start() and stop() without parameters. And all code that is performing will continue performing on background including all setTimeout() timers.\n\nExample:\n```javascript\nBackgroundTimer.start();\n// Do whatever you want incuding setTimeout;\nBackgroundTimer.stop();\n```\n\n> If you call stop() on background no new tasks will be started!\n> Don't call .start() twice, as it stop performing previous background task and starts new. \n> If it will be called on backgound no tasks will run.\n\n## Usage Android\nYou can use the `setInterval` and `setTimeout` functions.\nThis API is identical to that of `react-native` and can be used to quickly replace existing timers\nwith background timers.\n\n```javascript\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```javascript\n// Start a timer that runs continuous after X milliseconds\nconst intervalId = BackgroundTimer.setInterval(() => {\n\t// this will be executed every 200 ms\n\t// even when app is the the background\n\tconsole.log('tic');\n}, 200);\n\n// Cancel the timer when you are done with it\nBackgroundTimer.clearInterval(intervalId);\n```\n\n```javascript\n// Start a timer that runs once after X milliseconds\nconst timeoutId = BackgroundTimer.setTimeout(() => {\n\t// this will be executed once after 10 seconds\n\t// even when app is the the background\n  \tconsole.log('tac');\n}, 10000);\n\n// Cancel the timeout if necessary\nBackgroundTimer.clearTimeout(timeoutId);\n```\n\n### Obsolete\nObsolete usage which doesn't allows to use multiple background timers.\n\n```js\nimport {\n  DeviceEventEmitter,\n  NativeAppEventEmitter,\n  Platform,\n} from 'react-native';\n\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```js\nconst EventEmitter = Platform.select({\n  ios: () => NativeAppEventEmitter,\n  android: () => DeviceEventEmitter,\n})();\n```\n\n```js\n// start a global timer\nBackgroundTimer.start(5000); // delay in milliseconds only for Android\n```\n```js\n// listen for event\nEventEmitter.addListener('backgroundTimer', () => {\n\t// this will be executed once after 5 seconds\n\tconsole.log('toe');\n});\n```\n```js\n// stop the timer\nBackgroundTimer.stop();\n```\n","readmeFilename":"README.md","gitHead":"4a329eb411edd4635391de1bd4428250be8c73ba","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.1.0-alpha.3","_npmVersion":"6.4.0","_nodeVersion":"10.9.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"integrity":"sha512-ZKbwNrT4e+X2e7QVap4i+/HaOW/j1xlLEVJqzxHCcq6DXzswIxtK+FQmvScC/hxJX62yGoh9dVwYM0LpAZzNYg==","shasum":"c776f47bd5f34425f25db8aea061e1ccacee8b71","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.1.0-alpha.3.tgz","fileCount":13,"unpackedSize":27433,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbecMTCRA9TVsSAnZWagAAUmsP/3GTIzLVYL/0oUtO7rRR\nyT7k5bjdnORTOKosrVYeP5vINNng9p/okQGGO7YbjytLAU4k9MiutGfdEsTD\n+/AwB1gNPocCfIRAoZ4TkCNC0uV/U2tHuCqutALEWeKhtCAlkxL/zBXQ7ZGs\nMOh5q4E+meFYPdyJDQHE/jd0BjcTBDPpW+Yz4Rtz+woTTiCZ2eJebUxWcg6T\nkVMIOXqWiNiJWxwaNFCnbvxrKWFIX5bdKeC1sbrj7Ey9pMhwAF73IEjTDY5g\nycZ9dell/FsPW+Z/ctAZCz8OuOqzlrAVB9nswT3p3li2eTSipu9Cx/dyrJqn\npjC+z+l6oqIjDKPzv0U4kKB4vfnWipqO0hPKsRYsY8ff8iraYnTYIDbc2iIF\na+gV0d7Nvy9sPepaQqppGBy/Q70VsOS/M4/y02PxPnXNaJ6a5t9IIcB9O2qu\nkl6k1ZGkhpSou21prhTTkxnGSnE1NsQl3bS/FeA9xEPb+rdO9V5necyEBGoX\n8kTh9e5PN+z7K9qWH8yL/hzEetLRxBOCmTBG0tfTDuAuHKAwdXOerEJ6tXc1\nNpPgItNpz87NlUunSwYi+ByUdcdCZudvx0P3WHqcZTbLRgv0iuiLrSn1S3vY\njCKfaQ34wD8GXDKg3qINxsgh4D6YOb22shYBzKY7tFXD06QO16F4HxMRLeVx\nP4B6\r\n=Ked2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGcKl0RK8EmeJNwKxiLt2Fe2m1xP0lzIFHBiahz2nLMvAiBSS2fc4Tt5kyPqgIHfEJwn2bdqgjEgP3RmMBZ+nF+kfg=="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.1.0-alpha.3_1534706451322_0.6467376525109843"},"_hasShrinkwrap":false},"2.1.0-alpha.4":{"name":"react-native-background-timer","version":"2.1.0-alpha.4","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"eslint":"eslint *.js","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"devDependencies":{"eslint":"^5.4.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.1","eslint-plugin-react":"^7.11.1","react-native":"^0.56.0"},"readme":"# React Native Background Timer\nEmit event periodically (even when app is in the background).\n\n## Installation\n- `yarn add react-native-background-timer`\n- `react-native link`\n\n### Installation using CocoaPods on iOS\n- `yarn add react-native-background-timer`\n- add the following to your Podfile: `pod 'react-native-background-timer', :path => '../node_modules/react-native-background-timer'`\n\n## Usage Crossplatform\nTo use the same code both on Android and iOS use runBackgroundTimer() and stopBackgroundTimer(). There can be used only one background timer to keep code consistent.\n\n```javascript\nBackgroundTimer.runBackgroundTimer(() => { \n//code that will be called every 3 seconds \n}, \n3000);\n//rest of code will be performing for iOS on background too\n\nBackgroundTimer.stopBackgroundTimer(); //after this call all code on background stop run.\n```\n> Android didn't tested as well.\n\n## Usage iOS\nAfter iOS update logic of background task little bit changed. So we can't use as it was. \nYou have to use only start() and stop() without parameters. And all code that is performing will continue performing on background including all setTimeout() timers.\n\nExample:\n```javascript\nBackgroundTimer.start();\n// Do whatever you want incuding setTimeout;\nBackgroundTimer.stop();\n```\n\n> If you call stop() on background no new tasks will be started!\n> Don't call .start() twice, as it stop performing previous background task and starts new. \n> If it will be called on backgound no tasks will run.\n\n## Usage Android\nYou can use the `setInterval` and `setTimeout` functions.\nThis API is identical to that of `react-native` and can be used to quickly replace existing timers\nwith background timers.\n\n```javascript\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```javascript\n// Start a timer that runs continuous after X milliseconds\nconst intervalId = BackgroundTimer.setInterval(() => {\n\t// this will be executed every 200 ms\n\t// even when app is the the background\n\tconsole.log('tic');\n}, 200);\n\n// Cancel the timer when you are done with it\nBackgroundTimer.clearInterval(intervalId);\n```\n\n```javascript\n// Start a timer that runs once after X milliseconds\nconst timeoutId = BackgroundTimer.setTimeout(() => {\n\t// this will be executed once after 10 seconds\n\t// even when app is the the background\n  \tconsole.log('tac');\n}, 10000);\n\n// Cancel the timeout if necessary\nBackgroundTimer.clearTimeout(timeoutId);\n```\n\n### Obsolete\nObsolete usage which doesn't allows to use multiple background timers.\n\n```js\nimport {\n  DeviceEventEmitter,\n  NativeAppEventEmitter,\n  Platform,\n} from 'react-native';\n\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```js\nconst EventEmitter = Platform.select({\n  ios: () => NativeAppEventEmitter,\n  android: () => DeviceEventEmitter,\n})();\n```\n\n```js\n// start a global timer\nBackgroundTimer.start(5000); // delay in milliseconds only for Android\n```\n```js\n// listen for event\nEventEmitter.addListener('backgroundTimer', () => {\n\t// this will be executed once after 5 seconds\n\tconsole.log('toe');\n});\n```\n```js\n// stop the timer\nBackgroundTimer.stop();\n```\n","readmeFilename":"README.md","gitHead":"f77c9e2dd65a01bbe8b38636a8baf5aa046e1e7c","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.1.0-alpha.4","_npmVersion":"6.4.0","_nodeVersion":"10.9.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"integrity":"sha512-lmJGU0HPEmwMgN2aHFqajTiNndE1bC8Qedce97vKcceD55q1Td8sMfjQ/tXrU340ldskG+sZ1s6x6b0e11Rltg==","shasum":"d714408d50407cba4b5c3838786fb178f602f87c","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.1.0-alpha.4.tgz","fileCount":15,"unpackedSize":198163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbed6YCRA9TVsSAnZWagAAO3YP/iv5PfV3m7E8tgWLuHVq\nqpGuU6EI+i+08EL5SWSmygqG5HiJTF4QIHAPIcEXZsBp56jA0DrAzEtH+mQ6\n2I54TPdvsfwiIHHruKL9XQqB2U1QVMTJpY45Im6kXX5sJoyQ1liDt2NP3rrx\n9US3A8JH9RbYtkqKuQq7i5A0I+zByKwuben/qQDkBASbP0vP/3FxBo8ZhgrP\nSOg8LbCy8eVgR75knbPddB69OjzTSZskSEqvuouxMYKE+KU27NsfwdJyEE1X\nvX8w8dwBaH9Dl1l5QfmUOoyrl71Y5Qg+8g1Z0u9DAjJzrMFh2qKFEi7bRI0e\nHiXFdiB910xPtps51HnOjCeq5HKJgVLj1qgLlEzdTdUZYRGt4kGk6JcCWyzJ\ndmg03jm1kBBftyWt1gEXro6LZPPLdGAXKt94//JL43b9q3Yl+tovmzYGpSDy\nT1QKmI511oAr1iKcErwwL3slHWjFfxpf+p42sT2335DxRC87ixICqcB7tyOj\nF4QvD14sc878O3btzRE8NtA1DLH2Tm2FN8vKfkmf54R6hio9gUawteLMNPCQ\nMW7CCTnoVvPrMmlHFroEr22QoO02qhxvSS+fsV9nqHWhYtpUnRWc83xnQZL8\n4Y7t1k5UUQ7alsXh1TD9ZKWgzCMqMbKK3qwAU8+7eVyDw28IAn/tgFHpT5ze\nDIy8\r\n=6JSa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEB1LOMoKkgA4x468MMrLlMABM1QrlILChne01a/Vh2JAiAX3MTXFtBerJVnhb1UeXaSdu8XMsf/bJUzNoEFasVTFg=="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.1.0-alpha.4_1534713495556_0.6811945540209332"},"_hasShrinkwrap":false},"2.1.0-alpha.5":{"name":"react-native-background-timer","version":"2.1.0-alpha.5","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"eslint":"eslint *.js","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"devDependencies":{"eslint":"^5.4.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.1","eslint-plugin-react":"^7.11.1","react-native":"^0.56.0"},"readme":"# React Native Background Timer\nEmit event periodically (even when app is in the background).\n\n## Installation\n\n:warning: If you use [create-react-native-app](https://github.com/react-community/create-react-native-app) you must [eject](https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md) it before running `react-native link`.\n\n- `yarn add react-native-background-timer`\n- `react-native link`\n\n### Installation using CocoaPods on iOS\n- `yarn add react-native-background-timer`\n- add the following to your Podfile: `pod 'react-native-background-timer', :path => '../node_modules/react-native-background-timer'`\n\n## Usage Crossplatform\nTo use the same code both on Android and iOS use runBackgroundTimer() and stopBackgroundTimer(). There can be used only one background timer to keep code consistent.\n\n```javascript\nBackgroundTimer.runBackgroundTimer(() => { \n//code that will be called every 3 seconds \n}, \n3000);\n//rest of code will be performing for iOS on background too\n\nBackgroundTimer.stopBackgroundTimer(); //after this call all code on background stop run.\n```\n> Android didn't tested as well.\n\n## Usage iOS\nAfter iOS update logic of background task little bit changed. So we can't use as it was. \nYou have to use only start() and stop() without parameters. And all code that is performing will continue performing on background including all setTimeout() timers.\n\nExample:\n```javascript\nBackgroundTimer.start();\n// Do whatever you want incuding setTimeout;\nBackgroundTimer.stop();\n```\n\n> If you call stop() on background no new tasks will be started!\n> Don't call .start() twice, as it stop performing previous background task and starts new. \n> If it will be called on backgound no tasks will run.\n\n## Usage Android\nYou can use the `setInterval` and `setTimeout` functions.\nThis API is identical to that of `react-native` and can be used to quickly replace existing timers\nwith background timers.\n\n```javascript\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```javascript\n// Start a timer that runs continuous after X milliseconds\nconst intervalId = BackgroundTimer.setInterval(() => {\n\t// this will be executed every 200 ms\n\t// even when app is the the background\n\tconsole.log('tic');\n}, 200);\n\n// Cancel the timer when you are done with it\nBackgroundTimer.clearInterval(intervalId);\n```\n\n```javascript\n// Start a timer that runs once after X milliseconds\nconst timeoutId = BackgroundTimer.setTimeout(() => {\n\t// this will be executed once after 10 seconds\n\t// even when app is the the background\n  \tconsole.log('tac');\n}, 10000);\n\n// Cancel the timeout if necessary\nBackgroundTimer.clearTimeout(timeoutId);\n```\n\n### Obsolete\nObsolete usage which doesn't allows to use multiple background timers.\n\n```js\nimport {\n  DeviceEventEmitter,\n  NativeAppEventEmitter,\n  Platform,\n} from 'react-native';\n\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```js\nconst EventEmitter = Platform.select({\n  ios: () => NativeAppEventEmitter,\n  android: () => DeviceEventEmitter,\n})();\n```\n\n```js\n// start a global timer\nBackgroundTimer.start(5000); // delay in milliseconds only for Android\n```\n```js\n// listen for event\nEventEmitter.addListener('backgroundTimer', () => {\n\t// this will be executed once after 5 seconds\n\tconsole.log('toe');\n});\n```\n```js\n// stop the timer\nBackgroundTimer.stop();\n```\n","readmeFilename":"README.md","gitHead":"df38d4fef7af5b668afab71d077d5f9073607843","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.1.0-alpha.5","_npmVersion":"6.4.0","_nodeVersion":"10.9.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"integrity":"sha512-hBGyqgofE0bQy1n8tinMVk0OOjlvc9MpAZ0OTAheFuKCK7JfHTQ0kQkmToNAeRMxfjBC4stZtaD2W18DbwF3xQ==","shasum":"3222abab82b8b416595f670523f5e869aa21fe8c","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.1.0-alpha.5.tgz","fileCount":16,"unpackedSize":199385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbexEiCRA9TVsSAnZWagAAopEP+QE0L6nYkVMaGqcBNcm4\nvil1u3t+BGYQttuqd7JmXY68ExQFEIIccpskZwFIhuXIkUn+ksFb8VEEMWMz\nJhQY8eDblMcQZXv2bf2W27C7S9MpVdwrIol2dlN53oRj3bFOOY6lhlfJfZ9v\nk2m064TL23CVCQReS66qghL1TD8rV9FB3xIPdhPzJBUGgStvuVRM0kOO8ZpX\nAfjVbAOdHizoVsPj56CtjGSOaPAdjGQREKUjc2ppH+FGlT6uF+9S1762ZLFn\n4EcgzE/YyufNLl3sct+MDARDt0hcjkkgPVhGsdJOspg7pu2EwjIZJSTjkxLP\n0X2m+5ANr6I5P8u53TiOyBHFYIF9goTof+uG4KPKx4EWVOwC5koP+Y56WMpr\nEl/DlF7hn5HV3scmpnGyVSBPXPt8HmZc/XUApUfz/tLT23GgYCI26v5UxNGL\nyoFm31JNgOxtBDS5+j70VLt+IUxw46yhfaKZUP+Pn7JiJz7Rs+LAKaAJuwvc\nIi/imbmtj22gde8hx/J1Of9f0YXlw6xpJl/3y3cy2WsiZ4vL4Joj8221sfc/\nVMikp7BtjXPp98Ij4R3BbL1BU4aKHPX71TtT3YrMBPA0NSRlOWmBbkO4WcqR\n29PbyFHHFmy6cWs2+yl9V7XDL2w3mwgJLIFtGQsmv+cAsriRIfLDRkf+hSKY\nuT7c\r\n=iis1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGl5thmpeiRAuRClt4e99HBWGjXLFQuSqSok3sqgcmd/AiAX8zETBKogKPgt/rt0r39mIqNrgouvV7kp8HfMc+2xLg=="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.1.0-alpha.5_1534791969609_0.1347279507148642"},"_hasShrinkwrap":false},"2.1.0-alpha.6":{"name":"react-native-background-timer","version":"2.1.0-alpha.6","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"eslint":"eslint *.js","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"devDependencies":{"eslint":"^5.4.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.1","eslint-plugin-react":"^7.11.1","react-native":"^0.56.0"},"readme":"# React Native Background Timer\nEmit event periodically (even when app is in the background).\n\n## Installation\n\n:warning: If you use [create-react-native-app](https://github.com/react-community/create-react-native-app) you must [eject](https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md) it before running `react-native link`.\n\n- `yarn add react-native-background-timer`\n- `react-native link`\n\n### Installation using CocoaPods on iOS\n- `yarn add react-native-background-timer`\n- add the following to your Podfile: `pod 'react-native-background-timer', :path => '../node_modules/react-native-background-timer'`\n\n## Usage Crossplatform\nTo use the same code both on Android and iOS use runBackgroundTimer() and stopBackgroundTimer(). There can be used only one background timer to keep code consistent.\n\n```javascript\nBackgroundTimer.runBackgroundTimer(() => { \n//code that will be called every 3 seconds \n}, \n3000);\n//rest of code will be performing for iOS on background too\n\nBackgroundTimer.stopBackgroundTimer(); //after this call all code on background stop run.\n```\n> Android didn't tested as well.\n\n## Usage iOS\nAfter iOS update logic of background task little bit changed. So we can't use as it was. \nYou have to use only start() and stop() without parameters. And all code that is performing will continue performing on background including all setTimeout() timers.\n\nExample:\n```javascript\nBackgroundTimer.start();\n// Do whatever you want incuding setTimeout;\nBackgroundTimer.stop();\n```\n\n> If you call stop() on background no new tasks will be started!\n> Don't call .start() twice, as it stop performing previous background task and starts new. \n> If it will be called on backgound no tasks will run.\n\n## Usage Android\nYou can use the `setInterval` and `setTimeout` functions.\nThis API is identical to that of `react-native` and can be used to quickly replace existing timers\nwith background timers.\n\n```javascript\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```javascript\n// Start a timer that runs continuous after X milliseconds\nconst intervalId = BackgroundTimer.setInterval(() => {\n\t// this will be executed every 200 ms\n\t// even when app is the the background\n\tconsole.log('tic');\n}, 200);\n\n// Cancel the timer when you are done with it\nBackgroundTimer.clearInterval(intervalId);\n```\n\n```javascript\n// Start a timer that runs once after X milliseconds\nconst timeoutId = BackgroundTimer.setTimeout(() => {\n\t// this will be executed once after 10 seconds\n\t// even when app is the the background\n  \tconsole.log('tac');\n}, 10000);\n\n// Cancel the timeout if necessary\nBackgroundTimer.clearTimeout(timeoutId);\n```\n\n### Obsolete\nObsolete usage which doesn't allows to use multiple background timers.\n\n```js\nimport {\n  DeviceEventEmitter,\n  NativeAppEventEmitter,\n  Platform,\n} from 'react-native';\n\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```js\nconst EventEmitter = Platform.select({\n  ios: () => NativeAppEventEmitter,\n  android: () => DeviceEventEmitter,\n})();\n```\n\n```js\n// start a global timer\nBackgroundTimer.start(5000); // delay in milliseconds only for Android\n```\n```js\n// listen for event\nEventEmitter.addListener('backgroundTimer', () => {\n\t// this will be executed once after 5 seconds\n\tconsole.log('toe');\n});\n```\n```js\n// stop the timer\nBackgroundTimer.stop();\n```\n","readmeFilename":"README.md","gitHead":"572cfa1263ae066256839d46f22390d4aefa6f1b","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.1.0-alpha.6","_npmVersion":"6.4.0","_nodeVersion":"10.9.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"integrity":"sha512-2J87AlGjDsfujxdEGXJxqYpSVyNrgcfwqh0PDwesQoOCqmiIkLA7N0tLE4joB9N0oYMraIteFYaiUu8jJdO7oA==","shasum":"f8495a9c44d80295c088b09c59d88fdf0a8d6ecd","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.1.0-alpha.6.tgz","fileCount":16,"unpackedSize":199408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhDJ9CRA9TVsSAnZWagAATesP/iAAHxqQM2SxoAYnZ5Mh\n4fZiqWuKBvJW4mQVShXNJO6dv5BiTVFS2Prb0+r3No9qgW8zUqD+gOu82Yh6\nMQD9nZ0ilrRzmLcfhvBSbCALTRMR6VBl3r1lx0Wpl5/FdJsutBosWjUdcpB7\nAZavKWkmSI1uiRFINyWzuw+I4Klo6abYtt4Qytl29P19Tyw30iJbV8DkOgEu\n9CEluM2SzC70jS5zt4cRNZsaRLNQCRtzbWZ68TAvWbQ+plIWFzGUd//5MN8n\nc0O5VbbRn9fRlFY7hkkfBfr9PXoHKcxNMvkZMeNrHHpU0irITx9D6GZ+EDUz\nL4FCM4Eh1GUG/+uNADhAOYwt5WM7SqB7cMsNClibtIWyy2Ci2sVW6VgXHDND\nxjGcX8QOLBj20xDgU0d54qP9OpDYHbMXyNxa+Dwc5imZmSdNShqp14tFlO8y\ngsIebhWcICPxVJtz3CS3zILcavdNcbPpdt2jcXCJJGC2yr4mo12qhg058LnZ\nw1D2TjDc92m5iXbJ2VW0EpjpL6aKDVL9gjqWw2slCKKWSZ/0TvXFW4JCBArp\nN9gUIHnPgblsW5L7KaepHXpKxqz3xnl3FF498bFEawcDlE4C4x0hhg9w9ksZ\n+yK84nW7UXmOYawlOEGJvE+Kc/vsMY1T/dK0RtNyDbelZzKrjTtzo/LXHAg2\nUplW\r\n=HCQf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG259S+d3w5cShbB5ZQFnCILbsUsr0ZPHHP71uRA+xJsAiB4gQrI5LQupJ9yS42672Y3mgtnJfFV2XomgAoaTMKyHQ=="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.1.0-alpha.6_1535390332662_0.9473673112160073"},"_hasShrinkwrap":false},"2.1.0-alpha.7":{"name":"react-native-background-timer","version":"2.1.0-alpha.7","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"eslint":"eslint *.js","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"devDependencies":{"eslint":"^5.4.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.1","eslint-plugin-react":"^7.11.1","react-native":"^0.56.0"},"readme":"# React Native Background Timer\nEmit event periodically (even when app is in the background).\n\n## Installation\n\n:warning: If you use [create-react-native-app](https://github.com/react-community/create-react-native-app) you must [eject](https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md) it before running `react-native link`.\n\n- `yarn add react-native-background-timer`\n- `react-native link`\n\n### Installation using CocoaPods on iOS\n- `yarn add react-native-background-timer`\n- add the following to your Podfile: `pod 'react-native-background-timer', :path => '../node_modules/react-native-background-timer'`\n\n## Usage Crossplatform\nTo use the same code both on Android and iOS use runBackgroundTimer() and stopBackgroundTimer(). There can be used only one background timer to keep code consistent.\n\n```javascript\nBackgroundTimer.runBackgroundTimer(() => { \n//code that will be called every 3 seconds \n}, \n3000);\n//rest of code will be performing for iOS on background too\n\nBackgroundTimer.stopBackgroundTimer(); //after this call all code on background stop run.\n```\n> Android didn't tested as well.\n\n## Usage iOS\nAfter iOS update logic of background task little bit changed. So we can't use as it was. \nYou have to use only start() and stop() without parameters. And all code that is performing will continue performing on background including all setTimeout() timers.\n\nExample:\n```javascript\nBackgroundTimer.start();\n// Do whatever you want incuding setTimeout;\nBackgroundTimer.stop();\n```\n\n> If you call stop() on background no new tasks will be started!\n> Don't call .start() twice, as it stop performing previous background task and starts new. \n> If it will be called on backgound no tasks will run.\n\n## Usage Android\nYou can use the `setInterval` and `setTimeout` functions.\nThis API is identical to that of `react-native` and can be used to quickly replace existing timers\nwith background timers.\n\n```javascript\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```javascript\n// Start a timer that runs continuous after X milliseconds\nconst intervalId = BackgroundTimer.setInterval(() => {\n\t// this will be executed every 200 ms\n\t// even when app is the the background\n\tconsole.log('tic');\n}, 200);\n\n// Cancel the timer when you are done with it\nBackgroundTimer.clearInterval(intervalId);\n```\n\n```javascript\n// Start a timer that runs once after X milliseconds\nconst timeoutId = BackgroundTimer.setTimeout(() => {\n\t// this will be executed once after 10 seconds\n\t// even when app is the the background\n  \tconsole.log('tac');\n}, 10000);\n\n// Cancel the timeout if necessary\nBackgroundTimer.clearTimeout(timeoutId);\n```\n\n### Obsolete\nObsolete usage which doesn't allows to use multiple background timers.\n\n```js\nimport {\n  DeviceEventEmitter,\n  NativeAppEventEmitter,\n  Platform,\n} from 'react-native';\n\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```js\nconst EventEmitter = Platform.select({\n  ios: () => NativeAppEventEmitter,\n  android: () => DeviceEventEmitter,\n})();\n```\n\n```js\n// start a global timer\nBackgroundTimer.start(5000); // delay in milliseconds only for Android\n```\n```js\n// listen for event\nEventEmitter.addListener('backgroundTimer', () => {\n\t// this will be executed once after 5 seconds\n\tconsole.log('toe');\n});\n```\n```js\n// stop the timer\nBackgroundTimer.stop();\n```\n","readmeFilename":"README.md","gitHead":"3f04e3bc79ecbe68adc68b72c5cec7c2c573b73c","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.1.0-alpha.7","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"integrity":"sha512-9mpCDy62LhMJlRD4BjYd9Cahz+t/O5OIU0Mzub/Ha6kceIZmsqrtm2qgJlou2F/DbFSYBY/EvsOG+k3DxtCiAA==","shasum":"30ff46007ab79a93c5e8b188fd28672993268b97","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.1.0-alpha.7.tgz","fileCount":16,"unpackedSize":199415,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2qlGCRA9TVsSAnZWagAAuh4QAJCN02vTpc+IGP0uL0Du\n1W6MfL6SKoZteDQiOKNxQsGDuC3tlESyaPkAqnVQiwfuB20BWjlEDpsAeakZ\n5ZT+fO0/i7hzJznnHp2HNB8Fob+YseD6fegq3vw8czZxb8x+JUlkIyJcmI9q\n6nXiULvyiZNCKiE2K1r+92B0wOWWoNTlVcqXapsyPeLAutNscbsJXH1k6QlP\n2f/Z9jclAUL9r2jalkzUFgU+PW4I+WgTndCVNw7rSW+h+957S6NjZaY163z1\nABH8cNBViNtJmVsITfdfErebwVKba5V7FjBa0Mc1Xa97BMrbOdanRWIryy9G\nMDBgg633TdOH/WpEkxjIbYzdTi23w/FLjGtpgaExZzWz0kWEhsPqsFUGUzgR\na48PjdoqmXXylK2eHKsVh5DJ86ILE0lY7czEB/9GX38bZX6PD8wILgkNKzgG\nWoJLHhU8qaSO4peVM1bSXeFBHeYLxI7OJeZVIQrKt3YXjFbOTveWDAJv02lT\nQhvapPUYxTqEl2+eOlrY8dDaEjTf/9k0H62GmCKdCovetXWjm6oVH3N/L4O/\n0cGYdiqfNvYC4ZaGIWOf7VtOl02IKGy7rVNLrBJTggjEs1InH/a1sELnLvNL\nLivREXfzVRUPK0aFNcQk24H0ylZGTOdpE7phIZ8k60Vp1AlAN8WppRUN6oDZ\npOeq\r\n=1kDY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDj8+5L0LT2CKCD+3Me20EFuQf81pe3hiD7pke6iaWrcAiEAvHQMZPB+WJy0zRrrsWurT+DfDmt9RMP0nKhkvYWFx7I="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.1.0-alpha.7_1541056837712_0.3294164095447807"},"_hasShrinkwrap":false},"2.1.0":{"name":"react-native-background-timer","version":"2.1.0","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"eslint":"eslint *.js","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"devDependencies":{"eslint":"^5.4.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.1","eslint-plugin-react":"^7.11.1","react-native":"^0.56.0"},"gitHead":"f28823ab694a257c6fdbbd8b34a46f953209d197","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.1.0","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"integrity":"sha512-v5Hh7V0W4vqN6xS0sKtijEElQttbsjAZO8XT5FjLBHIR1RocY4zr+VbOVnm5RhO1WqCeqtEBAcxj61cCByXpwA==","shasum":"4647a660b142a52a5ed6ac8fd384743bc683c96f","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.1.0.tgz","fileCount":16,"unpackedSize":199407,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb7FzVCRA9TVsSAnZWagAALUMP/1X/U+jkSQ4kZyNQYrtv\nA1OLMKaQPfXdWFiykDBtFfJfp8CEi2XnSCKb5k6ZNGR07CfH10/3n/0/v486\nif5dCuS5uQ15EK0cyKgeQ1l6FtT+HGmUR1Fz3Iqv/kEdlAuUP09K5h9hAelT\nDQsEoxkH0M9hddVoIrlsY9umF5jXG2izUAMxe5GEdIQ1Vdjomcqcg7iAz3TE\ng/vMNqv3rhNhvJI2Es3uYzWXkMFN9k9x12Ul6dfcJS9Qw7XBVJbnVpcf+l5d\niNJCEL9AmXgzoUuoKqRKNGUR6BaV8fN9QCYW1CXtYHXROUDyz099ZIzXAkyO\nqlEa6l8gis5fe+d3oEsU3bxqyn8MsCWR+to4MJy3Gtl/aMbhVWxuTxQYtJJZ\nlTYTAWl4acqlJngm/CWLqN/xw7sBT9rT3l7DeascmDrwrcYt9jiZJI2vHwpo\nCMOAvVc3QPQoCFCuhBAsFW2CK5gy4dn5ZMyLcjDe+n8OTT7mO3/YBZAix7oc\n/VxOg9OE/bbKwFyXqnCANJF7Qx7/l7INTci9WwcI5wHOwCNxhhF4sdacu5pH\nR2HX5g63x6c/AdgoRV/akLNJfaLU+/13Wx0QDpZJBgCkDV+83sLInKTca2Cw\n/UUYl8xeOmEnOIeZlUIgljoc6jW2no8SApK5hmhrSCfoGBHdD4i3HvEWQrRm\n+cCk\r\n=p7ky\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFNpeAZTLcrMjXr3+FXIIYlH56dGLZCQw98su/s84sYGAiBuX/wX/wPF39k/pJJ3YlCOXdc44hpfDjlHJO0JXX1Ufg=="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.1.0_1542216916617_0.4862720180933571"},"_hasShrinkwrap":false},"2.1.1":{"name":"react-native-background-timer","version":"2.1.1","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"eslint":"eslint *.js","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"devDependencies":{"eslint":"^5.4.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.1","eslint-plugin-react":"^7.11.1","react-native":"^0.56.0"},"gitHead":"e930850f3e992e5a0ba47837c85af0145847b2ac","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"integrity":"sha512-cuXIIv+dcG8a8qkTD8pMzeqOEZCO+UGKglZWIe1osve+yJslmCowYQff+bI9xa7NOt2w+Vtd4L3d9JonlSqODg==","shasum":"9a2489681ab2f8033c213c73272e9d4c47572cd5","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.1.1.tgz","fileCount":16,"unpackedSize":199412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb8b6CCRA9TVsSAnZWagAACbUQAJ31yVVJ4Gh0tky5d0Dd\nRjMVzqddJ+YYW4NbEGWZPBFrWRyYqH9ZkLOGjCARHI9v/BPjMWVGJYR+FnRy\nhv6tD0ZQ+WMmO4Wu1GtGXE63lczQxWbHsU/mupmUihKOFHs0HAv48XJKG595\nA6Ru30VMUGqCA4vdj/Z9+GPlmbhKq/DLhHF3FI2pm7IZCl27eN4BgGTplR83\nlkhtoDqgyxJ58l4bKyzDM579turmW445Zch70O50Vk+WrYJ5QpT1pzvbz8oY\nf7mofJODwrnz4BP/W4hliSH1x5iy1Aw//+DRXa/TZaOgp1y9wR3XHqmNsa/P\noLTFPxvV+wntleuMDaIwCOgIan+2YZSQPthO2wM6gu8f92q9fn1ekt4oScQQ\ncsGKL/oJ/8YY/BWuz/iKJmRUof1oGfsKECkPV6484FI5XflCQJH8fXHaYPLd\nlDv1+WH+Hrxwy/HNFtmPWVM+Ndp/mii3+lS5ND/ov7PCbyXL1xwBRhzfUaX8\n+JqTs00PAhqyQ4+CSUB/jIx8tOADEcKdMArvjCb1t6zDu7wm7TGnn+4bJ4QS\nTYerq3aixQJJ+6dvpicfiOFVwVy72Yw2eDJsapK85d8mcIrNWkxJDsdCpxnl\nJxEby6rkZOIUCD9KAVn9lDpB/zV1T3B/qriMi0gk/rrExEnWfyvFHm+Pumpj\n2fdg\r\n=EDfe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAr8KtgntzSrrC6FKNQIwAc84xkgpprwk1tMum8uQegJAiEAyCb9xqhMhWzuUP6qsWpc/kQEeIfF+YEOt1wcUEENLHI="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.1.1_1542569601476_0.3036597924095812"},"_hasShrinkwrap":false},"2.2.0-alpha.0":{"name":"react-native-background-timer","version":"2.2.0-alpha.0","description":"Emit event periodically (even when app is in the background)","keywords":["android","ios","react-component","react-native","timer"],"main":"index.js","scripts":{"eslint":"eslint *.js","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"devDependencies":{"eslint":"^5.4.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.1","eslint-plugin-react":"^7.11.1","react-native":"^0.56.0"},"readme":"# React Native Background Timer\nEmit event periodically (even when app is in the background).\n\n## Installation\n\n:warning: If you use [create-react-native-app](https://github.com/react-community/create-react-native-app) you must [eject](https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md) it before running `react-native link`.\n\n- `yarn add react-native-background-timer`\n- `react-native link`\n\n### Installation using CocoaPods on iOS\n- `yarn add react-native-background-timer`\n- add the following to your Podfile: `pod 'react-native-background-timer', :path => '../node_modules/react-native-background-timer'`\n\n### Manual linking on Android\n\nApply these changes to your project if `react-native link react-native-background-timer` failed:\n\n**`android/settings.gradle`:**\n\n```\ninclude ':react-native-background-timer'\nproject(':react-native-background-timer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-background-timer/android')\n```\n\n**`android/app/src/main/java/com/yourproject/MainApplication.java`:**\n\nOn top, where imports are:\n```\nimport com.ocetnik.timer.BackgroundTimerPackage;\n```\nAdd BackgroundTimerPackage() to the list of exported packages:\n```\n    @Override\n    protected List<ReactPackage> getPackages() {\n      return Arrays.<ReactPackage>asList(\n            ...\n            new BackgroundTimerPackage()\n      );\n    }\n```\n**`android/app/build.gradle`:**\n```\ndependencies {\n    ...\n    implementation project(':react-native-background-timer')\n}\n```\n\n## Usage Crossplatform\nTo use the same code both on Android and iOS use runBackgroundTimer() and stopBackgroundTimer(). There can be used only one background timer to keep code consistent.\n\n```javascript\nBackgroundTimer.runBackgroundTimer(() => { \n//code that will be called every 3 seconds \n}, \n3000);\n//rest of code will be performing for iOS on background too\n\nBackgroundTimer.stopBackgroundTimer(); //after this call all code on background stop run.\n```\n> Android didn't tested as well.\n\n## Usage iOS\nAfter iOS update logic of background task little bit changed. So we can't use as it was. \nYou have to use only start() and stop() without parameters. And all code that is performing will continue performing on background including all setTimeout() timers.\n\nExample:\n```javascript\nBackgroundTimer.start();\n// Do whatever you want incuding setTimeout;\nBackgroundTimer.stop();\n```\n\n> If you call stop() on background no new tasks will be started!\n> Don't call .start() twice, as it stop performing previous background task and starts new. \n> If it will be called on backgound no tasks will run.\n\n## Usage Android\nYou can use the `setInterval` and `setTimeout` functions.\nThis API is identical to that of `react-native` and can be used to quickly replace existing timers\nwith background timers.\n\n```javascript\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```javascript\n// Start a timer that runs continuous after X milliseconds\nconst intervalId = BackgroundTimer.setInterval(() => {\n\t// this will be executed every 200 ms\n\t// even when app is the the background\n\tconsole.log('tic');\n}, 200);\n\n// Cancel the timer when you are done with it\nBackgroundTimer.clearInterval(intervalId);\n```\n\n```javascript\n// Start a timer that runs once after X milliseconds\nconst timeoutId = BackgroundTimer.setTimeout(() => {\n\t// this will be executed once after 10 seconds\n\t// even when app is the the background\n  \tconsole.log('tac');\n}, 10000);\n\n// Cancel the timeout if necessary\nBackgroundTimer.clearTimeout(timeoutId);\n```\n\n### Obsolete\nObsolete usage which doesn't allows to use multiple background timers.\n\n```js\nimport {\n  DeviceEventEmitter,\n  NativeAppEventEmitter,\n  Platform,\n} from 'react-native';\n\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```js\nconst EventEmitter = Platform.select({\n  ios: () => NativeAppEventEmitter,\n  android: () => DeviceEventEmitter,\n})();\n```\n\n```js\n// start a global timer\nBackgroundTimer.start(5000); // delay in milliseconds only for Android\n```\n```js\n// listen for event\nEventEmitter.addListener('backgroundTimer', () => {\n\t// this will be executed once after 5 seconds\n\tconsole.log('toe');\n});\n```\n```js\n// stop the timer\nBackgroundTimer.stop();\n```\n","readmeFilename":"README.md","gitHead":"590d4f12454fded136074f904275602c5d99766d","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.2.0-alpha.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"dist":{"integrity":"sha512-n7BXclIbQpG32eJ+8gbodVgkhxDWnOhGhgKUMyjNB/seTatIi58YHrhDa8aSeQGJV310/PduHzcl+6G7NvcCZg==","shasum":"50f4049417b597a7a45ab50f12c6e0a84362aa41","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.2.0-alpha.0.tgz","fileCount":16,"unpackedSize":200158,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc9W7ACRA9TVsSAnZWagAAglMQAIVl0rw5Ugn7RTul9Yqu\nfsax80GNlf5AmCXKoUglyErTHln2kL6lCCaqT7m/D/yHkPrmu5kapCa4to57\nbrk2RJWQxFMP9RaYuNClerbihvBroYkyP+b2SpCS6705vzv2xaiek69cO8F1\nyJyzOh4fWfMBEkCDxoDVH8tXM6sJYSPAQoephfwHAVsahBYavUQmd6g0EloQ\n9LfZjalkRFrGdxb4DXVkMNRf647ByKzrKSO4mJ55E3fxfiExsLq1ixk0t2DP\nlhhUM6+CQ52LSJqlONjK0zgtU7CzbEfloyU5DKM6M2M3qm2voOBpYluDZcp+\nkqZ5RGyten6OBwn4a+eR6ayJejGIxfZNll10RuAbEKN/7jhlgpZiq2TfWsIy\nH7mbib3sAemD6FG3m3Q0h5yChOPeTd5Dh5pvEbtVwe4zkQKtbPAJSWgvms5W\nykDiySVr/DNlySI3p0guyoF0PPsz3XceiV2c1yzkp03ZYsGtKLgxqs4lNzIt\nKaCuv3wmssT6xfSlQvTD20qyeHToAOhlb7OyDwHSCiYPHfLAvTLXgypeZVRU\n5r/SvlxJ6jTWx/jU87zizVF+U3xrPZHmV8R817Op8sw2sTIrNeMs3k5Au69N\nV1r7iFNYI1I4ExFj+SwNCwMGGGqIMmIqp0kvAbYnBewXdYYHEnhi007wEGx+\nVW47\r\n=umKC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdrjslZpC7eZ5EPV+op40OIofSl+qDkeUD+noScNOT+QIgd0o4vlEcko1lNGquVTVkN87rylzQom0aMJkdv/m5I7g="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.2.0-alpha.0_1559588544179_0.5363660474156831"},"_hasShrinkwrap":false},"2.2.0-alpha.1":{"name":"react-native-background-timer","version":"2.2.0-alpha.1","description":"Emit event periodically (even when app is in the background)","keywords":["react-native","background","timer","android","ios"],"main":"index.js","scripts":{"eslint":"eslint *.js","eslint:fix":"yarn eslint --fix","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"devDependencies":{"@babel/core":"^7.8.6","eslint":"^6.8.0","eslint-config-airbnb":"^18.0.1","eslint-config-prettier":"^6.10.0","eslint-plugin-import":"^2.20.1","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-prettier":"^3.1.2","eslint-plugin-react":"^7.18.3","eslint-plugin-react-hooks":"^1.7.0","husky":"^4.2.3","lint-staged":"^10.0.8","prettier":"^1.19.1","react":"16.8.6","react-native":"^0.60.6"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"readme":"# React Native Background Timer\nEmit event periodically (even when app is in the background).\n\n## Installation\n1. If you use Expo to create a project [you'll just need to](https://facebook.github.io/react-native/docs/getting-started#caveats) \"[eject](https://docs.expo.io/versions/latest/expokit/eject)\".\n\n    ```bash\n    expo eject\n    ```\n\n2. Install React Native Background Timer package.\n\n    ```bash\n    yarn add react-native-background-timer\n    # or using npm\n    npm install react-native-background-timer --save\n    ```\n\n3. Link React Native Background Timer library. This step is not necessary when you use React Native >= 0.60 (and your app is not ejected from Expo).\n\n    ```bash\n    react-native link react-native-background-timer\n    ```\n\n4. If you use CocoaPods or React Native >= 0.60 (and your app is not ejected from Expo) or your app is ejected from Expo, then before running your app on iOS, make sure you have CocoaPods installed and run:\n\n    ```bash\n    cd ios\n    pod install\n    ```\n\nLink the library manually if you get errors:\n\n- Android: `TypeError: Cannot read property 'setTimeout' of undefined` or `TypeError: null is not an object (evaluating 'RNBackgroundTimer.setTimeout')`\n- iOS: `Native module cannot be null`\n\n<details>\n    <summary>Android manual linking</summary>\n\n- `android/settings.gradle`\n\n    ```diff\n    + include ':react-native-background-timer'\n    + project(':react-native-background-timer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-background-timer/android')\n    ```\n\n- `android/app/build.gradle`\n\n    ```diff\n    dependencies {\n    +   implementation project(':react-native-background-timer')\n    }\n    ```\n\n- `android/app/src/main/java/com/your-app/MainApplication.java`\n\n    ```diff\n    + import com.ocetnik.timer.BackgroundTimerPackage;\n\n    @Override\n    protected List<ReactPackage> getPackages() {\n      return Arrays.<ReactPackage>asList(\n    +   new BackgroundTimerPackage()\n      );\n    }\n    ```\n</details>\n\n<details>\n  <summary>iOS manual linking</summary>\n\n- `ios/Podfile`\n\n    ```diff\n    + pod 'react-native-background-timer', :path => '../node_modules/react-native-background-timer'\n    ```\n</details>\n\n## Usage\n\n```js\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n### Crossplatform\nTo use the same code both on Android and iOS use runBackgroundTimer() and stopBackgroundTimer(). There can be used only one background timer to keep code consistent.\n\n```js\nBackgroundTimer.runBackgroundTimer(() => { \n//code that will be called every 3 seconds \n}, \n3000);\n//rest of code will be performing for iOS on background too\n\nBackgroundTimer.stopBackgroundTimer(); //after this call all code on background stop run.\n```\n\n### iOS\nAfter iOS update logic of background task little bit changed. So we can't use as it was. \nYou have to use only start() and stop() without parameters. And all code that is performing will continue performing on background including all setTimeout() timers.\n\nExample:\n```js\nBackgroundTimer.start();\n// Do whatever you want incuding setTimeout;\nBackgroundTimer.stop();\n```\n\n> If you call stop() on background no new tasks will be started!\n> Don't call .start() twice, as it stop performing previous background task and starts new. \n> If it will be called on backgound no tasks will run.\n\n### Android\nYou can use the `setInterval` and `setTimeout` functions.\nThis API is identical to that of `react-native` and can be used to quickly replace existing timers\nwith background timers.\n\n```js\n// Start a timer that runs continuous after X milliseconds\nconst intervalId = BackgroundTimer.setInterval(() => {\n\t// this will be executed every 200 ms\n\t// even when app is the the background\n\tconsole.log('tic');\n}, 200);\n\n// Cancel the timer when you are done with it\nBackgroundTimer.clearInterval(intervalId);\n```\n\n```js\n// Start a timer that runs once after X milliseconds\nconst timeoutId = BackgroundTimer.setTimeout(() => {\n\t// this will be executed once after 10 seconds\n\t// even when app is the the background\n  \tconsole.log('tac');\n}, 10000);\n\n// Cancel the timeout if necessary\nBackgroundTimer.clearTimeout(timeoutId);\n```\n\n### Obsolete\nObsolete usage which doesn't allows to use multiple background timers.\n\n```js\nimport {\n  DeviceEventEmitter,\n  NativeAppEventEmitter,\n  Platform,\n} from 'react-native';\n\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```js\nconst EventEmitter = Platform.select({\n  ios: () => NativeAppEventEmitter,\n  android: () => DeviceEventEmitter,\n})();\n```\n\n```js\n// start a global timer\nBackgroundTimer.start(5000); // delay in milliseconds only for Android\n```\n```js\n// listen for event\nEventEmitter.addListener('backgroundTimer', () => {\n\t// this will be executed once after 5 seconds\n\tconsole.log('toe');\n});\n```\n```js\n// stop the timer\nBackgroundTimer.stop();\n```\n","readmeFilename":"README.md","gitHead":"c79f6e776e69aeb55edce62ccde65b610eac8ffc","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.2.0-alpha.1","_nodeVersion":"10.16.2","_npmVersion":"6.9.0","dist":{"integrity":"sha512-kEMleZObqdk70sNfEiNOJdXn2YV0QfWmz5N3Vg5Eb0i/svedfkR09CbJe07mNQGgEmIbqVWao0qntTV/Nk9anA==","shasum":"3fbaeb3da570221fb775e28de7146fecffbbbef5","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.2.0-alpha.1.tgz","fileCount":17,"unpackedSize":31544,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZ+xbCRA9TVsSAnZWagAAjswQAJFHj4criKhL46+Sw6Fe\nPOxNgia7jdUXeDw3NlqLiQuaqyIi41gdPiVePymp9qrtcj6uqAoCzaTrcVUo\n9PTIsSKc47D+uu9qAv7opIobTbwatWI/1YW97z/yCksK7v7tdAdCjNSYtDNn\nLMsc67He/KUiUKaJI5awQgBXbzl8J/9HqpsZsr3dnsuxII5sxk5zsGClY9oA\n0Dqdc1MY/jgPx4VXpUPPlcaK+YNjC7GYX95jRFlKII8XJ+3uNCpmgc1Q8MyM\n+eKmHhWul/3cSKggYxKgzXMnjAwGb31fQk34KPWm2PHl2TlrdOICSAWnA7NB\n9OEPcxmMbyxuIAVkitfoNr68RlPsxbtBsitvGNooaQsl5pDZaaXs/o0Q+fuD\nA4eq0cJqcoQxN+IsshykDerReXY8b04/+HW1G/XNljTmLi+y6qWWnmt3E1K6\nR/vgGtiTRc0umZPS5LUtkadL22ftULpVpMRXM0QlqE4jm3zyACewVnkMajiX\nh3+fyPmj8DNZ2DLsOBIggNedrRDTMkd+Au0gmF7cc/aOJs9HWOO5gSv9DASN\nhpvVLSU9KLFYSQsckjq+GycSRoPrfEKPGB+6M6jO2YWPLvmk1u0qy3JYourm\nuv99EliLh1ZtgYmTavDcDfWhRQVI2XMh9QhJO4FeTIvaKJzBHCPNfZegTm4A\nfGQe\r\n=FczW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFaK31G/BvO4EYQfSjT4h929T2vRZrHvkJT8j+TVtUGQAiBTMN0rTzpFGDJw/iLtRMeQRIZdawuAChmVbYldrP9hBQ=="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.2.0-alpha.1_1583869018907_0.3433886957943082"},"_hasShrinkwrap":false},"2.2.0":{"name":"react-native-background-timer","version":"2.2.0","description":"Emit event periodically (even when app is in the background)","keywords":["react-native","background","timer","android","ios"],"main":"index.js","scripts":{"eslint":"eslint *.js","eslint:fix":"yarn eslint --fix","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"devDependencies":{"@babel/core":"^7.8.6","eslint":"^6.8.0","eslint-config-airbnb":"^18.0.1","eslint-config-prettier":"^6.10.0","eslint-plugin-import":"^2.20.1","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-prettier":"^3.1.2","eslint-plugin-react":"^7.18.3","eslint-plugin-react-hooks":"^1.7.0","husky":"^4.2.3","lint-staged":"^10.0.8","prettier":"^1.19.1","react":"16.8.6","react-native":"^0.60.6"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"gitHead":"482a95cd9bb98fb6b50cde5472fc2debc7abcbdf","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.2.0","_nodeVersion":"10.16.2","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Y7N6diSFko/FCJPMmB0PoBlmY1kEcma7qDVwn8t7zi12GLqpe/Vwls97onkSD8/QL+BR33BygUHOrLTPwgeKfg==","shasum":"ff82d30899209b924983cc00e6ce174b8de5054a","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.2.0.tgz","fileCount":17,"unpackedSize":31536,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZ+/vCRA9TVsSAnZWagAASkAP/0t1rOIbIMMjniP4uVVu\nimH4aonSYSUlfghkDiFVHrUwtT3Y9whaDaaEWn5hDioJoQuSFdrBnQv4hg+M\ns+9YRe9Q4+q0bPH9vVNkdvM/yh7an+TADIEcaOmqYtw4iS4grSdHctgCbYe9\nr2couxlbgD4EojsSeDLg0SUrCNbVeHSEzLlIn0CKjbMrCx6VRveUGYoM56fF\nTQyN9eQqY3EeAatZKYlP9RRjOoDOPZ8Vwbc+CVGiSTfiVkmCQ/e2U19HeE65\nDTNvjSPzG46leiuv6HmIRdiX2AJitiVdaRA5NNn2GXIUQQt20y787F8m75/I\n27cd1cH/fhlZRc+snpe43se6APfkXEzuEnK5/m+F4yVQsGzSCZcDlOE5SxEF\n/w0ylD6O1kgJx6mqvYMjMc4fyq8jeJwC/TomoBrmkyDsNHaZKyapV1uC9kkm\ni9Zcz/KnoxWTOyo+oixmCtgWT5pZDrXMCS9NyQvzXNk8+3ASyW7bGdcThtcX\n5fbXlOae3cwLXCsBjmnT/zEneuQxUCwOqvs9aoYpet5yC79+AEsv4CQMI/+q\nUsCmO/6qtRJm0meXYxfeUcbVS+p3+09iKzrWcQeHBXRy2oeWgfaekw1w0o0w\nACY17hgLtHlN5VrTghkRxVDmRKPsUsH2iGtkOsl4FcTVVsVpnn4OSpF1e073\nB0dT\r\n=v2Xp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICFC+EDAtY9cBQvsFPS7BDxSFEFW7krmKmIgq1qxd9XnAiB9mjs+j5PE3m89kqQlEN7eI2HtOBBMzNPGtznAo9mHTg=="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.2.0_1583869935376_0.7183422820699057"},"_hasShrinkwrap":false},"2.3.1":{"name":"react-native-background-timer","version":"2.3.1","description":"Emit event periodically (even when app is in the background)","keywords":["react-native","background","timer","android","ios"],"main":"index.js","scripts":{"eslint":"eslint *.js","eslint:fix":"yarn eslint --fix","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"devDependencies":{"@babel/core":"^7.10.4","eslint":"^6.8.0","eslint-config-airbnb":"^18.1.0","eslint-config-prettier":"^6.11.0","eslint-plugin-import":"^2.22.0","eslint-plugin-jsx-a11y":"^6.3.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react":"^7.20.3","eslint-plugin-react-hooks":"^2.5.1","husky":"^4.2.5","lint-staged":"^10.2.11","prettier":"^2.0.5","react":"16.8.6","react-native":"^0.60.6"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"gitHead":"aef890a6f646b4d49991dc1a3743dc3fb5ae8310","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.3.1","_nodeVersion":"10.16.2","_npmVersion":"6.9.0","dist":{"integrity":"sha512-cqsXqNOZYtFYrzdwXdfFciJOXjQwr1DpCb2Oy4Z3+FGETRRl+wH3uf8YuqnYUHFnKulHJ0BwYKTvkmmbY0eTxQ==","shasum":"83044a4572c62f5b99e929057b7bda5596b033ae","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.3.1.tgz","fileCount":17,"unpackedSize":31555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfErSWCRA9TVsSAnZWagAANj0P/RzfGNsAIhqy3eHwXj3w\njczuRRK2Kv4pnbvcP0bCo1vfX7rsfo+T0ZB683jIeChmcgFTtQYpIHs9Lpgt\n/+aWOjQrn3P5MHlBvgwTPqYXEs53S9VuIizDQcXtiwzV/yzVuzyJfeMItJWY\nRNT/Ltj5yFvlZCJCvAYQDIuRUscrmdjS6RZWjqtFdtXk8FevlmYa06kqNFlZ\nLWcSP+pP/cYNhqS+kCBwje+lvksmWDX/Rsgh3BPbsA9WR+AZu4D865nSkLHi\nDS58N2mhf/GJUPGdhXddThtG9lF0ERYqqOrSb2eAQNteFBOwVdKbACr92UL/\n17JBRd1I6nb0MQlWwnH6O7kixRJHIfvPnvqRPhq4pMfGaVhJPaRcFsJ98JN8\nN+l6xm8fssoBbMsT8VGc30WSRyxs56dqJGHhmMK88rHf0BPo/wuzrQFGzitn\n2e3EAYeMPmb440d9RRKPwLXU6Mz5FJqXIq5Hbb4MnQYRFg+1zp1aLBbRsrnF\ntt/jxTg5h8Ln9VeDq1QyT0QASsN17Yh4/Or9Pt5lBqXzEelczjDYwR/fe82k\nZfSW3r6qw6sxwfEEpsj60ujXKZSKFHKS8S6j2hRXP3Roz5yTlMa602CpZenE\nUf5FN07Q+rkvB+acBPvrxQmKgCxTZDWH7tjTGVimZ/15J0QPS5oNgFMzQd7P\n06ic\r\n=MFDh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa5Axp1OypAhct4+TeV4I+DPBNmBQkcpioZu1/p3rCpAIgYquRP6efDvG7LS4E1TxDDFMQBn57TS9EH7rXQkbgev8="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.3.1_1595061397683_0.9325548272950257"},"_hasShrinkwrap":false},"2.4.0":{"name":"react-native-background-timer","version":"2.4.0","description":"Emit event periodically (even when app is in the background)","keywords":["react-native","background","timer","android","ios"],"main":"index.js","scripts":{"eslint":"eslint *.js","eslint:fix":"yarn eslint --fix","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"devDependencies":{"@babel/core":"^7.11.5","eslint":"^6.8.0","eslint-config-airbnb":"^18.2.0","eslint-config-prettier":"^6.11.0","eslint-plugin-import":"^2.22.0","eslint-plugin-jsx-a11y":"^6.3.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react":"^7.20.6","eslint-plugin-react-hooks":"^4.1.0","husky":"^4.2.5","lint-staged":"^10.2.13","prettier":"^2.1.1","react":"16.13.1","react-native":"^0.63.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"gitHead":"8c707ad995f95e21b4db84559a2a232ee3347c8c","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.4.0","_nodeVersion":"10.16.2","_npmVersion":"6.9.0","dist":{"integrity":"sha512-00DphusbzXUuJDP+SSRe7FJczFWzrCErr+2TdRxYfbQjpDaRk3rXw8nhlQXI5U6KthquEQOrCRMq2F2hi/HKLg==","shasum":"b659fdc8ce8ddbed04fbb296e2ec9f4ad8e1659f","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.4.0.tgz","fileCount":17,"unpackedSize":31796,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTkFyCRA9TVsSAnZWagAALCgP/2B1zH3v8C942Lxw9q4Y\nTrQ1aZe2fy8b85efdV/YDxVAU8tK+mEIH8qgSxp2E4w5rNohGiOJMpPPUxdK\nqujOcR2OdkujWGjb/yxWg89hUTMrJI/YqXSi2Qr9n5E5gwsJ7N260FpzPEgA\no8lr5Rj3Ak7FJstrvI/pmNeWFhnHv7h6tVil82HA91Rp4lZQq7sL3ySAAY5Z\nPKAlFiFQVlznxfxfbNKEeaTcV0TVeiMiBykysZvKZv33jVz2QC/mVOOyPqI8\ngZ2pOC0S7AMQL8zFEgk3+xCWISIp+hemdXhKt2gWxNdmFqaEekMiTf28d0J4\nLTNWt8AD6mpZ2qCK6cAxbMbom9IcnxKsQmdwbsvhUMsfzOLhSHlhy5s3Xtp/\nAanUqHqSb2HHVhPx2oTnusccqzLVuSZKbSPbpcMBhQg2ZUWPVVUtyJ66T7wC\nW9yAmTlcvA47esljTep2g2NXN9voKo7KXkI3JrjrzMl3Hx076it6Fpc0rtJ4\nFiZfUgutFNf78Ke+u2Ai5ZOz8cjWkUHZH99pYc1vNol5bX6V+2tcUz9RW24J\n09SH7cMHh9Xna4Zf1gTJMC3S4lVx1T+ONh16+Twi5Sv84fp/cmRxT+nUkhbu\nnID4qSV1Wgfijnz3Cj4DGuOJBKgzVwbeGGsDxA/2ZHfAD4WIADbrOqfs61q2\n0BQG\r\n=A0CO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH3XFg1JUljud81fV0W/Uub+zWTfAvAMXom6s1rtl31NAiEArYAguq4N7OBb9VYhKOLbEDp6Lt5rCiYEoW9rZNjd+4w="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.4.0_1598964081512_0.06317587255367396"},"_hasShrinkwrap":false},"2.4.1":{"name":"react-native-background-timer","version":"2.4.1","description":"Emit event periodically (even when app is in the background)","keywords":["react-native","background","timer","android","ios"],"main":"index.js","scripts":{"eslint":"eslint *.js","eslint:fix":"yarn eslint --fix","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"license":"MIT","peerDependencies":{"react-native":">=0.47.0"},"devDependencies":{"@babel/core":"^7.11.6","eslint":"^7.10.0","eslint-config-airbnb":"^18.2.0","eslint-config-prettier":"^6.12.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jsx-a11y":"^6.3.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react":"^7.21.2","eslint-plugin-react-hooks":"^4.1.2","husky":"^4.3.0","lint-staged":"^10.4.0","prettier":"^2.1.2","react":"16.13.1","react-native":"^0.63.3"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint --fix","git add"]},"gitHead":"244ea3e554a6c480f22c818831ea0dd7c0587708","bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","_id":"react-native-background-timer@2.4.1","_nodeVersion":"10.16.2","_npmVersion":"6.9.0","dist":{"integrity":"sha512-TE4Kiy7jUyv+hugxDxitzu38sW1NqjCk4uE5IgU2WevLv7sZacaBc6PZKOShNRPGirLl1NWkaG3LDEkdb9Um5g==","shasum":"a3bc1cafa8c1e3aeefd0611de120298b67978a0f","tarball":"https://registry.npmjs.org/react-native-background-timer/-/react-native-background-timer-2.4.1.tgz","fileCount":17,"unpackedSize":31801,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdfnBCRA9TVsSAnZWagAAG5IP/Rw/T/E5iE+jup5cmojD\nEHJgLXn+wsqPw50HRcvmAqO5OyVPdLC9vORceCFe8VajgOTZPBLVYgZLZV3x\nOulYkNVuapp34NMbSqdX+5AVMRfwLQJiDyZCsy4/FnC1MvVx7r58rVEYdmZg\nbZcianxqtdr0ra/CXs0J2WOZKi4hnq0R6qcAIzUugxNX5HyVOa6WQ8R3I5Sn\nuNXw6c2ra6ZYwN8m169ugIUEwn+4TCwpkiiohlpToURZCXXE8pOYmccKBCnf\nIQHUuScqlnmpCZYj48A6XbY2JOl+vdDHi53ODak3hVht5CA8doQL2/K2ZuaU\nPKDJve0r5VT9PViDUJNtPcOW87krL8D9DsfHYgI+u3R32HwTcCXTZueoJcf2\n4yHJTDZwBBL65zQKtwTWBcQzKxeFiUFDXQmWUYZqb0X21biap40tg+QmrxAC\nF11Oab0UPmEHZDC8moTwv/r5Bf43waxStpVe0Y8FY7Gri+J+UH3zr7EDbvkk\neY9KokvMmPBdjoZ0ZGDD8EgK34PQdEwlgxY7wCWpyFMEzn9n9INc6QaI79Td\n+JhyL78kOfGlFLP+TcpU1WiPw34MKyUCe3JhEmShVVJ5eL1DmsLBFfzG9VNB\n5wOpHlionmd7JhwaeI4Rnp02daw2DCGo7tJvwCPdfEHuevgC+YyVYWwO15FJ\n4jMh\r\n=P7sP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9XUJMuZA9ik+4OCvt2Loq/WEvL93CLP5zm1cVeq1f7wIgS90egviFyrtSxatqV9UoiaMP25j3SEyWM6UvAaK4T7w="}]},"maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"_npmUser":{"name":"ocetnik","email":"ocetnik.david@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-background-timer_2.4.1_1601567169192_0.7938325864032136"},"_hasShrinkwrap":false}},"readme":"# React Native Background Timer\nEmit event periodically (even when app is in the background).\n\n## Installation\n1. If you use Expo to create a project [you'll just need to](https://facebook.github.io/react-native/docs/getting-started#caveats) \"[eject](https://docs.expo.io/versions/latest/expokit/eject)\".\n\n    ```bash\n    expo eject\n    ```\n\n2. Install React Native Background Timer package.\n\n    ```bash\n    yarn add react-native-background-timer\n    # or using npm\n    npm install react-native-background-timer --save\n    ```\n\n3. Link React Native Background Timer library. This step is not necessary when you use React Native >= 0.60 (and your app is not ejected from Expo).\n\n    ```bash\n    react-native link react-native-background-timer\n    ```\n\n4. If you use CocoaPods or React Native >= 0.60 (and your app is not ejected from Expo) or your app is ejected from Expo, then before running your app on iOS, make sure you have CocoaPods installed and run:\n\n    ```bash\n    cd ios\n    pod install\n    ```\n\nLink the library manually if you get errors:\n\n- Android: `TypeError: Cannot read property 'setTimeout' of undefined` or `TypeError: null is not an object (evaluating 'RNBackgroundTimer.setTimeout')`\n- iOS: `Native module cannot be null`\n\n<details>\n    <summary>Android manual linking</summary>\n\n- `android/settings.gradle`\n\n    ```diff\n    + include ':react-native-background-timer'\n    + project(':react-native-background-timer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-background-timer/android')\n    ```\n\n- `android/app/build.gradle`\n\n    ```diff\n    dependencies {\n    +   implementation project(':react-native-background-timer')\n    }\n    ```\n\n- `android/app/src/main/java/com/your-app/MainApplication.java`\n\n    ```diff\n    + import com.ocetnik.timer.BackgroundTimerPackage;\n\n    @Override\n    protected List<ReactPackage> getPackages() {\n      return Arrays.<ReactPackage>asList(\n    +   new BackgroundTimerPackage()\n      );\n    }\n    ```\n</details>\n\n<details>\n  <summary>iOS manual linking</summary>\n\n- `ios/Podfile`\n\n    ```diff\n    + pod 'react-native-background-timer', :path => '../node_modules/react-native-background-timer'\n    ```\n</details>\n\n## Usage\n\n```js\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n### Crossplatform\nTo use the same code both on Android and iOS use runBackgroundTimer() and stopBackgroundTimer(). There can be used only one background timer to keep code consistent.\n\n```js\nBackgroundTimer.runBackgroundTimer(() => { \n//code that will be called every 3 seconds \n}, \n3000);\n//rest of code will be performing for iOS on background too\n\nBackgroundTimer.stopBackgroundTimer(); //after this call all code on background stop run.\n```\n\n### iOS\nAfter iOS update logic of background task little bit changed. So we can't use as it was. \nYou have to use only start() and stop() without parameters. And all code that is performing will continue performing on background including all setTimeout() timers.\n\nExample:\n```js\nBackgroundTimer.start();\n// Do whatever you want incuding setTimeout;\nBackgroundTimer.stop();\n```\n\n> If you call stop() on background no new tasks will be started!\n> Don't call .start() twice, as it stop performing previous background task and starts new. \n> If it will be called on backgound no tasks will run.\n\n### Android\nYou can use the `setInterval` and `setTimeout` functions.\nThis API is identical to that of `react-native` and can be used to quickly replace existing timers\nwith background timers.\n\n```js\n// Start a timer that runs continuous after X milliseconds\nconst intervalId = BackgroundTimer.setInterval(() => {\n\t// this will be executed every 200 ms\n\t// even when app is the the background\n\tconsole.log('tic');\n}, 200);\n\n// Cancel the timer when you are done with it\nBackgroundTimer.clearInterval(intervalId);\n```\n\n```js\n// Start a timer that runs once after X milliseconds\nconst timeoutId = BackgroundTimer.setTimeout(() => {\n\t// this will be executed once after 10 seconds\n\t// even when app is the the background\n  \tconsole.log('tac');\n}, 10000);\n\n// Cancel the timeout if necessary\nBackgroundTimer.clearTimeout(timeoutId);\n```\n\n### Obsolete\nObsolete usage which doesn't support multiple background timers.\n\n```js\nimport {\n  DeviceEventEmitter,\n  NativeAppEventEmitter,\n  Platform,\n} from 'react-native';\n\nimport BackgroundTimer from 'react-native-background-timer';\n```\n\n```js\nconst EventEmitter = Platform.select({\n  ios: () => NativeAppEventEmitter,\n  android: () => DeviceEventEmitter,\n})();\n```\n\n```js\n// start a global timer\nBackgroundTimer.start(5000); // delay in milliseconds only for Android\n```\n```js\n// listen for event\nEventEmitter.addListener('backgroundTimer', () => {\n\t// this will be executed once after 5 seconds\n\tconsole.log('toe');\n});\n```\n```js\n// stop the timer\nBackgroundTimer.stop();\n```\n","maintainers":[{"name":"ocetnik","email":"ocetnik.david@gmail.com"}],"time":{"modified":"2022-06-26T03:34:47.689Z","created":"2016-05-11T07:13:39.175Z","0.1.0":"2016-05-11T07:13:39.175Z","0.1.1":"2016-05-12T16:22:40.282Z","0.1.2":"2016-07-01T17:06:29.883Z","0.1.3":"2016-09-06T21:36:42.901Z","0.1.4-beta":"2016-12-10T17:59:51.638Z","0.1.4":"2017-01-21T17:47:36.426Z","1.0.0":"2017-01-21T20:23:59.706Z","1.0.1":"2017-05-03T20:13:08.983Z","1.0.2":"2017-05-20T08:14:39.205Z","1.0.3":"2017-06-13T20:14:54.086Z","1.0.4":"2017-07-13T06:51:48.527Z","1.1.0":"2017-07-15T16:52:39.560Z","1.2.0":"2017-08-05T06:59:18.801Z","1.3.0":"2017-10-02T18:43:14.323Z","2.0.0":"2017-11-15T19:31:47.212Z","2.0.1":"2018-03-01T10:15:40.557Z","2.1.0-alpha.0":"2018-08-19T10:09:17.906Z","2.1.0-alpha.1":"2018-08-19T17:11:09.280Z","2.1.0-alpha.2":"2018-08-19T19:04:58.544Z","2.1.0-alpha.3":"2018-08-19T19:20:51.429Z","2.1.0-alpha.4":"2018-08-19T21:18:15.663Z","2.1.0-alpha.5":"2018-08-20T19:06:09.721Z","2.1.0-alpha.6":"2018-08-27T17:18:52.762Z","2.1.0-alpha.7":"2018-11-01T07:20:37.951Z","2.1.0":"2018-11-14T17:35:16.750Z","2.1.1":"2018-11-18T19:33:21.658Z","2.2.0-alpha.0":"2019-06-03T19:02:24.342Z","2.2.0-alpha.1":"2020-03-10T19:36:59.060Z","2.2.0":"2020-03-10T19:52:15.523Z","2.3.1":"2020-07-18T08:36:37.810Z","2.4.0":"2020-09-01T12:41:21.625Z","2.4.1":"2020-10-01T15:46:09.335Z"},"homepage":"https://github.com/ocetnik/react-native-background-timer#readme","keywords":["react-native","background","timer","android","ios"],"repository":{"type":"git","url":"git+https://github.com/ocetnik/react-native-background-timer.git"},"author":{"name":"David Ocetnik"},"bugs":{"url":"https://github.com/ocetnik/react-native-background-timer/issues"},"license":"MIT","readmeFilename":"README.md","users":{"mispistachos":true,"dillonace":true}}