Created
March 9, 2016 01:42
-
-
Save spencercarli/389b5b181fbcfb61c517 to your computer and use it in GitHub Desktop.
Connecting the Meteor and React Native Apps - ddp.js
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
// RNApp/app/ddp.js | |
ddpClient.loginWithGoogle = (user, cb) => { | |
let params = { google: user }; | |
return ddpClient.call("login", [params], (err, res) => { | |
ddpClient.onAuthResponse(err, res); | |
cb && cb(err, res) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment