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 912fd0e commit 145690fCopy full SHA for 145690f
lib/utils/promisify.js
@@ -9,6 +9,6 @@ export default(fn, NativeModule) => (...args) => {
9
return new Promise((resolve, reject) => {
10
const _fn = typeof fn === 'function' ? fn : NativeModule[fn];
11
if (!_fn || typeof _fn !== 'function') return reject(new Error('Missing function for promisify.'));
12
- return _fn.apply(NativeModule, ...args, handler.bind(handler, resolve, reject));
+ return _fn.apply(NativeModule, [...args, handler.bind(handler, resolve, reject)]);
13
});
14
};
0 commit comments