1 // can-promise has a crash in some versions of react native that dont have
2 // standard global objects
3 // https://github.com/soldair/node-qrcode/issues/157
5 module.exports = function () {
6 return typeof Promise === 'function' && Promise.prototype && Promise.prototype.then