Skip to content

Commit

Permalink
Make native modules to use JS queue (microsoft#6284)
Browse files Browse the repository at this point in the history
* Make native modules to use JS queue

* Change files
  • Loading branch information
vmoroz authored and jackerghan committed Feb 5, 2021
1 parent 96645b3 commit c395a02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "prerelease",
"comment": "Make native modules to use JS queue",
"packageName": "react-native-windows",
"email": "vmorozov@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-10-20T16:59:36.270Z"
}
2 changes: 1 addition & 1 deletion vnext/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ void ReactInstanceWin::Initialize() noexcept {

if (m_options.ModuleProvider != nullptr) {
std::vector<facebook::react::NativeModuleDescription> customCxxModules =
m_options.ModuleProvider->GetModules(m_reactContext, m_batchingUIThread);
m_options.ModuleProvider->GetModules(m_reactContext, m_jsMessageThread.Load());
cxxModules.insert(std::end(cxxModules), std::begin(customCxxModules), std::end(customCxxModules));
}

Expand Down

0 comments on commit c395a02

Please sign in to comment.