Permalink
Browse files

Provide default implementation of getConstants

Reviewed By: kathryngray

Differential Revision: D5453963

fbshipit-source-id: cf3d42a86c3262991697e9c1a23ab90b7f742afe
  • Loading branch information...
javache authored and facebook-github-bot committed Aug 1, 2017
1 parent 114b080 commit c1c791fb5921fe3806769c5b1400dca497b6428b
Showing with 1 addition and 1 deletion.
  1. +1 −1 ReactCommon/cxxreact/CxxModule.h
@@ -165,7 +165,7 @@ class CxxModule {
* Each entry in the map will be exported as a property to JS. The
* key is the property name, and the value can be anything.
*/
virtual auto getConstants() -> std::map<std::string, folly::dynamic> = 0;
virtual auto getConstants() -> std::map<std::string, folly::dynamic> { return {}; };
/**
* @return a list of methods this module exports to JS.

0 comments on commit c1c791f

Please sign in to comment.