Last active
January 5, 2018 00:13
-
-
Save zaguiini/6d968fd6b68b6440f87de8d810733eab to your computer and use it in GitHub Desktop.
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
... | |
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