react-native-windows 0.81.4 → 0.81.6
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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/NativeComponent/ViewConfigIgnore.windows.js +45 -0
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +38 -35
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +51 -22
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +54 -24
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +36 -33
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +5 -5
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +5 -5
- package/Libraries/Renderer/shims/ReactNativeTypes.js +23 -11
- package/Libraries/Renderer/shims/ReactNativeTypes.windows.js +23 -12
- package/Microsoft.ReactNative/ComponentView.idl +2 -0
- package/Microsoft.ReactNative/Composition.Input.idl +7 -0
- package/Microsoft.ReactNative/CompositionComponentView.idl +5 -0
- package/Microsoft.ReactNative/CompositionHwndHost.idl +1 -0
- package/Microsoft.ReactNative/Fabric/ComponentView.cpp +19 -1
- package/Microsoft.ReactNative/Fabric/ComponentView.h +10 -1
- package/Microsoft.ReactNative/Fabric/Composition/Composition.Input.cpp +12 -0
- package/Microsoft.ReactNative/Fabric/Composition/Composition.Input.h +15 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.cpp +75 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.h +1 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionHwndHost.cpp +10 -45
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +86 -98
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.h +4 -0
- package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.cpp +80 -48
- package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.h +11 -3
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +61 -74
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +4 -3
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.h +2 -1
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeWindow.cpp +245 -0
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeWindow.h +80 -0
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp +33 -1
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.h +17 -0
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +137 -84
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.h +7 -1
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.cpp +3 -1
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/WindowsTextLayoutManager.cpp +7 -2
- package/Microsoft.ReactNative/Modules/LogBoxModule.cpp +20 -95
- package/Microsoft.ReactNative/Modules/LogBoxModule.h +1 -1
- package/Microsoft.ReactNative/ReactNativeAppBuilder.cpp +0 -41
- package/Microsoft.ReactNative/ReactNativeAppBuilder.idl +0 -11
- package/Microsoft.ReactNative/ReactNativeIsland.idl +2 -3
- package/Microsoft.ReactNative/ReactNativeWin32App.cpp +31 -101
- package/Microsoft.ReactNative/ReactNativeWin32App.h +2 -13
- package/Microsoft.ReactNative/ReactNativeWindow.idl +44 -0
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/Shared/Shared.vcxitems +7 -0
- package/Shared/Shared.vcxitems.filters +6 -0
- package/codegen/react/components/rnwcore/ActivityIndicatorView.g.h +2 -1
- package/codegen/react/components/rnwcore/AndroidDrawerLayout.g.h +26 -9
- package/codegen/react/components/rnwcore/AndroidHorizontalScrollContentView.g.h +2 -1
- package/codegen/react/components/rnwcore/AndroidProgressBar.g.h +2 -1
- package/codegen/react/components/rnwcore/AndroidSwipeRefreshLayout.g.h +8 -3
- package/codegen/react/components/rnwcore/AndroidSwitch.g.h +8 -3
- package/codegen/react/components/rnwcore/DebuggingOverlay.g.h +1 -0
- package/codegen/react/components/rnwcore/InputAccessory.g.h +2 -1
- package/codegen/react/components/rnwcore/ModalHostView.g.h +26 -9
- package/codegen/react/components/rnwcore/PullToRefreshView.g.h +8 -3
- package/codegen/react/components/rnwcore/SafeAreaView.g.h +1 -0
- package/codegen/react/components/rnwcore/Switch.g.h +8 -3
- package/codegen/react/components/rnwcore/UnimplementedNativeView.g.h +2 -1
- package/codegen/react/components/rnwcore/VirtualView.g.h +8 -3
- package/package.json +21 -21
|
@@ -30,7 +30,11 @@ struct AndroidDrawerLayoutProps : winrt::implements<AndroidDrawerLayoutProps, wi
|
|
|
30
30
|
drawerPosition = cloneFromProps->drawerPosition;
|
|
31
31
|
drawerWidth = cloneFromProps->drawerWidth;
|
|
32
32
|
drawerLockMode = cloneFromProps->drawerLockMode;
|
|
33
|
-
statusBarBackgroundColor = cloneFromProps->statusBarBackgroundColor;
|
|
33
|
+
statusBarBackgroundColor = cloneFromProps->statusBarBackgroundColor;
|
|
34
|
+
onDrawerSlide = cloneFromProps->onDrawerSlide;
|
|
35
|
+
onDrawerStateChanged = cloneFromProps->onDrawerStateChanged;
|
|
36
|
+
onDrawerOpen = cloneFromProps->onDrawerOpen;
|
|
37
|
+
onDrawerClose = cloneFromProps->onDrawerClose;
|
|
34
38
|
}
|
|
35
39
|
}
|
|
36
40
|
|
|
@@ -56,6 +60,19 @@ struct AndroidDrawerLayoutProps : winrt::implements<AndroidDrawerLayoutProps, wi
|
|
|
56
60
|
REACT_FIELD(statusBarBackgroundColor)
|
|
57
61
|
winrt::Microsoft::ReactNative::Color statusBarBackgroundColor{nullptr};
|
|
58
62
|
|
|
63
|
+
// These fields can be used to determine if JS has registered for this event
|
|
64
|
+
REACT_FIELD(onDrawerSlide)
|
|
65
|
+
bool onDrawerSlide{false};
|
|
66
|
+
|
|
67
|
+
REACT_FIELD(onDrawerStateChanged)
|
|
68
|
+
bool onDrawerStateChanged{false};
|
|
69
|
+
|
|
70
|
+
REACT_FIELD(onDrawerOpen)
|
|
71
|
+
bool onDrawerOpen{false};
|
|
72
|
+
|
|
73
|
+
REACT_FIELD(onDrawerClose)
|
|
74
|
+
bool onDrawerClose{false};
|
|
75
|
+
|
|
59
76
|
const winrt::Microsoft::ReactNative::ViewProps ViewProps;
|
|
60
77
|
};
|
|
61
78
|
|
|
@@ -88,26 +105,26 @@ struct AndroidDrawerLayoutEventEmitter {
|
|
|
88
105
|
using OnDrawerOpen = AndroidDrawerLayoutSpec_onDrawerOpen;
|
|
89
106
|
using OnDrawerClose = AndroidDrawerLayoutSpec_onDrawerClose;
|
|
90
107
|
|
|
91
|
-
void onDrawerSlide(OnDrawerSlide
|
|
92
|
-
m_eventEmitter.DispatchEvent(L"drawerSlide", [
|
|
108
|
+
void onDrawerSlide(OnDrawerSlide &&value) const {
|
|
109
|
+
m_eventEmitter.DispatchEvent(L"drawerSlide", [value = std::move(value)](const winrt::Microsoft::ReactNative::IJSValueWriter writer) {
|
|
93
110
|
winrt::Microsoft::ReactNative::WriteValue(writer, value);
|
|
94
111
|
});
|
|
95
112
|
}
|
|
96
113
|
|
|
97
|
-
void onDrawerStateChanged(OnDrawerStateChanged
|
|
98
|
-
m_eventEmitter.DispatchEvent(L"drawerStateChanged", [
|
|
114
|
+
void onDrawerStateChanged(OnDrawerStateChanged &&value) const {
|
|
115
|
+
m_eventEmitter.DispatchEvent(L"drawerStateChanged", [value = std::move(value)](const winrt::Microsoft::ReactNative::IJSValueWriter writer) {
|
|
99
116
|
winrt::Microsoft::ReactNative::WriteValue(writer, value);
|
|
100
117
|
});
|
|
101
118
|
}
|
|
102
119
|
|
|
103
|
-
void onDrawerOpen(OnDrawerOpen
|
|
104
|
-
m_eventEmitter.DispatchEvent(L"drawerOpen", [
|
|
120
|
+
void onDrawerOpen(OnDrawerOpen &&value) const {
|
|
121
|
+
m_eventEmitter.DispatchEvent(L"drawerOpen", [value = std::move(value)](const winrt::Microsoft::ReactNative::IJSValueWriter writer) {
|
|
105
122
|
winrt::Microsoft::ReactNative::WriteValue(writer, value);
|
|
106
123
|
});
|
|
107
124
|
}
|
|
108
125
|
|
|
109
|
-
void onDrawerClose(OnDrawerClose
|
|
110
|
-
m_eventEmitter.DispatchEvent(L"drawerClose", [
|
|
126
|
+
void onDrawerClose(OnDrawerClose &&value) const {
|
|
127
|
+
m_eventEmitter.DispatchEvent(L"drawerClose", [value = std::move(value)](const winrt::Microsoft::ReactNative::IJSValueWriter writer) {
|
|
111
128
|
winrt::Microsoft::ReactNative::WriteValue(writer, value);
|
|
112
129
|
});
|
|
113
130
|
}
|
|
@@ -25,7 +25,8 @@ struct AndroidHorizontalScrollContentViewProps : winrt::implements<AndroidHorizo
|
|
|
25
25
|
{
|
|
26
26
|
if (cloneFrom) {
|
|
27
27
|
auto cloneFromProps = cloneFrom.as<AndroidHorizontalScrollContentViewProps>();
|
|
28
|
-
removeClippedSubviews = cloneFromProps->removeClippedSubviews;
|
|
28
|
+
removeClippedSubviews = cloneFromProps->removeClippedSubviews;
|
|
29
|
+
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -31,7 +31,8 @@ struct AndroidProgressBarProps : winrt::implements<AndroidProgressBarProps, winr
|
|
|
31
31
|
progress = cloneFromProps->progress;
|
|
32
32
|
animating = cloneFromProps->animating;
|
|
33
33
|
color = cloneFromProps->color;
|
|
34
|
-
testID = cloneFromProps->testID;
|
|
34
|
+
testID = cloneFromProps->testID;
|
|
35
|
+
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
|
|
@@ -30,7 +30,8 @@ struct AndroidSwipeRefreshLayoutProps : winrt::implements<AndroidSwipeRefreshLay
|
|
|
30
30
|
progressBackgroundColor = cloneFromProps->progressBackgroundColor;
|
|
31
31
|
size = cloneFromProps->size;
|
|
32
32
|
progressViewOffset = cloneFromProps->progressViewOffset;
|
|
33
|
-
refreshing = cloneFromProps->refreshing;
|
|
33
|
+
refreshing = cloneFromProps->refreshing;
|
|
34
|
+
onRefresh = cloneFromProps->onRefresh;
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
|
|
@@ -56,6 +57,10 @@ struct AndroidSwipeRefreshLayoutProps : winrt::implements<AndroidSwipeRefreshLay
|
|
|
56
57
|
REACT_FIELD(refreshing)
|
|
57
58
|
bool refreshing{};
|
|
58
59
|
|
|
60
|
+
// These fields can be used to determine if JS has registered for this event
|
|
61
|
+
REACT_FIELD(onRefresh)
|
|
62
|
+
bool onRefresh{false};
|
|
63
|
+
|
|
59
64
|
const winrt::Microsoft::ReactNative::ViewProps ViewProps;
|
|
60
65
|
};
|
|
61
66
|
|
|
@@ -69,8 +74,8 @@ struct AndroidSwipeRefreshLayoutEventEmitter {
|
|
|
69
74
|
|
|
70
75
|
using OnRefresh = AndroidSwipeRefreshLayoutSpec_onRefresh;
|
|
71
76
|
|
|
72
|
-
void onRefresh(OnRefresh
|
|
73
|
-
m_eventEmitter.DispatchEvent(L"refresh", [
|
|
77
|
+
void onRefresh(OnRefresh &&value) const {
|
|
78
|
+
m_eventEmitter.DispatchEvent(L"refresh", [value = std::move(value)](const winrt::Microsoft::ReactNative::IJSValueWriter writer) {
|
|
74
79
|
winrt::Microsoft::ReactNative::WriteValue(writer, value);
|
|
75
80
|
});
|
|
76
81
|
}
|
|
@@ -33,7 +33,8 @@ struct AndroidSwitchProps : winrt::implements<AndroidSwitchProps, winrt::Microso
|
|
|
33
33
|
value = cloneFromProps->value;
|
|
34
34
|
on = cloneFromProps->on;
|
|
35
35
|
thumbTintColor = cloneFromProps->thumbTintColor;
|
|
36
|
-
trackTintColor = cloneFromProps->trackTintColor;
|
|
36
|
+
trackTintColor = cloneFromProps->trackTintColor;
|
|
37
|
+
onChange = cloneFromProps->onChange;
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
|
|
@@ -68,6 +69,10 @@ struct AndroidSwitchProps : winrt::implements<AndroidSwitchProps, winrt::Microso
|
|
|
68
69
|
REACT_FIELD(trackTintColor)
|
|
69
70
|
winrt::Microsoft::ReactNative::Color trackTintColor{nullptr};
|
|
70
71
|
|
|
72
|
+
// These fields can be used to determine if JS has registered for this event
|
|
73
|
+
REACT_FIELD(onChange)
|
|
74
|
+
bool onChange{false};
|
|
75
|
+
|
|
71
76
|
const winrt::Microsoft::ReactNative::ViewProps ViewProps;
|
|
72
77
|
};
|
|
73
78
|
|
|
@@ -86,8 +91,8 @@ struct AndroidSwitchEventEmitter {
|
|
|
86
91
|
|
|
87
92
|
using OnChange = AndroidSwitchSpec_onChange;
|
|
88
93
|
|
|
89
|
-
void onChange(OnChange
|
|
90
|
-
m_eventEmitter.DispatchEvent(L"change", [
|
|
94
|
+
void onChange(OnChange &&value) const {
|
|
95
|
+
m_eventEmitter.DispatchEvent(L"change", [value = std::move(value)](const winrt::Microsoft::ReactNative::IJSValueWriter writer) {
|
|
91
96
|
winrt::Microsoft::ReactNative::WriteValue(writer, value);
|
|
92
97
|
});
|
|
93
98
|
}
|
|
@@ -25,7 +25,8 @@ struct InputAccessoryProps : winrt::implements<InputAccessoryProps, winrt::Micro
|
|
|
25
25
|
{
|
|
26
26
|
if (cloneFrom) {
|
|
27
27
|
auto cloneFromProps = cloneFrom.as<InputAccessoryProps>();
|
|
28
|
-
backgroundColor = cloneFromProps->backgroundColor;
|
|
28
|
+
backgroundColor = cloneFromProps->backgroundColor;
|
|
29
|
+
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -36,7 +36,11 @@ struct ModalHostViewProps : winrt::implements<ModalHostViewProps, winrt::Microso
|
|
|
36
36
|
allowSwipeDismissal = cloneFromProps->allowSwipeDismissal;
|
|
37
37
|
supportedOrientations = cloneFromProps->supportedOrientations;
|
|
38
38
|
identifier = cloneFromProps->identifier;
|
|
39
|
-
title = cloneFromProps->title;
|
|
39
|
+
title = cloneFromProps->title;
|
|
40
|
+
onRequestClose = cloneFromProps->onRequestClose;
|
|
41
|
+
onShow = cloneFromProps->onShow;
|
|
42
|
+
onDismiss = cloneFromProps->onDismiss;
|
|
43
|
+
onOrientationChange = cloneFromProps->onOrientationChange;
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
46
|
|
|
@@ -80,6 +84,19 @@ struct ModalHostViewProps : winrt::implements<ModalHostViewProps, winrt::Microso
|
|
|
80
84
|
REACT_FIELD(title)
|
|
81
85
|
std::optional<std::string> title;
|
|
82
86
|
|
|
87
|
+
// These fields can be used to determine if JS has registered for this event
|
|
88
|
+
REACT_FIELD(onRequestClose)
|
|
89
|
+
bool onRequestClose{false};
|
|
90
|
+
|
|
91
|
+
REACT_FIELD(onShow)
|
|
92
|
+
bool onShow{false};
|
|
93
|
+
|
|
94
|
+
REACT_FIELD(onDismiss)
|
|
95
|
+
bool onDismiss{false};
|
|
96
|
+
|
|
97
|
+
REACT_FIELD(onOrientationChange)
|
|
98
|
+
bool onOrientationChange{false};
|
|
99
|
+
|
|
83
100
|
const winrt::Microsoft::ReactNative::ViewProps ViewProps;
|
|
84
101
|
};
|
|
85
102
|
|
|
@@ -110,26 +127,26 @@ struct ModalHostViewEventEmitter {
|
|
|
110
127
|
using OnDismiss = ModalHostViewSpec_onDismiss;
|
|
111
128
|
using OnOrientationChange = ModalHostViewSpec_onOrientationChange;
|
|
112
129
|
|
|
113
|
-
void onRequestClose(OnRequestClose
|
|
114
|
-
m_eventEmitter.DispatchEvent(L"requestClose", [
|
|
130
|
+
void onRequestClose(OnRequestClose &&value) const {
|
|
131
|
+
m_eventEmitter.DispatchEvent(L"requestClose", [value = std::move(value)](const winrt::Microsoft::ReactNative::IJSValueWriter writer) {
|
|
115
132
|
winrt::Microsoft::ReactNative::WriteValue(writer, value);
|
|
116
133
|
});
|
|
117
134
|
}
|
|
118
135
|
|
|
119
|
-
void onShow(OnShow
|
|
120
|
-
m_eventEmitter.DispatchEvent(L"show", [
|
|
136
|
+
void onShow(OnShow &&value) const {
|
|
137
|
+
m_eventEmitter.DispatchEvent(L"show", [value = std::move(value)](const winrt::Microsoft::ReactNative::IJSValueWriter writer) {
|
|
121
138
|
winrt::Microsoft::ReactNative::WriteValue(writer, value);
|
|
122
139
|
});
|
|
123
140
|
}
|
|
124
141
|
|
|
125
|
-
void onDismiss(OnDismiss
|
|
126
|
-
m_eventEmitter.DispatchEvent(L"dismiss", [
|
|
142
|
+
void onDismiss(OnDismiss &&value) const {
|
|
143
|
+
m_eventEmitter.DispatchEvent(L"dismiss", [value = std::move(value)](const winrt::Microsoft::ReactNative::IJSValueWriter writer) {
|
|
127
144
|
winrt::Microsoft::ReactNative::WriteValue(writer, value);
|
|
128
145
|
});
|
|
129
146
|
}
|
|
130
147
|
|
|
131
|
-
void onOrientationChange(OnOrientationChange
|
|
132
|
-
m_eventEmitter.DispatchEvent(L"orientationChange", [
|
|
148
|
+
void onOrientationChange(OnOrientationChange &&value) const {
|
|
149
|
+
m_eventEmitter.DispatchEvent(L"orientationChange", [value = std::move(value)](const winrt::Microsoft::ReactNative::IJSValueWriter writer) {
|
|
133
150
|
winrt::Microsoft::ReactNative::WriteValue(writer, value);
|
|
134
151
|
});
|
|
135
152
|
}
|
|
@@ -29,7 +29,8 @@ struct PullToRefreshViewProps : winrt::implements<PullToRefreshViewProps, winrt:
|
|
|
29
29
|
titleColor = cloneFromProps->titleColor;
|
|
30
30
|
title = cloneFromProps->title;
|
|
31
31
|
progressViewOffset = cloneFromProps->progressViewOffset;
|
|
32
|
-
refreshing = cloneFromProps->refreshing;
|
|
32
|
+
refreshing = cloneFromProps->refreshing;
|
|
33
|
+
onRefresh = cloneFromProps->onRefresh;
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
|
|
@@ -52,6 +53,10 @@ struct PullToRefreshViewProps : winrt::implements<PullToRefreshViewProps, winrt:
|
|
|
52
53
|
REACT_FIELD(refreshing)
|
|
53
54
|
bool refreshing{};
|
|
54
55
|
|
|
56
|
+
// These fields can be used to determine if JS has registered for this event
|
|
57
|
+
REACT_FIELD(onRefresh)
|
|
58
|
+
bool onRefresh{false};
|
|
59
|
+
|
|
55
60
|
const winrt::Microsoft::ReactNative::ViewProps ViewProps;
|
|
56
61
|
};
|
|
57
62
|
|
|
@@ -65,8 +70,8 @@ struct PullToRefreshViewEventEmitter {
|
|
|
65
70
|
|
|
66
71
|
using OnRefresh = PullToRefreshViewSpec_onRefresh;
|
|
67
72
|
|
|
68
|
-
void onRefresh(OnRefresh
|
|
69
|
-
m_eventEmitter.DispatchEvent(L"refresh", [
|
|
73
|
+
void onRefresh(OnRefresh &&value) const {
|
|
74
|
+
m_eventEmitter.DispatchEvent(L"refresh", [value = std::move(value)](const winrt::Microsoft::ReactNative::IJSValueWriter writer) {
|
|
70
75
|
winrt::Microsoft::ReactNative::WriteValue(writer, value);
|
|
71
76
|
});
|
|
72
77
|
}
|
|
@@ -32,7 +32,8 @@ struct SwitchProps : winrt::implements<SwitchProps, winrt::Microsoft::ReactNativ
|
|
|
32
32
|
thumbTintColor = cloneFromProps->thumbTintColor;
|
|
33
33
|
thumbColor = cloneFromProps->thumbColor;
|
|
34
34
|
trackColorForFalse = cloneFromProps->trackColorForFalse;
|
|
35
|
-
trackColorForTrue = cloneFromProps->trackColorForTrue;
|
|
35
|
+
trackColorForTrue = cloneFromProps->trackColorForTrue;
|
|
36
|
+
onChange = cloneFromProps->onChange;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -64,6 +65,10 @@ struct SwitchProps : winrt::implements<SwitchProps, winrt::Microsoft::ReactNativ
|
|
|
64
65
|
REACT_FIELD(trackColorForTrue)
|
|
65
66
|
winrt::Microsoft::ReactNative::Color trackColorForTrue{nullptr};
|
|
66
67
|
|
|
68
|
+
// These fields can be used to determine if JS has registered for this event
|
|
69
|
+
REACT_FIELD(onChange)
|
|
70
|
+
bool onChange{false};
|
|
71
|
+
|
|
67
72
|
const winrt::Microsoft::ReactNative::ViewProps ViewProps;
|
|
68
73
|
};
|
|
69
74
|
|
|
@@ -82,8 +87,8 @@ struct SwitchEventEmitter {
|
|
|
82
87
|
|
|
83
88
|
using OnChange = SwitchSpec_onChange;
|
|
84
89
|
|
|
85
|
-
void onChange(OnChange
|
|
86
|
-
m_eventEmitter.DispatchEvent(L"change", [
|
|
90
|
+
void onChange(OnChange &&value) const {
|
|
91
|
+
m_eventEmitter.DispatchEvent(L"change", [value = std::move(value)](const winrt::Microsoft::ReactNative::IJSValueWriter writer) {
|
|
87
92
|
winrt::Microsoft::ReactNative::WriteValue(writer, value);
|
|
88
93
|
});
|
|
89
94
|
}
|
|
@@ -26,7 +26,8 @@ struct VirtualViewProps : winrt::implements<VirtualViewProps, winrt::Microsoft::
|
|
|
26
26
|
if (cloneFrom) {
|
|
27
27
|
auto cloneFromProps = cloneFrom.as<VirtualViewProps>();
|
|
28
28
|
initialHidden = cloneFromProps->initialHidden;
|
|
29
|
-
renderState = cloneFromProps->renderState;
|
|
29
|
+
renderState = cloneFromProps->renderState;
|
|
30
|
+
onModeChange = cloneFromProps->onModeChange;
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
|
|
@@ -40,6 +41,10 @@ struct VirtualViewProps : winrt::implements<VirtualViewProps, winrt::Microsoft::
|
|
|
40
41
|
REACT_FIELD(renderState)
|
|
41
42
|
int32_t renderState{};
|
|
42
43
|
|
|
44
|
+
// These fields can be used to determine if JS has registered for this event
|
|
45
|
+
REACT_FIELD(onModeChange)
|
|
46
|
+
bool onModeChange{false};
|
|
47
|
+
|
|
43
48
|
const winrt::Microsoft::ReactNative::ViewProps ViewProps;
|
|
44
49
|
};
|
|
45
50
|
|
|
@@ -91,8 +96,8 @@ struct VirtualViewEventEmitter {
|
|
|
91
96
|
|
|
92
97
|
using OnModeChange = VirtualViewSpec_onModeChange;
|
|
93
98
|
|
|
94
|
-
void onModeChange(OnModeChange
|
|
95
|
-
m_eventEmitter.DispatchEvent(L"modeChange", [
|
|
99
|
+
void onModeChange(OnModeChange &&value) const {
|
|
100
|
+
m_eventEmitter.DispatchEvent(L"modeChange", [value = std::move(value)](const winrt::Microsoft::ReactNative::IJSValueWriter writer) {
|
|
96
101
|
winrt::Microsoft::ReactNative::WriteValue(writer, value);
|
|
97
102
|
});
|
|
98
103
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.81.
|
|
3
|
+
"version": "0.81.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,21 +26,21 @@
|
|
|
26
26
|
"@react-native-community/cli": "17.0.0",
|
|
27
27
|
"@react-native-community/cli-platform-android": "17.0.0",
|
|
28
28
|
"@react-native-community/cli-platform-ios": "17.0.0",
|
|
29
|
-
"@react-native-windows/cli": "0.81.
|
|
29
|
+
"@react-native-windows/cli": "0.81.3",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
|
-
"@react-native/assets-registry": "0.81.
|
|
32
|
-
"@react-native/codegen": "0.81.
|
|
33
|
-
"@react-native/community-cli-plugin": "0.81.
|
|
34
|
-
"@react-native/gradle-plugin": "0.81.
|
|
35
|
-
"@react-native/js-polyfills": "0.81.
|
|
36
|
-
"@react-native/normalize-colors": "0.81.5",
|
|
37
|
-
"@react-native/virtualized-lists": "0.81.5",
|
|
31
|
+
"@react-native/assets-registry": "0.81.6",
|
|
32
|
+
"@react-native/codegen": "0.81.6",
|
|
33
|
+
"@react-native/community-cli-plugin": "0.81.6",
|
|
34
|
+
"@react-native/gradle-plugin": "0.81.6",
|
|
35
|
+
"@react-native/js-polyfills": "0.81.6",
|
|
38
36
|
"@react-native/new-app-screen": "0.81.5",
|
|
37
|
+
"@react-native/normalize-colors": "0.81.6",
|
|
38
|
+
"@react-native/virtualized-lists": "0.81.6",
|
|
39
39
|
"abort-controller": "^3.0.0",
|
|
40
40
|
"anser": "^1.4.9",
|
|
41
41
|
"ansi-regex": "^5.0.0",
|
|
42
42
|
"babel-jest": "^29.7.0",
|
|
43
|
-
"babel-plugin-syntax-hermes-parser": "0.
|
|
43
|
+
"babel-plugin-syntax-hermes-parser": "0.29.1",
|
|
44
44
|
"base64-js": "^1.5.1",
|
|
45
45
|
"chalk": "^4.0.0",
|
|
46
46
|
"commander": "^12.0.0",
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
"jest-environment-node": "^29.7.0",
|
|
52
52
|
"memoize-one": "^5.0.0",
|
|
53
53
|
"metro-runtime": "^0.83.1",
|
|
54
|
-
"metro-source-map": "^0.
|
|
54
|
+
"metro-source-map": "^0.83.1",
|
|
55
55
|
"mkdirp": "^0.5.1",
|
|
56
56
|
"nullthrows": "^1.1.1",
|
|
57
57
|
"pretty-format": "^29.7.0",
|
|
58
58
|
"promise": "^8.3.0",
|
|
59
|
-
"react-devtools-core": "^6.1.
|
|
59
|
+
"react-devtools-core": "^6.1.5",
|
|
60
60
|
"react-refresh": "^0.14.0",
|
|
61
61
|
"regenerator-runtime": "^0.13.2",
|
|
62
62
|
"scheduler": "0.26.0",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"yargs": "^17.6.2"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@react-native-windows/codegen": "0.81.
|
|
72
|
-
"@react-native/metro-config": "0.81.
|
|
71
|
+
"@react-native-windows/codegen": "0.81.3",
|
|
72
|
+
"@react-native/metro-config": "0.81.6",
|
|
73
73
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
74
74
|
"@rnw-scripts/eslint-config": "1.2.37",
|
|
75
75
|
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.41",
|
|
@@ -77,22 +77,22 @@
|
|
|
77
77
|
"@rnw-scripts/metro-dev-config": "0.0.0",
|
|
78
78
|
"@rnx-kit/jest-preset": "^0.1.17",
|
|
79
79
|
"@types/node": "^22.14.0",
|
|
80
|
-
"@types/react": "^19.1.
|
|
80
|
+
"@types/react": "^19.1.4",
|
|
81
81
|
"eslint": "^8.19.0",
|
|
82
82
|
"flow-bin": "^0.274.2",
|
|
83
83
|
"jscodeshift": "^0.14.0",
|
|
84
84
|
"just-scripts": "^1.3.3",
|
|
85
85
|
"prettier": "2.8.8",
|
|
86
|
-
"react": "19.1.
|
|
87
|
-
"react-native": "0.81.
|
|
88
|
-
"react-native-platform-override": "0.81.
|
|
86
|
+
"react": "19.1.4",
|
|
87
|
+
"react-native": "0.81.6",
|
|
88
|
+
"react-native-platform-override": "0.81.1",
|
|
89
89
|
"react-refresh": "^0.14.0",
|
|
90
90
|
"typescript": "5.0.4"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
|
-
"@types/react": "^19.1.
|
|
94
|
-
"react": "^19.1.
|
|
95
|
-
"react-native": "0.81.
|
|
93
|
+
"@types/react": "^19.1.4",
|
|
94
|
+
"react": "^19.1.4",
|
|
95
|
+
"react-native": "^0.81.0"
|
|
96
96
|
},
|
|
97
97
|
"beachball": {
|
|
98
98
|
"defaultNpmTag": "latest",
|