Don’t execute callback in Realm.open either

This commit is contained in:
Nikola Irinchev 2017-07-18 11:28:33 +03:00
parent 081c3e5224
commit bbe62c361b
No known key found for this signature in database
GPG Key ID: 8A8A59EF2C23B465
1 changed files with 8 additions and 7 deletions

View File

@ -48,7 +48,7 @@ module.exports = function(realmConstructor) {
if (error) { if (error) {
reject(error); reject(error);
} }
else {
try { try {
let syncedRealm = new this(config); let syncedRealm = new this(config);
//FIXME: RN hangs here. Remove when node's makeCallback alternative is implemented //FIXME: RN hangs here. Remove when node's makeCallback alternative is implemented
@ -56,6 +56,7 @@ module.exports = function(realmConstructor) {
} catch (e) { } catch (e) {
reject(e); reject(e);
} }
}
}); });
}); });
}, },