Don’t execute callback in Realm.open either
This commit is contained in:
parent
081c3e5224
commit
bbe62c361b
|
@ -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);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue