Last active
November 5, 2018 15:57
-
-
Save Kudo/38d998e1a7b92897fc8300beaefdd9be to your computer and use it in GitHub Desktop.
CxxModule exports method foo() that accepts a callback with a "foo"
This file contains 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
auto HelloCxxModule::getMethods() -> std::vector<Method> { | |
return { | |
Method("foo", [](folly::dynamic args, Callback cb) { cb({"foo"}); }), | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment