We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be9fce3 commit 2514445Copy full SHA for 2514445
lib/can-promise.js
@@ -0,0 +1,7 @@
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
4
+
5
+module.exports = function () {
6
+ return typeof Promise === 'function' && Promise.prototype && Promise.prototype.then
7
+}
0 commit comments