react-native-windows 0.83.0-preview.2 → 0.84.0-preview.2
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/.flowconfig +2 -2
- package/Folly/Folly.vcxproj +2 -0
- package/Libraries/Animated/AnimatedEvent.js +2 -2
- package/Libraries/Animated/animations/Animation.js +1 -3
- package/Libraries/Animated/createAnimatedComponent.js +8 -5
- package/Libraries/Animated/nodes/AnimatedColor.js +1 -1
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +40 -4
- package/Libraries/Animated/nodes/AnimatedNode.js +3 -3
- package/Libraries/Animated/nodes/AnimatedObject.js +16 -11
- package/Libraries/Animated/nodes/AnimatedProps.js +43 -12
- package/Libraries/Animated/nodes/AnimatedStyle.js +12 -12
- package/Libraries/Animated/nodes/AnimatedValue.js +6 -3
- package/Libraries/Animated/nodes/AnimatedValueXY.js +1 -1
- package/Libraries/BatchedBridge/MessageQueue.js +24 -22
- package/Libraries/Blob/URL.js +34 -3
- package/Libraries/Blob/URLSearchParams.js +1 -0
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +9 -1
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +6 -1
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.windows.js +6 -1
- package/Libraries/Components/Button.js +2 -5
- package/Libraries/Components/Button.windows.js +2 -5
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +1 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.js +4 -4
- package/Libraries/Components/Keyboard/Keyboard.js +2 -2
- package/Libraries/Components/Pressable/Pressable.js +8 -8
- package/Libraries/Components/Pressable/Pressable.windows.js +14 -13
- package/Libraries/Components/TextInput/TextInput.flow.js +13 -13
- package/Libraries/Components/TextInput/TextInput.flow.windows.js +19 -18
- package/Libraries/Components/TextInput/TextInput.js +33 -34
- package/Libraries/Components/TextInput/TextInput.windows.js +40 -39
- package/Libraries/Components/Touchable/PooledClass.js +2 -2
- package/Libraries/Components/Touchable/TouchableBounce.js +3 -3
- package/Libraries/Components/Touchable/TouchableBounce.windows.js +3 -3
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +1 -1
- package/Libraries/Components/Touchable/TouchableNativeFeedback.windows.js +1 -1
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +9 -9
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.windows.js +9 -9
- package/Libraries/Components/View/ViewPropTypes.js +16 -6
- package/Libraries/Components/View/ViewPropTypes.windows.js +21 -11
- package/Libraries/Core/Devtools/loadBundleFromServer.js +6 -3
- package/Libraries/Core/Devtools/loadBundleFromServer.windows.js +6 -3
- package/Libraries/Core/Devtools/symbolicateStackTrace.js +1 -1
- package/Libraries/Core/ExceptionsManager.js +3 -3
- package/Libraries/Core/RawEventEmitter.js +1 -1
- package/Libraries/Core/ReactFiberErrorDialog.js +1 -1
- package/Libraries/Core/ReactNativeVersion.js +3 -3
- package/Libraries/Core/setUpDeveloperTools.js +1 -1
- package/Libraries/Core/setUpErrorHandling.js +1 -1
- package/Libraries/EventEmitter/NativeEventEmitter.js +2 -2
- package/Libraries/Image/Image.android.js +2 -2
- package/Libraries/Image/Image.ios.js +2 -2
- package/Libraries/Image/Image.windows.js +2 -2
- package/Libraries/Image/ImageProps.js +1 -1
- package/Libraries/Image/ImageTypes.flow.js +2 -2
- package/Libraries/Interaction/InteractionManager.js +3 -3
- package/Libraries/Interaction/PanResponder.js +1 -1
- package/Libraries/LayoutAnimation/LayoutAnimation.js +1 -1
- package/Libraries/Linking/Linking.js +1 -1
- package/Libraries/Lists/FlatList.js +2 -2
- package/Libraries/LogBox/Data/LogBoxData.js +31 -4
- package/Libraries/LogBox/Data/LogBoxLog.js +2 -2
- package/Libraries/LogBox/Data/LogBoxSymbolication.js +1 -1
- package/Libraries/LogBox/Data/parseLogBoxLog.js +5 -5
- package/Libraries/LogBox/LogBox.js +7 -7
- package/Libraries/NativeComponent/BaseViewConfig.android.js +12 -0
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +4 -4
- package/Libraries/NativeComponent/ViewConfigIgnore.js +1 -1
- package/Libraries/NativeComponent/ViewConfigIgnore.windows.js +1 -1
- package/Libraries/Network/RCTNetworking.android.js +3 -3
- package/Libraries/Network/RCTNetworking.ios.js +2 -2
- package/Libraries/Network/RCTNetworking.js.flow +2 -2
- package/Libraries/Network/RCTNetworking.windows.js +2 -2
- package/Libraries/Pressability/Pressability.js +9 -9
- package/Libraries/Pressability/Pressability.windows.js +17 -16
- package/Libraries/ReactNative/AppRegistry.flow.js +1 -1
- package/Libraries/ReactNative/BridgelessUIManager.js +1 -1
- package/Libraries/ReactNative/FabricUIManager.js +1 -1
- package/Libraries/ReactNative/PaperUIManager.js +1 -1
- package/Libraries/ReactNative/PaperUIManager.windows.js +1 -1
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +1 -1
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstanceUtils.js +2 -2
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.js +1 -1
- package/Libraries/ReactNative/RendererImplementation.js +1 -1
- package/Libraries/ReactNative/getNativeComponentAttributes.js +1 -1
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +1 -2
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +3 -3
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +3 -3
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +3 -3
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +11 -4
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +11 -4
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +11 -4
- package/Libraries/Renderer/shims/ReactFabric.js +3 -1
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +3 -1
- package/Libraries/Renderer/shims/ReactNative.js +2 -2
- package/Libraries/Renderer/shims/ReactNativeTypes.js +3 -1
- package/Libraries/Renderer/shims/ReactNativeTypes.windows.js +3 -1
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +3 -1
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +3 -1
- package/Libraries/Settings/Settings.ios.js +1 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.android.js +2 -2
- package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +1 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.js.flow +4 -2
- package/Libraries/StyleSheet/StyleSheetExports.js +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +99 -4
- package/Libraries/StyleSheet/StyleSheetTypes.js +6 -8
- package/Libraries/StyleSheet/processFilter.js +1 -1
- package/Libraries/Text/Text.js +46 -6
- package/Libraries/Text/Text.windows.js +46 -6
- package/Libraries/Text/TextNativeComponent.js +1 -1
- package/Libraries/Text/TextProps.js +7 -7
- package/Libraries/Text/TextProps.windows.js +7 -7
- package/Libraries/Types/CodegenTypes.js +1 -1
- package/Libraries/Types/CoreEventTypes.js +31 -0
- package/Libraries/Types/CoreEventTypes.windows.js +31 -13
- package/Libraries/Types/ReactDevToolsTypes.js +2 -2
- package/Libraries/Utilities/Appearance.js +2 -2
- package/Libraries/Utilities/DevLoadingView.js +8 -1
- package/Libraries/Utilities/DevSettings.js +3 -3
- package/Libraries/Utilities/HMRClient.js +4 -3
- package/Libraries/Utilities/RCTLog.js +3 -3
- package/Libraries/Utilities/ReactNativeTestTools.js +1 -1
- package/Libraries/Utilities/SceneTracker.js +1 -1
- package/Libraries/Utilities/codegenNativeCommands.js +1 -1
- package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +3 -3
- package/Libraries/Utilities/logError.js +1 -1
- package/Libraries/Utilities/stringifySafe.js +7 -7
- package/Libraries/Utilities/useRefEffect.js +1 -1
- package/Libraries/WebSocket/WebSocketInterceptor.js +3 -3
- package/Libraries/promiseRejectionTrackingOptions.js +8 -8
- package/Libraries/vendor/core/ErrorUtils.js +10 -10
- package/Libraries/vendor/emitter/EventEmitter.js +6 -6
- package/Microsoft.ReactNative/Fabric/AbiViewProps.cpp +5 -0
- package/Microsoft.ReactNative/Fabric/AbiViewProps.h +1 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.cpp +25 -5
- package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.h +2 -1
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +9 -3
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +2 -3
- package/Microsoft.ReactNative/Fabric/ReactTaggedView.h +2 -2
- package/Microsoft.ReactNative/IReactCompositionViewComponentBuilder.idl +2 -0
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +6 -0
- package/Microsoft.ReactNative/ViewProps.idl +9 -0
- package/Microsoft.ReactNative.Cxx/ReactCommon/TurboModule.h +12 -2
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/ReactCommon/ReactCommon.vcxproj +7 -1
- package/ReactCommon/ReactCommon.vcxproj.filters +0 -3
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSIndexedRAMBundle.cpp +5 -5
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/ReactMarker.cpp +0 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsiexecutor/jsireact/JSIExecutor.cpp +2 -43
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModule.h +12 -2
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/attributedstring/TextAttributes.cpp +291 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/EventDispatcher.cpp +0 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/EventQueueProcessor.cpp +1 -3
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/propsConversions.h +199 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/uimanager/UIManager.cpp +6 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/ReactInstance.cpp +17 -10
- package/Scripts/creaternwapp.cmd +8 -1
- package/Scripts/creaternwlib.cmd +21 -2
- package/Shared/DevSettings.h +0 -3
- package/Shared/Modules/WebSocketModule.cpp +0 -1
- package/Shared/Modules/WebSocketModule.h +62 -3
- package/Shared/OInstance.cpp +5 -0
- package/Shared/Shared.vcxitems +4 -6
- package/Shared/Shared.vcxitems.filters +218 -709
- package/codegen/NativeAccessibilityManagerSpec.g.h +2 -0
- package/codegen/NativeAnimatedModuleSpec.g.h +21 -15
- package/codegen/NativeDevLoadingViewSpec.g.h +3 -3
- package/codegen/NativeIntentAndroidSpec.g.h +16 -3
- package/codegen/NativeReactNativeFeatureFlagsSpec.g.h +209 -191
- package/codegen/react/components/rnwcore/EventEmitters.h +1 -0
- package/codegen/react/components/rnwcore/Props.h +14 -0
- package/codegen/rnwcoreJSI.h +246 -211
- package/index.js +3 -0
- package/index.windows.js +3 -0
- package/jest/mock.js +2 -2
- package/jest/mockComponent.js +1 -1
- package/jest/setup.js +1 -1
- package/package.json +22 -21
- package/src/private/animated/NativeAnimatedHelper.js +130 -125
- package/src/private/animated/NativeAnimatedValidation.js +7 -4
- package/src/private/animated/createAnimatedPropsHook.js +13 -5
- package/src/private/animated/createAnimatedPropsMemoHook.js +10 -10
- package/src/private/components/virtualview/VirtualView.js +16 -9
- package/src/private/components/virtualview/logger/VirtualViewLogger.js +21 -0
- package/src/private/components/virtualview/logger/VirtualViewLoggerTypes.js +24 -0
- package/src/private/devsupport/devmenu/elementinspector/ElementProperties.js +1 -1
- package/src/private/devsupport/devmenu/elementinspector/Inspector.js +6 -25
- package/src/private/devsupport/devmenu/elementinspector/InspectorPanel.js +1 -27
- package/src/private/devsupport/devmenu/elementinspector/XHRInterceptor.js +3 -2
- package/src/private/featureflags/ReactNativeFeatureFlags.js +63 -42
- package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +3 -3
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +12 -9
- package/src/private/renderer/errorhandling/ErrorHandlers.js +7 -4
- package/src/private/specs_DEPRECATED/modules/NativeAccessibilityManager.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeAnimatedModule.js +4 -0
- package/src/private/specs_DEPRECATED/modules/NativeDevLoadingView.js +1 -0
- package/src/private/webapis/dom/events/CustomEvent.js +3 -3
- package/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.js +1 -1
- package/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.js +1 -1
- package/src/private/webapis/dom/nodes/specs/NativeDOM.js +29 -29
- package/src/private/webapis/dom/oldstylecollections/HTMLCollection.js +1 -1
- package/src/private/webapis/dom/oldstylecollections/NodeList.js +2 -2
- package/src/private/webapis/geometry/DOMRectReadOnly.js +1 -1
- package/src/private/webapis/html/events/MessageEvent.js +3 -3
- package/src/private/webapis/idlecallbacks/specs/NativeIdleCallbacks.js +3 -3
- package/src/private/webapis/intersectionobserver/IntersectionObserver.js +53 -5
- package/src/private/webapis/intersectionobserver/internals/IntersectionObserverManager.js +2 -2
- package/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js +4 -4
- package/src/private/webapis/microtasks/specs/NativeMicrotasks.js +1 -1
- package/src/private/webapis/mutationobserver/MutationObserver.js +1 -1
- package/src/private/webapis/mutationobserver/MutationRecord.js +1 -1
- package/src/private/webapis/mutationobserver/specs/NativeMutationObserver.js +4 -4
- package/src/private/webapis/performance/Performance.js +1 -1
- package/src/private/webapis/performance/UserTiming.js +1 -1
- package/src/private/webapis/performance/specs/NativePerformance.js +3 -3
- package/src/private/webapis/structuredClone/structuredClone.js +3 -3
- package/src/types/globals.d.ts +30 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/image/conversions.h +0 -178
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/imagemanager/primitives.h +0 -183
- package/Shared/Modules/WebSocketTurboModule.h +0 -71
- package/src/private/devsupport/devmenu/elementinspector/NetworkOverlay.js +0 -628
- package/src/private/devsupport/devmenu/perfmonitor/PerformanceOverlay.js +0 -66
|
@@ -31,6 +31,7 @@ struct AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipl
|
|
|
31
31
|
|
|
32
32
|
struct AccessibilityManagerSpec_announceForAccessibilityWithOptions_options {
|
|
33
33
|
std::optional<bool> queue;
|
|
34
|
+
std::optional<std::string> priority;
|
|
34
35
|
};
|
|
35
36
|
|
|
36
37
|
|
|
@@ -55,6 +56,7 @@ inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(AccessibilityManage
|
|
|
55
56
|
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(AccessibilityManagerSpec_announceForAccessibilityWithOptions_options*) noexcept {
|
|
56
57
|
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
57
58
|
{L"queue", &AccessibilityManagerSpec_announceForAccessibilityWithOptions_options::queue},
|
|
59
|
+
{L"priority", &AccessibilityManagerSpec_announceForAccessibilityWithOptions_options::priority},
|
|
58
60
|
};
|
|
59
61
|
return fieldMap;
|
|
60
62
|
}
|
|
@@ -61,14 +61,15 @@ struct AnimatedModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
61
61
|
Method<void(double) noexcept>{13, L"flattenAnimatedNodeOffset"},
|
|
62
62
|
Method<void(double) noexcept>{14, L"extractAnimatedNodeOffset"},
|
|
63
63
|
Method<void(double, double) noexcept>{15, L"connectAnimatedNodeToView"},
|
|
64
|
-
Method<void(double,
|
|
65
|
-
Method<void(double) noexcept>{17, L"
|
|
66
|
-
Method<void(double) noexcept>{18, L"
|
|
67
|
-
Method<void(double
|
|
68
|
-
Method<void(double, std::string,
|
|
69
|
-
Method<void(std::string) noexcept>{21, L"
|
|
70
|
-
Method<void(
|
|
71
|
-
Method<void(
|
|
64
|
+
Method<void(double, ::React::JSValue) noexcept>{16, L"connectAnimatedNodeToShadowNodeFamily"},
|
|
65
|
+
Method<void(double, double) noexcept>{17, L"disconnectAnimatedNodeFromView"},
|
|
66
|
+
Method<void(double) noexcept>{18, L"restoreDefaultValues"},
|
|
67
|
+
Method<void(double) noexcept>{19, L"dropAnimatedNode"},
|
|
68
|
+
Method<void(double, std::string, AnimatedModuleSpec_EventMapping) noexcept>{20, L"addAnimatedEventToView"},
|
|
69
|
+
Method<void(double, std::string, double) noexcept>{21, L"removeAnimatedEventFromView"},
|
|
70
|
+
Method<void(std::string) noexcept>{22, L"addListener"},
|
|
71
|
+
Method<void(double) noexcept>{23, L"removeListeners"},
|
|
72
|
+
Method<void(::React::JSValueArray) noexcept>{24, L"queueAndExecuteBatchedOperations"},
|
|
72
73
|
};
|
|
73
74
|
|
|
74
75
|
template <class TModule>
|
|
@@ -157,41 +158,46 @@ struct AnimatedModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
157
158
|
" REACT_METHOD(connectAnimatedNodeToView) static void connectAnimatedNodeToView(double nodeTag, double viewTag) noexcept { /* implementation */ }\n");
|
|
158
159
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
159
160
|
16,
|
|
161
|
+
"connectAnimatedNodeToShadowNodeFamily",
|
|
162
|
+
" REACT_METHOD(connectAnimatedNodeToShadowNodeFamily) void connectAnimatedNodeToShadowNodeFamily(double nodeTag, ::React::JSValue && shadowNode) noexcept { /* implementation */ }\n"
|
|
163
|
+
" REACT_METHOD(connectAnimatedNodeToShadowNodeFamily) static void connectAnimatedNodeToShadowNodeFamily(double nodeTag, ::React::JSValue && shadowNode) noexcept { /* implementation */ }\n");
|
|
164
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
165
|
+
17,
|
|
160
166
|
"disconnectAnimatedNodeFromView",
|
|
161
167
|
" REACT_METHOD(disconnectAnimatedNodeFromView) void disconnectAnimatedNodeFromView(double nodeTag, double viewTag) noexcept { /* implementation */ }\n"
|
|
162
168
|
" REACT_METHOD(disconnectAnimatedNodeFromView) static void disconnectAnimatedNodeFromView(double nodeTag, double viewTag) noexcept { /* implementation */ }\n");
|
|
163
169
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
164
|
-
|
|
170
|
+
18,
|
|
165
171
|
"restoreDefaultValues",
|
|
166
172
|
" REACT_METHOD(restoreDefaultValues) void restoreDefaultValues(double nodeTag) noexcept { /* implementation */ }\n"
|
|
167
173
|
" REACT_METHOD(restoreDefaultValues) static void restoreDefaultValues(double nodeTag) noexcept { /* implementation */ }\n");
|
|
168
174
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
169
|
-
|
|
175
|
+
19,
|
|
170
176
|
"dropAnimatedNode",
|
|
171
177
|
" REACT_METHOD(dropAnimatedNode) void dropAnimatedNode(double tag) noexcept { /* implementation */ }\n"
|
|
172
178
|
" REACT_METHOD(dropAnimatedNode) static void dropAnimatedNode(double tag) noexcept { /* implementation */ }\n");
|
|
173
179
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
174
|
-
|
|
180
|
+
20,
|
|
175
181
|
"addAnimatedEventToView",
|
|
176
182
|
" REACT_METHOD(addAnimatedEventToView) void addAnimatedEventToView(double viewTag, std::string eventName, AnimatedModuleSpec_EventMapping && eventMapping) noexcept { /* implementation */ }\n"
|
|
177
183
|
" REACT_METHOD(addAnimatedEventToView) static void addAnimatedEventToView(double viewTag, std::string eventName, AnimatedModuleSpec_EventMapping && eventMapping) noexcept { /* implementation */ }\n");
|
|
178
184
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
179
|
-
|
|
185
|
+
21,
|
|
180
186
|
"removeAnimatedEventFromView",
|
|
181
187
|
" REACT_METHOD(removeAnimatedEventFromView) void removeAnimatedEventFromView(double viewTag, std::string eventName, double animatedNodeTag) noexcept { /* implementation */ }\n"
|
|
182
188
|
" REACT_METHOD(removeAnimatedEventFromView) static void removeAnimatedEventFromView(double viewTag, std::string eventName, double animatedNodeTag) noexcept { /* implementation */ }\n");
|
|
183
189
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
184
|
-
|
|
190
|
+
22,
|
|
185
191
|
"addListener",
|
|
186
192
|
" REACT_METHOD(addListener) void addListener(std::string eventName) noexcept { /* implementation */ }\n"
|
|
187
193
|
" REACT_METHOD(addListener) static void addListener(std::string eventName) noexcept { /* implementation */ }\n");
|
|
188
194
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
189
|
-
|
|
195
|
+
23,
|
|
190
196
|
"removeListeners",
|
|
191
197
|
" REACT_METHOD(removeListeners) void removeListeners(double count) noexcept { /* implementation */ }\n"
|
|
192
198
|
" REACT_METHOD(removeListeners) static void removeListeners(double count) noexcept { /* implementation */ }\n");
|
|
193
199
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
194
|
-
|
|
200
|
+
24,
|
|
195
201
|
"queueAndExecuteBatchedOperations",
|
|
196
202
|
" REACT_METHOD(queueAndExecuteBatchedOperations) void queueAndExecuteBatchedOperations(::React::JSValueArray && operationsAndArgs) noexcept { /* implementation */ }\n"
|
|
197
203
|
" REACT_METHOD(queueAndExecuteBatchedOperations) static void queueAndExecuteBatchedOperations(::React::JSValueArray && operationsAndArgs) noexcept { /* implementation */ }\n");
|
|
@@ -17,7 +17,7 @@ namespace Microsoft::ReactNativeSpecs {
|
|
|
17
17
|
|
|
18
18
|
struct DevLoadingViewSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
19
19
|
static constexpr auto methods = std::tuple{
|
|
20
|
-
Method<void(std::string, std::optional<double>, std::optional<double>) noexcept>{0, L"showMessage"},
|
|
20
|
+
Method<void(std::string, std::optional<double>, std::optional<double>, std::optional<bool>) noexcept>{0, L"showMessage"},
|
|
21
21
|
Method<void() noexcept>{1, L"hide"},
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -28,8 +28,8 @@ struct DevLoadingViewSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
28
28
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
29
29
|
0,
|
|
30
30
|
"showMessage",
|
|
31
|
-
" REACT_METHOD(showMessage) void showMessage(std::string message, std::optional<double> withColor, std::optional<double> withBackgroundColor) noexcept { /* implementation */ }\n"
|
|
32
|
-
" REACT_METHOD(showMessage) static void showMessage(std::string message, std::optional<double> withColor, std::optional<double> withBackgroundColor) noexcept { /* implementation */ }\n");
|
|
31
|
+
" REACT_METHOD(showMessage) void showMessage(std::string message, std::optional<double> withColor, std::optional<double> withBackgroundColor, std::optional<bool> withDismissButton) noexcept { /* implementation */ }\n"
|
|
32
|
+
" REACT_METHOD(showMessage) static void showMessage(std::string message, std::optional<double> withColor, std::optional<double> withBackgroundColor, std::optional<bool> withDismissButton) noexcept { /* implementation */ }\n");
|
|
33
33
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
34
34
|
1,
|
|
35
35
|
"hide",
|
|
@@ -14,6 +14,19 @@
|
|
|
14
14
|
|
|
15
15
|
namespace Microsoft::ReactNativeSpecs {
|
|
16
16
|
|
|
17
|
+
struct IntentAndroidSpec_sendIntent_extras_element {
|
|
18
|
+
std::string key;
|
|
19
|
+
::React::JSValue value;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(IntentAndroidSpec_sendIntent_extras_element*) noexcept {
|
|
24
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
25
|
+
{L"key", &IntentAndroidSpec_sendIntent_extras_element::key},
|
|
26
|
+
{L"value", &IntentAndroidSpec_sendIntent_extras_element::value},
|
|
27
|
+
};
|
|
28
|
+
return fieldMap;
|
|
29
|
+
}
|
|
17
30
|
|
|
18
31
|
struct IntentAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
19
32
|
static constexpr auto methods = std::tuple{
|
|
@@ -21,7 +34,7 @@ struct IntentAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
21
34
|
Method<void(std::string, Promise<bool>) noexcept>{1, L"canOpenURL"},
|
|
22
35
|
Method<void(std::string, Promise<void>) noexcept>{2, L"openURL"},
|
|
23
36
|
Method<void(Promise<void>) noexcept>{3, L"openSettings"},
|
|
24
|
-
Method<void(std::string, std::optional
|
|
37
|
+
Method<void(std::string, std::optional<std::vector<IntentAndroidSpec_sendIntent_extras_element>>, Promise<void>) noexcept>{4, L"sendIntent"},
|
|
25
38
|
};
|
|
26
39
|
|
|
27
40
|
template <class TModule>
|
|
@@ -51,8 +64,8 @@ struct IntentAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
51
64
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
52
65
|
4,
|
|
53
66
|
"sendIntent",
|
|
54
|
-
" REACT_METHOD(sendIntent) void sendIntent(std::string action, std::optional
|
|
55
|
-
" REACT_METHOD(sendIntent) static void sendIntent(std::string action, std::optional
|
|
67
|
+
" REACT_METHOD(sendIntent) void sendIntent(std::string action, std::optional<std::vector<IntentAndroidSpec_sendIntent_extras_element>> extras, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n"
|
|
68
|
+
" REACT_METHOD(sendIntent) static void sendIntent(std::string action, std::optional<std::vector<IntentAndroidSpec_sendIntent_extras_element>> extras, ::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n");
|
|
56
69
|
}
|
|
57
70
|
};
|
|
58
71
|
|