Skip to content

Instantly share code, notes, and snippets.

@zaguiini
Last active January 5, 2018 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zaguiini/6d968fd6b68b6440f87de8d810733eab to your computer and use it in GitHub Desktop.
Save zaguiini/6d968fd6b68b6440f87de8d810733eab to your computer and use it in GitHub Desktop.
...
is(type, { nativeEvent, body }) {
return body === type || (nativeEvent && nativeEvent.data === type)
}
handleMessage(args) {
if(this.is('facebookLogin', args)) {
console.log('calling native facebook login')
}
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment