Created
July 20, 2017 10:11
-
-
Save arslnb/b4bedbcd597e13be315129e0f7f7d6ba to your computer and use it in GitHub Desktop.
OpenAsync issue code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Realm.Sync.User.login('http://<SERVER-IP>:9080', <USERNAME>, <PASSWORD>, (error, user) => { | |
if(!error){ | |
Realm.openAsync({ | |
schema: [SomeSchema], | |
sync: { | |
user: user, | |
url: 'realm://<SERVER-IP>:9080/data' | |
}}, (error, realm) => { | |
if (error) { | |
} | |
console.log(realm); | |
}); | |
} else { | |
console.error(error); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment