react-native-windows 0.0.0-canary.641 → 0.0.0-canary.642
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54,8 +54,11 @@ UIManagerSettingsProperty() noexcept {
|
|
|
54
54
|
|
|
55
55
|
UIManagerSettings::UIManagerSettings(
|
|
56
56
|
const std::shared_ptr<facebook::react::MessageQueueThread> batchingUIMessageQueue,
|
|
57
|
+
const std::shared_ptr<facebook::react::MessageQueueThread> uiMessageQueue,
|
|
57
58
|
std::vector<std::unique_ptr<IViewManager>> &&viewManagers)
|
|
58
|
-
: batchingUIMessageQueue(std::move(batchingUIMessageQueue)),
|
|
59
|
+
: batchingUIMessageQueue(std::move(batchingUIMessageQueue)),
|
|
60
|
+
uiMessageQueue(std::move(uiMessageQueue)),
|
|
61
|
+
viewManagers(std::move(viewManagers)) {}
|
|
59
62
|
|
|
60
63
|
void UIManager::SetSettings(
|
|
61
64
|
winrt::Microsoft::ReactNative::IReactPropertyBag const &properties,
|
|
@@ -534,6 +537,7 @@ void UIManager::Initialize(winrt::Microsoft::ReactNative::ReactContext const &re
|
|
|
534
537
|
|
|
535
538
|
auto settings = m_context.Properties().Get(UIManagerSettingsProperty());
|
|
536
539
|
m_batchingUIMessageQueue = std::move((*settings)->batchingUIMessageQueue);
|
|
540
|
+
m_uiMessageQueue = std::move((*settings)->uiMessageQueue);
|
|
537
541
|
|
|
538
542
|
m_module->Initialize(reactContext);
|
|
539
543
|
}
|
|
@@ -568,11 +572,11 @@ void UIManager::createView(
|
|
|
568
572
|
std::string viewName,
|
|
569
573
|
double rootTag,
|
|
570
574
|
React::JSValueObject &&props) noexcept {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
575
|
+
m_uiMessageQueue->runOnQueue(Mso::VoidFunctor([m = std::weak_ptr<UIManagerModule>(m_module),
|
|
576
|
+
reactTag,
|
|
577
|
+
viewName = std::move(viewName),
|
|
578
|
+
rootTag,
|
|
579
|
+
props = std::move(props)]() mutable {
|
|
576
580
|
SystraceSection s("UIManager::createView");
|
|
577
581
|
if (auto module = m.lock()) {
|
|
578
582
|
module->createView(static_cast<int64_t>(reactTag), viewName, static_cast<int64_t>(rootTag), std::move(props));
|
|
@@ -22,9 +22,11 @@ class NativeUIManager;
|
|
|
22
22
|
struct UIManagerSettings {
|
|
23
23
|
UIManagerSettings(
|
|
24
24
|
const std::shared_ptr<facebook::react::MessageQueueThread> batchingUIMessageQueue,
|
|
25
|
+
const std::shared_ptr<facebook::react::MessageQueueThread> uiMessageQueue,
|
|
25
26
|
std::vector<std::unique_ptr<IViewManager>> &&viewManagers);
|
|
26
27
|
UIManagerSettings(UIManagerSettings const &) = delete;
|
|
27
28
|
const std::shared_ptr<facebook::react::MessageQueueThread> batchingUIMessageQueue;
|
|
29
|
+
const std::shared_ptr<facebook::react::MessageQueueThread> uiMessageQueue;
|
|
28
30
|
std::vector<std::unique_ptr<IViewManager>> viewManagers;
|
|
29
31
|
};
|
|
30
32
|
|
|
@@ -175,6 +177,7 @@ struct UIManager final {
|
|
|
175
177
|
|
|
176
178
|
private:
|
|
177
179
|
std::shared_ptr<facebook::react::MessageQueueThread> m_batchingUIMessageQueue;
|
|
180
|
+
std::shared_ptr<facebook::react::MessageQueueThread> m_uiMessageQueue;
|
|
178
181
|
std::shared_ptr<UIManagerModule> m_module;
|
|
179
182
|
winrt::Microsoft::ReactNative::ReactContext m_context;
|
|
180
183
|
};
|
|
@@ -794,8 +794,8 @@ void ReactInstanceWin::InitUIManager() noexcept {
|
|
|
794
794
|
|
|
795
795
|
Microsoft::ReactNative::AddStandardViewManagers(viewManagers, *m_reactContext);
|
|
796
796
|
|
|
797
|
-
auto uiManagerSettings =
|
|
798
|
-
|
|
797
|
+
auto uiManagerSettings = std::make_unique<Microsoft::ReactNative::UIManagerSettings>(
|
|
798
|
+
m_batchingUIThread, m_uiMessageThread.Load(), std::move(viewManagers));
|
|
799
799
|
Microsoft::ReactNative::UIManager::SetSettings(m_reactContext->Properties(), std::move(uiManagerSettings));
|
|
800
800
|
|
|
801
801
|
m_reactContext->Properties().Set(
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.0.0-canary.
|
|
13
|
+
<ReactNativeWindowsVersion>0.0.0-canary.642</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>0</ReactNativeWindowsMinor>
|
|
16
16
|
<ReactNativeWindowsPatch>0</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>true</ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
18
|
+
<ReactNativeWindowsCommitId>71ca215e58db4f6b9b79be31b1320ab4c05714f1</ReactNativeWindowsCommitId>
|
|
19
19
|
</PropertyGroup>
|
|
20
20
|
</Project>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.0.0-canary.
|
|
3
|
+
"version": "0.0.0-canary.642",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@react-native-community/cli": "12.0.0-alpha.0",
|
|
27
27
|
"@react-native-community/cli-platform-android": "12.0.0-alpha.0",
|
|
28
28
|
"@react-native-community/cli-platform-ios": "12.0.0-alpha.0",
|
|
29
|
-
"@react-native-windows/cli": "0.0.0-canary.
|
|
29
|
+
"@react-native-windows/cli": "0.0.0-canary.167",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
31
|
"@react-native/assets-registry": "^0.73.0",
|
|
32
32
|
"@react-native/codegen": "^0.73.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"yargs": "^17.6.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@react-native-windows/codegen": "0.0.0-canary.
|
|
65
|
+
"@react-native-windows/codegen": "0.0.0-canary.55",
|
|
66
66
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
67
67
|
"@rnw-scripts/eslint-config": "1.1.15",
|
|
68
68
|
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.1",
|