Skip to content

Commit 790495e

Browse files
Fix blob module in paper (#14716) (#14739)
* Fix blob module in paper * Change files Co-authored-by: Andrew Coates <[email protected]>
1 parent 6975f8a commit 790495e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Fix blob module in paper",
4+
"packageName": "react-native-windows",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

vnext/Microsoft.ReactNative/IReactModuleBuilder.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include "pch.h"
55
#include "IReactModuleBuilder.h"
6+
#include <IReactContext.h>
67
#include <strsafe.h>
78
#include "DynamicWriter.h"
89
#include "ReactHost/MsoUtils.h"
@@ -159,6 +160,13 @@ std::unique_ptr<CxxModule> ReactModuleBuilder::MakeCxxModule(
159160
for (auto &initializer : m_initializers) {
160161
initializer(m_reactContext);
161162
}
163+
for (auto &initializer : m_jsiinitializers) {
164+
initializer(
165+
m_reactContext,
166+
winrt::get_self<winrt::Microsoft::ReactNative::implementation::ReactContext>(m_reactContext)
167+
->GetInner()
168+
.JsiRuntime());
169+
}
162170
return std::make_unique<ABICxxModule>(
163171
nativeModule, Mso::Copy(name), Mso::Copy(m_constantProviders), Mso::Copy(m_methods));
164172
}

0 commit comments

Comments
 (0)