diff --git a/ReactCommon/cxxreact/ModuleRegistry.cpp b/ReactCommon/cxxreact/ModuleRegistry.cpp index ecc88c2ef5d540..5a0221b02f9f87 100644 --- a/ReactCommon/cxxreact/ModuleRegistry.cpp +++ b/ReactCommon/cxxreact/ModuleRegistry.cpp @@ -189,7 +189,7 @@ folly::Optional ModuleRegistry::getConfig( // no constants or methods return folly::none; } else { - return ModuleConfig{index, config}; + return ModuleConfig{index, std::move(config)}; } }