Add a fix for RN hang with promises

This commit is contained in:
blagoev 2017-05-12 00:04:19 +03:00
parent 4aecf90176
commit 4b67d883b6
1 changed files with 1 additions and 2 deletions

View File

@ -50,7 +50,7 @@ module.exports = function(realmConstructor) {
}
let syncedRealm = new realmConstructor(config);
resolve(syncedRealm);
setTimeout(_ => { resolve(syncedRealm); }, 1); //FIXME: RN hangs here. Remove when node's makeCallback alternative is implemented
});
});
},
@ -64,7 +64,6 @@ module.exports = function(realmConstructor) {
let syncedRealm = new realmConstructor(config);
callback(null, syncedRealm);
});
},
}));