diff --git a/lib/extensions.js b/lib/extensions.js index 3233ae4d..5ce2e759 100644 --- a/lib/extensions.js +++ b/lib/extensions.js @@ -71,13 +71,13 @@ module.exports = function(realmConstructor) { }, (error) => { if (error) { - setTimeout(() => { reject(error); }, 1); + reject(error); } else { try { let syncedRealm = new realmConstructor(config); //FIXME: RN hangs here. Remove when node's makeCallback alternative is implemented - setTimeout(() => { resolve(syncedRealm); }, 1); + resolve(syncedRealm); } catch (e) { reject(e); }