Add a fix for RN hang with promises
This commit is contained in:
parent
4aecf90176
commit
4b67d883b6
|
@ -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);
|
||||
});
|
||||
|
||||
},
|
||||
}));
|
||||
|
||||
|
|
Loading…
Reference in New Issue