react-native-windows 0.79.3 → 0.80.0-preview.1
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 +12 -3
- package/Directory.Build.props +5 -2
- package/Libraries/Alert/Alert.d.ts +4 -1
- package/Libraries/Alert/Alert.js +3 -0
- package/Libraries/Alert/Alert.windows.js +3 -0
- package/Libraries/Alert/RCTAlertManager.js +17 -0
- package/Libraries/Animated/Animated.js.flow +1 -3
- package/Libraries/Animated/AnimatedEvent.js +4 -3
- package/Libraries/Animated/AnimatedExports.js +2 -2
- package/Libraries/Animated/AnimatedExports.js.flow +140 -0
- package/Libraries/Animated/AnimatedImplementation.js +2 -123
- package/Libraries/Animated/Easing.js +13 -15
- package/Libraries/Animated/animations/Animation.js +8 -4
- package/Libraries/Animated/components/AnimatedFlatList.js +7 -6
- package/Libraries/Animated/components/AnimatedScrollView.js +48 -42
- package/Libraries/Animated/components/AnimatedSectionList.js +11 -7
- package/Libraries/Animated/createAnimatedComponent.js +105 -57
- package/Libraries/Animated/nodes/AnimatedNode.js +4 -3
- package/Libraries/Animated/nodes/AnimatedProps.js +46 -26
- package/Libraries/Animated/nodes/AnimatedValue.js +16 -7
- package/Libraries/Animated/nodes/AnimatedValueXY.js +3 -1
- package/Libraries/AppState/AppState.js +7 -2
- package/Libraries/BatchedBridge/MessageQueue.js +2 -2
- package/Libraries/BatchedBridge/NativeModules.js +2 -0
- package/Libraries/Blob/BlobManager.js +1 -0
- package/Libraries/Blob/FileReader.js +219 -8
- package/Libraries/Blob/URL.js +37 -12
- package/Libraries/Blob/URLSearchParams.js +106 -31
- package/Libraries/Blob/URLSearchParams.js.flow +12 -7
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +1 -1
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.windows.js +1 -1
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.js +17 -0
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +1 -0
- package/Libraries/Components/Button.d.ts +3 -0
- package/Libraries/Components/Button.js +1 -1
- package/Libraries/Components/Button.windows.js +27 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +1 -3
- package/Libraries/{NewAppScreen/components/Colors.js → Components/DrawerAndroid/DrawerLayoutAndroid.ios.js} +6 -10
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +6 -66
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js.flow +18 -0
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.js +71 -0
- package/Libraries/Components/Flyout/Flyout.js +11 -0
- package/Libraries/Components/Keyboard/Keyboard.js +5 -3
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +6 -3
- package/Libraries/Components/Keyboard/KeyboardExt.js.map +1 -1
- package/Libraries/Components/Popup/Popup.js +11 -0
- package/Libraries/Components/Pressable/Pressable.js +20 -4
- package/Libraries/Components/Pressable/Pressable.windows.js +20 -4
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +25 -3
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.js +29 -20
- package/Libraries/Components/RefreshControl/RefreshControl.js +1 -1
- package/Libraries/Components/RefreshControl/RefreshControl.windows.js +1 -1
- package/Libraries/Components/ScrollView/ScrollView.d.ts +3 -3
- package/Libraries/Components/ScrollView/ScrollView.js +132 -122
- package/Libraries/Components/ScrollView/ScrollView.windows.js +131 -122
- package/Libraries/Components/StaticRenderer.js +1 -1
- package/Libraries/Components/Switch/Switch.d.ts +3 -0
- package/Libraries/Components/Switch/Switch.js +8 -4
- package/Libraries/Components/Switch/Switch.windows.js +17 -4
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +2 -1
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +2 -4
- package/Libraries/Components/TextInput/TextInput.d.ts +70 -33
- package/Libraries/Components/TextInput/TextInput.flow.js +100 -51
- package/Libraries/Components/TextInput/TextInput.flow.windows.js +1246 -0
- package/Libraries/Components/TextInput/TextInput.js +88 -1027
- package/Libraries/Components/TextInput/TextInput.windows.js +104 -1092
- package/Libraries/Components/TextInput/TextInputState.js +1 -1
- package/Libraries/Components/TextInput/TextInputState.windows.js +1 -1
- package/Libraries/Components/TextInput/WindowsTextInputNativeComponent.js +2 -1
- package/Libraries/{Modal/ModalInjection.js → Components/ToastAndroid/ToastAndroid.ios.js} +3 -5
- package/Libraries/Components/ToastAndroid/ToastAndroid.js +4 -32
- package/Libraries/Components/ToastAndroid/ToastAndroid.js.flow +109 -0
- package/Libraries/Components/ToastAndroid/ToastAndroidFallback.js +45 -0
- package/Libraries/Components/Touchable/Touchable.js +5 -5
- package/Libraries/Components/Touchable/Touchable.windows.js +5 -5
- package/Libraries/Components/Touchable/TouchableBounce.js +14 -7
- package/Libraries/Components/Touchable/TouchableBounce.windows.js +14 -7
- package/Libraries/Components/Touchable/TouchableHighlight.js +10 -7
- package/Libraries/Components/Touchable/TouchableHighlight.windows.js +10 -7
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +6 -6
- package/Libraries/Components/Touchable/TouchableNativeFeedback.windows.js +6 -6
- package/Libraries/Components/Touchable/TouchableOpacity.js +13 -6
- package/Libraries/Components/Touchable/TouchableOpacity.windows.js +13 -6
- package/Libraries/Components/View/View.js +18 -21
- package/Libraries/Components/View/View.windows.js +39 -41
- package/Libraries/Components/View/ViewAccessibility.d.ts +8 -0
- package/Libraries/Components/View/ViewAccessibility.js +25 -1
- package/Libraries/Components/View/ViewAccessibility.windows.js +9 -1
- package/Libraries/Components/View/ViewPropTypes.js +49 -3
- package/Libraries/Components/View/ViewPropTypes.windows.js +50 -2
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/setUpReactDevTools.js +5 -5
- package/Libraries/Debugging/DebuggingOverlayRegistry.js +3 -3
- package/Libraries/EventEmitter/NativeEventEmitter.js +9 -4
- package/Libraries/Image/AssetSourceResolver.js +17 -4
- package/Libraries/Image/AssetSourceResolver.windows.js +17 -4
- package/Libraries/Image/Image.d.ts +26 -10
- package/Libraries/Image/Image.js +17 -0
- package/Libraries/Image/Image.js.flow +5 -5
- package/Libraries/Image/Image.windows.js +13 -1
- package/Libraries/Image/ImageBackground.js +2 -0
- package/Libraries/Image/ImageInjection.js +1 -1
- package/Libraries/Image/ImageProps.js +22 -17
- package/Libraries/Image/ImageSource.js +3 -1
- package/Libraries/Image/ImageSourceUtils.js +4 -2
- package/Libraries/Image/ImageTypes.flow.js +1 -1
- package/Libraries/Interaction/InteractionManager.d.ts +13 -0
- package/Libraries/Interaction/InteractionManager.js +1 -1
- package/Libraries/Interaction/PanResponder.js +3 -3
- package/Libraries/Interaction/TaskQueue.js +1 -0
- package/Libraries/LayoutAnimation/LayoutAnimation.js +2 -2
- package/Libraries/Linking/Linking.js +1 -1
- package/Libraries/Lists/FlatList.d.ts +2 -2
- package/Libraries/Lists/FlatList.js +8 -11
- package/Libraries/Lists/SectionList.js +39 -42
- package/Libraries/Lists/SectionListModern.js +25 -34
- package/Libraries/Lists/VirtualizedList.js +1 -0
- package/Libraries/Lists/VirtualizedSectionList.js +1 -0
- package/Libraries/LogBox/Data/LogBoxData.js +1 -1
- package/Libraries/LogBox/LogBoxNotificationContainer.js +1 -1
- package/Libraries/Modal/Modal.js +33 -7
- package/Libraries/Modal/Modal.windows.js +33 -10
- package/Libraries/NativeComponent/BaseViewConfig.android.js +2 -0
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +2 -0
- package/Libraries/NativeComponent/BaseViewConfig.js +17 -0
- package/Libraries/NativeComponent/BaseViewConfig.windows.js +3 -0
- package/Libraries/NativeComponent/PlatformBaseViewConfig.js +2 -2
- package/Libraries/NativeModules/specs/NativeDevMenu.js +2 -2
- package/Libraries/Network/RCTNetworking.android.js +1 -1
- package/Libraries/Network/RCTNetworking.ios.js +1 -1
- package/Libraries/Network/RCTNetworking.js +17 -0
- package/Libraries/Network/RCTNetworking.js.flow +1 -1
- package/Libraries/Network/RCTNetworking.windows.js +1 -1
- package/Libraries/Network/XMLHttpRequest.js +781 -10
- package/Libraries/Performance/Systrace.js +7 -7
- package/Libraries/Pressability/Pressability.js +1 -1
- package/Libraries/Pressability/Pressability.windows.js +1 -1
- package/Libraries/ReactNative/AppContainer-dev.js +5 -4
- package/Libraries/ReactNative/AppRegistry.flow.js +49 -0
- package/Libraries/ReactNative/AppRegistry.js +2 -322
- package/Libraries/ReactNative/AppRegistry.js.flow +23 -0
- package/Libraries/ReactNative/AppRegistryImpl.js +316 -0
- package/Libraries/ReactNative/FabricUIManager.js +10 -0
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +2 -4
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +1 -4
- package/Libraries/ReactNative/RendererImplementation.js +10 -5
- package/Libraries/ReactNative/getNativeComponentAttributes.js +1 -0
- package/Libraries/ReactNative/renderApplication.js +9 -0
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +3 -3
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js.flow +51 -0
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +4840 -4748
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +4947 -4829
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +3998 -3888
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +5005 -4948
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +2744 -2652
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +5020 -4933
- package/Libraries/Renderer/shims/ReactNativeTypes.js +3 -3
- package/Libraries/Settings/Settings.ios.js +1 -0
- package/Libraries/Settings/Settings.js +13 -19
- package/Libraries/Settings/SettingsFallback.js +33 -0
- package/Libraries/StyleSheet/PlatformColorValueTypes.js +15 -0
- package/Libraries/StyleSheet/PlatformColorValueTypesIOS.js +6 -0
- package/Libraries/StyleSheet/Rect.js +1 -0
- package/Libraries/StyleSheet/StyleSheet.js +31 -200
- package/Libraries/StyleSheet/StyleSheet.js.flow +188 -0
- package/Libraries/StyleSheet/StyleSheetExports.js +210 -0
- package/Libraries/StyleSheet/StyleSheetExports.js.flow +112 -0
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.js +130 -52
- package/Libraries/StyleSheet/flattenStyle.js +14 -4
- package/Libraries/StyleSheet/private/_TransformStyle.js +49 -21
- package/Libraries/StyleSheet/processBackgroundImage.js +670 -214
- package/Libraries/Text/Text.d.ts +2 -5
- package/Libraries/Text/Text.js +3 -3
- package/Libraries/Text/Text.windows.js +3 -3
- package/Libraries/Text/TextNativeComponent.js +0 -4
- package/Libraries/Text/TextProps.js +5 -33
- package/Libraries/Text/TextProps.windows.js +5 -32
- package/Libraries/Types/CodegenTypesNamespace.d.ts +45 -0
- package/Libraries/{Blob/__mocks__/BlobModule.js → Types/CodegenTypesNamespace.js} +4 -6
- package/Libraries/Types/CoreEventTypes.d.ts +6 -1
- package/Libraries/Types/CoreEventTypes.js +1 -1
- package/Libraries/Types/CoreEventTypes.windows.js +1 -1
- package/Libraries/Utilities/Appearance.js +2 -0
- package/Libraries/Utilities/BackHandler.js +17 -0
- package/Libraries/Utilities/DeviceInfo.js +2 -0
- package/Libraries/Utilities/Dimensions.js +1 -1
- package/Libraries/Utilities/Platform.js +17 -0
- package/Libraries/Utilities/PlatformTypes.js +11 -3
- package/Libraries/Utilities/ReactNativeTestTools.js +2 -2
- package/Libraries/Utilities/codegenNativeCommands.d.ts +18 -0
- package/Libraries/Utilities/codegenNativeComponent.d.ts +26 -0
- package/Libraries/WebSocket/WebSocket.js +313 -8
- package/Libraries/vendor/core/ErrorUtils.js +28 -2
- package/Libraries/vendor/emitter/EventEmitter.js +6 -2
- package/Microsoft.ReactNative/CompositionSwitcher.idl +8 -0
- package/Microsoft.ReactNative/Fabric/AbiComponentDescriptor.cpp +0 -6
- package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.cpp +197 -1
- package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp +34 -4
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +12 -0
- package/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.cpp +36 -33
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp +81 -0
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.h +5 -0
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +148 -14
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.h +4 -0
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputEventEmitter.cpp +29 -0
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputEventEmitter.h +2 -0
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.cpp +17 -34
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +4 -0
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.h +2 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewEventEmitter.cpp +16 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewEventEmitter.h +1 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.cpp +9 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.h +1 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewTraitsInitializer.h +4 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/WindowsTextLayoutManager.cpp +34 -94
- package/Microsoft.ReactNative/Modules/SampleTurboModule.cpp +4 -0
- package/Microsoft.ReactNative/Modules/SampleTurboModule.h +3 -0
- package/Microsoft.ReactNative/TurboModulesProvider.h +1 -1
- package/Microsoft.ReactNative.Cxx/JSI/JsiApiContext.h +1 -1
- package/Microsoft.ReactNative.Cxx/JSI/LongLivedJsiValue.h +1 -1
- package/PropertySheets/Generated/PackageVersion.g.props +4 -4
- package/PropertySheets/React.Cpp.props +4 -0
- package/README.md +2 -2
- package/ReactCommon/ReactCommon.vcxproj +9 -4
- package/ReactCommon/ReactCommon.vcxproj.filters +6 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/CxxNativeModule.cpp +253 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSExecutor.cpp +5 -2
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/NativeToJsBridge.cpp +4 -8
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/TraceSection.h +184 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/NetworkIOAgent.cpp +22 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/NetworkIOAgent.h +2 -4
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModuleWithJSIBindings.cpp +27 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp +2 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/AccessibilityPrimitives.h +1 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/AccessibilityProps.cpp +308 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/DynamicEventPayload.cpp +42 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/css/CSSTokenizer.h +7 -51
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/ReactInstance.cpp +10 -5
- package/Scripts/creaternwapp.cmd +9 -3
- package/Shared/Shared.vcxitems +3 -2
- package/Shared/Shared.vcxitems.filters +2 -1
- package/codegen/NativeAnimatedModuleSpec.g.h +2 -0
- package/codegen/NativeAnimatedTurboModuleSpec.g.h +2 -0
- package/codegen/NativePerformanceSpec.g.h +14 -0
- package/codegen/NativeReactNativeFeatureFlagsSpec.g.h +151 -127
- package/codegen/NativeSampleTurboModuleSpec.g.h +14 -8
- package/codegen/react/components/rnwcore/EventEmitters.cpp +48 -48
- package/codegen/rnwcoreJSI-generated.cpp +159 -129
- package/codegen/rnwcoreJSI.h +534 -408
- package/index.js +51 -331
- package/index.windows.js +70 -352
- package/interface.js +0 -4
- package/jest/resolver.js +31 -0
- package/jest/setup.js +6 -2
- package/package.json +29 -28
- package/src/private/animated/NativeAnimatedHelper.js +21 -8
- package/src/private/animated/createAnimatedPropsHook.js +11 -16
- package/src/private/animated/createAnimatedPropsMemoHook.js +1 -2
- package/src/private/components/{SafeAreaView_INTERNAL_DO_NOT_USE.js → safeareaview/SafeAreaView_INTERNAL_DO_NOT_USE.js} +6 -6
- package/src/private/components/{HScrollViewNativeComponents.js → scrollview/HScrollViewNativeComponents.js} +8 -8
- package/src/private/components/scrollview/VScrollViewNativeComponents.js +25 -0
- package/src/private/{devmenu → devsupport/devmenu}/DevMenu.js +1 -1
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/BorderBox.js +3 -3
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/BoxInspector.js +6 -5
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/ElementBox.js +8 -6
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/ElementProperties.js +11 -10
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/Inspector.js +14 -12
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/InspectorOverlay.js +5 -4
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/InspectorPanel.js +9 -8
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/NetworkOverlay.js +10 -9
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/ReactDevToolsOverlay.js +7 -7
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/StyleInspector.js +7 -6
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/XHRInterceptor.js +2 -2
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/getInspectorDataForViewAtPoint.js +4 -4
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/resolveBoxStyle.js +1 -1
- package/src/private/{inspector → devsupport/devmenu/perfmonitor}/PerformanceOverlay.js +6 -5
- package/src/private/{specs_DEPRECATED/modules → devsupport/devmenu/specs}/NativeDevMenu.js +2 -2
- package/src/private/{debugging → devsupport/rndevtools}/ReactDevToolsSettingsManager.android.js +1 -1
- package/src/private/{debugging → devsupport/rndevtools}/ReactDevToolsSettingsManager.ios.js +1 -1
- package/src/private/{debugging → devsupport/rndevtools}/ReactDevToolsSettingsManager.windows.js +1 -1
- package/src/private/{debugging → devsupport/rndevtools}/setUpFuseboxReactDevToolsDispatcher.js +1 -1
- package/src/private/{fusebox → devsupport/rndevtools}/specs/NativeReactDevToolsRuntimeSettingsModule.js +2 -2
- package/src/private/{specs_DEPRECATED/modules → devsupport/rndevtools/specs}/NativeReactDevToolsSettingsManager.js +2 -2
- package/src/private/featureflags/ReactNativeFeatureFlags.js +82 -80
- package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +12 -1
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +17 -13
- package/src/private/renderer/errorhandling/ErrorHandlers.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeAnimatedModule.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeAnimatedTurboModule.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeSampleTurboModule.js +3 -0
- package/src/private/styles/composeStyles.js +12 -5
- package/src/private/types/HostComponent.js +1 -1
- package/src/private/types/HostInstance.js +67 -1
- package/src/private/webapis/dom/nodes/ReactNativeElement.js +2 -5
- package/src/private/webapis/dom/nodes/ReadOnlyNode.js +5 -18
- package/src/private/webapis/dom/nodes/internals/NodeInternals.js +6 -0
- package/src/private/webapis/performance/Performance.js +1 -3
- package/src/private/webapis/performance/PerformanceEntry.js +6 -1
- package/src/private/webapis/performance/internals/RawPerformanceEntry.js +3 -0
- package/src/private/webapis/performance/specs/NativePerformance.js +10 -1
- package/src/types/globals.d.ts +42 -0
- package/stubs/double-conversion/double-conversion.h +3 -1
- package/templates/cpp-app/windows/MyApp/MyApp.vcxproj +4 -0
- package/templates/cpp-lib/windows/MyLib/MyLib.vcxproj +4 -0
- package/types/index.d.ts +6 -3
- package/types/public/ReactNativeTypes.d.ts +2 -2
- package/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js +0 -38
- package/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js +0 -22
- package/Libraries/Blob/FileReader_new.js +0 -231
- package/Libraries/Blob/FileReader_old.js +0 -186
- package/Libraries/Blob/__mocks__/FileReaderModule.js +0 -20
- package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +0 -32
- package/Libraries/Core/__mocks__/ErrorUtils.js +0 -33
- package/Libraries/Core/__mocks__/NativeExceptionsManager.js +0 -19
- package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +0 -49
- package/Libraries/Events/CustomEvent.js +0 -32
- package/Libraries/Events/EventPolyfill.js +0 -239
- package/Libraries/Lists/__flowtests__/FlatList-flowtest.js +0 -118
- package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +0 -134
- package/Libraries/Network/XMLHttpRequest_new.js +0 -794
- package/Libraries/Network/XMLHttpRequest_old.js +0 -701
- package/Libraries/NewAppScreen/components/DebugInstructions.js +0 -41
- package/Libraries/NewAppScreen/components/DebugInstructions.windows.js +0 -30
- package/Libraries/NewAppScreen/components/Header.js +0 -77
- package/Libraries/NewAppScreen/components/HermesBadge.js +0 -53
- package/Libraries/NewAppScreen/components/LearnMoreLinks.js +0 -148
- package/Libraries/NewAppScreen/components/ReloadInstructions.js +0 -39
- package/Libraries/NewAppScreen/components/ReloadInstructions.windows.js +0 -31
- package/Libraries/NewAppScreen/components/logo.png +0 -0
- package/Libraries/NewAppScreen/index.js +0 -25
- package/Libraries/StyleSheet/__flowtests__/StyleSheet-flowtest.js +0 -58
- package/Libraries/Utilities/__mocks__/BackHandler.js +0 -45
- package/Libraries/Utilities/__mocks__/GlobalPerformanceLogger.js +0 -16
- package/Libraries/Utilities/__mocks__/PixelRatio.js +0 -25
- package/Libraries/WebSocket/WebSocketEvent.js +0 -30
- package/Libraries/WebSocket/WebSocket_new.js +0 -325
- package/Libraries/WebSocket/WebSocket_old.js +0 -297
- package/Libraries/WebSocket/__mocks__/event-target-shim.js +0 -27
- package/Libraries/__flowtests__/ReactNativeTypes-flowtest.js +0 -30
- package/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js +0 -81
- package/jest/__tests__/setup-test.js +0 -18
- package/src/private/components/VScrollViewNativeComponents.js +0 -25
- package/src/private/utilities/ensureInstance.js +0 -21
- package/src/private/webapis/performance/specs/__mocks__/NativePerformanceMock.js +0 -267
- package/types/modules/LaunchScreen.d.ts +0 -18
- /package/src/private/{devmenu → devsupport/devmenu}/DevMenu.d.ts +0 -0
- /package/src/private/{debugging → devsupport/rndevtools}/FuseboxSessionObserver.js +0 -0
|
@@ -19,48 +19,52 @@ struct ReactNativeFeatureFlagsSpec : winrt::Microsoft::ReactNative::TurboModuleS
|
|
|
19
19
|
static constexpr auto methods = std::tuple{
|
|
20
20
|
SyncMethod<bool() noexcept>{0, L"commonTestFlag"},
|
|
21
21
|
SyncMethod<bool() noexcept>{1, L"commonTestFlagWithoutNativeImplementation"},
|
|
22
|
-
SyncMethod<bool() noexcept>{2, L"
|
|
23
|
-
SyncMethod<bool() noexcept>{3, L"
|
|
24
|
-
SyncMethod<bool() noexcept>{4, L"
|
|
25
|
-
SyncMethod<bool() noexcept>{5, L"
|
|
26
|
-
SyncMethod<bool() noexcept>{6, L"
|
|
27
|
-
SyncMethod<bool() noexcept>{7, L"
|
|
28
|
-
SyncMethod<bool() noexcept>{8, L"
|
|
29
|
-
SyncMethod<bool() noexcept>{9, L"
|
|
30
|
-
SyncMethod<bool() noexcept>{10, L"
|
|
31
|
-
SyncMethod<bool() noexcept>{11, L"
|
|
32
|
-
SyncMethod<bool() noexcept>{12, L"
|
|
33
|
-
SyncMethod<bool() noexcept>{13, L"
|
|
34
|
-
SyncMethod<bool() noexcept>{14, L"
|
|
35
|
-
SyncMethod<bool() noexcept>{15, L"
|
|
36
|
-
SyncMethod<bool() noexcept>{16, L"
|
|
37
|
-
SyncMethod<bool() noexcept>{17, L"
|
|
38
|
-
SyncMethod<bool() noexcept>{18, L"
|
|
39
|
-
SyncMethod<bool() noexcept>{19, L"
|
|
40
|
-
SyncMethod<bool() noexcept>{20, L"
|
|
41
|
-
SyncMethod<bool() noexcept>{21, L"
|
|
42
|
-
SyncMethod<bool() noexcept>{22, L"
|
|
43
|
-
SyncMethod<bool() noexcept>{23, L"
|
|
44
|
-
SyncMethod<bool() noexcept>{24, L"
|
|
45
|
-
SyncMethod<bool() noexcept>{25, L"
|
|
46
|
-
SyncMethod<bool() noexcept>{26, L"
|
|
47
|
-
SyncMethod<bool() noexcept>{27, L"
|
|
48
|
-
SyncMethod<bool() noexcept>{28, L"
|
|
49
|
-
SyncMethod<bool() noexcept>{29, L"
|
|
50
|
-
SyncMethod<bool() noexcept>{30, L"
|
|
51
|
-
SyncMethod<bool() noexcept>{31, L"
|
|
52
|
-
SyncMethod<bool() noexcept>{32, L"
|
|
53
|
-
SyncMethod<bool() noexcept>{33, L"
|
|
54
|
-
SyncMethod<bool() noexcept>{34, L"
|
|
55
|
-
SyncMethod<bool() noexcept>{35, L"
|
|
56
|
-
SyncMethod<bool() noexcept>{36, L"
|
|
57
|
-
SyncMethod<bool() noexcept>{37, L"
|
|
58
|
-
SyncMethod<bool() noexcept>{38, L"
|
|
59
|
-
SyncMethod<bool() noexcept>{39, L"
|
|
60
|
-
SyncMethod<bool() noexcept>{40, L"
|
|
61
|
-
SyncMethod<bool() noexcept>{41, L"
|
|
62
|
-
SyncMethod<bool() noexcept>{42, L"
|
|
63
|
-
SyncMethod<bool() noexcept>{43, L"
|
|
22
|
+
SyncMethod<bool() noexcept>{2, L"animatedShouldSignalBatch"},
|
|
23
|
+
SyncMethod<bool() noexcept>{3, L"cxxNativeAnimatedEnabled"},
|
|
24
|
+
SyncMethod<bool() noexcept>{4, L"disableMainQueueSyncDispatchIOS"},
|
|
25
|
+
SyncMethod<bool() noexcept>{5, L"disableMountItemReorderingAndroid"},
|
|
26
|
+
SyncMethod<bool() noexcept>{6, L"enableAccessibilityOrder"},
|
|
27
|
+
SyncMethod<bool() noexcept>{7, L"enableAccumulatedUpdatesInRawPropsAndroid"},
|
|
28
|
+
SyncMethod<bool() noexcept>{8, L"enableBridgelessArchitecture"},
|
|
29
|
+
SyncMethod<bool() noexcept>{9, L"enableCppPropsIteratorSetter"},
|
|
30
|
+
SyncMethod<bool() noexcept>{10, L"enableCustomFocusSearchOnClippedElementsAndroid"},
|
|
31
|
+
SyncMethod<bool() noexcept>{11, L"enableDestroyShadowTreeRevisionAsync"},
|
|
32
|
+
SyncMethod<bool() noexcept>{12, L"enableDoubleMeasurementFixAndroid"},
|
|
33
|
+
SyncMethod<bool() noexcept>{13, L"enableEagerRootViewAttachment"},
|
|
34
|
+
SyncMethod<bool() noexcept>{14, L"enableFabricLogs"},
|
|
35
|
+
SyncMethod<bool() noexcept>{15, L"enableFabricRenderer"},
|
|
36
|
+
SyncMethod<bool() noexcept>{16, L"enableFixForParentTagDuringReparenting"},
|
|
37
|
+
SyncMethod<bool() noexcept>{17, L"enableFontScaleChangesUpdatingLayout"},
|
|
38
|
+
SyncMethod<bool() noexcept>{18, L"enableIOSViewClipToPaddingBox"},
|
|
39
|
+
SyncMethod<bool() noexcept>{19, L"enableJSRuntimeGCOnMemoryPressureOnIOS"},
|
|
40
|
+
SyncMethod<bool() noexcept>{20, L"enableLayoutAnimationsOnAndroid"},
|
|
41
|
+
SyncMethod<bool() noexcept>{21, L"enableLayoutAnimationsOnIOS"},
|
|
42
|
+
SyncMethod<bool() noexcept>{22, L"enableMainQueueModulesOnIOS"},
|
|
43
|
+
SyncMethod<bool() noexcept>{23, L"enableNativeCSSParsing"},
|
|
44
|
+
SyncMethod<bool() noexcept>{24, L"enableNetworkEventReporting"},
|
|
45
|
+
SyncMethod<bool() noexcept>{25, L"enableNewBackgroundAndBorderDrawables"},
|
|
46
|
+
SyncMethod<bool() noexcept>{26, L"enablePreparedTextLayout"},
|
|
47
|
+
SyncMethod<bool() noexcept>{27, L"enablePropsUpdateReconciliationAndroid"},
|
|
48
|
+
SyncMethod<bool() noexcept>{28, L"enableResourceTimingAPI"},
|
|
49
|
+
SyncMethod<bool() noexcept>{29, L"enableSynchronousStateUpdates"},
|
|
50
|
+
SyncMethod<bool() noexcept>{30, L"enableViewCulling"},
|
|
51
|
+
SyncMethod<bool() noexcept>{31, L"enableViewRecycling"},
|
|
52
|
+
SyncMethod<bool() noexcept>{32, L"enableViewRecyclingForText"},
|
|
53
|
+
SyncMethod<bool() noexcept>{33, L"enableViewRecyclingForView"},
|
|
54
|
+
SyncMethod<bool() noexcept>{34, L"fixMappingOfEventPrioritiesBetweenFabricAndReact"},
|
|
55
|
+
SyncMethod<bool() noexcept>{35, L"fuseboxEnabledRelease"},
|
|
56
|
+
SyncMethod<bool() noexcept>{36, L"fuseboxNetworkInspectionEnabled"},
|
|
57
|
+
SyncMethod<bool() noexcept>{37, L"incorporateMaxLinesDuringAndroidLayout"},
|
|
58
|
+
SyncMethod<bool() noexcept>{38, L"traceTurboModulePromiseRejectionsOnAndroid"},
|
|
59
|
+
SyncMethod<bool() noexcept>{39, L"updateRuntimeShadowNodeReferencesOnCommit"},
|
|
60
|
+
SyncMethod<bool() noexcept>{40, L"useAlwaysAvailableJSErrorHandling"},
|
|
61
|
+
SyncMethod<bool() noexcept>{41, L"useFabricInterop"},
|
|
62
|
+
SyncMethod<bool() noexcept>{42, L"useNativeViewConfigsInBridgelessMode"},
|
|
63
|
+
SyncMethod<bool() noexcept>{43, L"useOptimizedEventBatchingOnAndroid"},
|
|
64
|
+
SyncMethod<bool() noexcept>{44, L"useRawPropsJsiValue"},
|
|
65
|
+
SyncMethod<bool() noexcept>{45, L"useShadowNodeStateOnClone"},
|
|
66
|
+
SyncMethod<bool() noexcept>{46, L"useTurboModuleInterop"},
|
|
67
|
+
SyncMethod<bool() noexcept>{47, L"useTurboModules"},
|
|
64
68
|
};
|
|
65
69
|
|
|
66
70
|
template <class TModule>
|
|
@@ -79,211 +83,231 @@ struct ReactNativeFeatureFlagsSpec : winrt::Microsoft::ReactNative::TurboModuleS
|
|
|
79
83
|
" REACT_SYNC_METHOD(commonTestFlagWithoutNativeImplementation) static bool commonTestFlagWithoutNativeImplementation() noexcept { /* implementation */ }\n");
|
|
80
84
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
81
85
|
2,
|
|
86
|
+
"animatedShouldSignalBatch",
|
|
87
|
+
" REACT_SYNC_METHOD(animatedShouldSignalBatch) bool animatedShouldSignalBatch() noexcept { /* implementation */ }\n"
|
|
88
|
+
" REACT_SYNC_METHOD(animatedShouldSignalBatch) static bool animatedShouldSignalBatch() noexcept { /* implementation */ }\n");
|
|
89
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
90
|
+
3,
|
|
91
|
+
"cxxNativeAnimatedEnabled",
|
|
92
|
+
" REACT_SYNC_METHOD(cxxNativeAnimatedEnabled) bool cxxNativeAnimatedEnabled() noexcept { /* implementation */ }\n"
|
|
93
|
+
" REACT_SYNC_METHOD(cxxNativeAnimatedEnabled) static bool cxxNativeAnimatedEnabled() noexcept { /* implementation */ }\n");
|
|
94
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
95
|
+
4,
|
|
96
|
+
"disableMainQueueSyncDispatchIOS",
|
|
97
|
+
" REACT_SYNC_METHOD(disableMainQueueSyncDispatchIOS) bool disableMainQueueSyncDispatchIOS() noexcept { /* implementation */ }\n"
|
|
98
|
+
" REACT_SYNC_METHOD(disableMainQueueSyncDispatchIOS) static bool disableMainQueueSyncDispatchIOS() noexcept { /* implementation */ }\n");
|
|
99
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
100
|
+
5,
|
|
82
101
|
"disableMountItemReorderingAndroid",
|
|
83
102
|
" REACT_SYNC_METHOD(disableMountItemReorderingAndroid) bool disableMountItemReorderingAndroid() noexcept { /* implementation */ }\n"
|
|
84
103
|
" REACT_SYNC_METHOD(disableMountItemReorderingAndroid) static bool disableMountItemReorderingAndroid() noexcept { /* implementation */ }\n");
|
|
85
104
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
86
|
-
|
|
105
|
+
6,
|
|
106
|
+
"enableAccessibilityOrder",
|
|
107
|
+
" REACT_SYNC_METHOD(enableAccessibilityOrder) bool enableAccessibilityOrder() noexcept { /* implementation */ }\n"
|
|
108
|
+
" REACT_SYNC_METHOD(enableAccessibilityOrder) static bool enableAccessibilityOrder() noexcept { /* implementation */ }\n");
|
|
109
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
110
|
+
7,
|
|
87
111
|
"enableAccumulatedUpdatesInRawPropsAndroid",
|
|
88
112
|
" REACT_SYNC_METHOD(enableAccumulatedUpdatesInRawPropsAndroid) bool enableAccumulatedUpdatesInRawPropsAndroid() noexcept { /* implementation */ }\n"
|
|
89
113
|
" REACT_SYNC_METHOD(enableAccumulatedUpdatesInRawPropsAndroid) static bool enableAccumulatedUpdatesInRawPropsAndroid() noexcept { /* implementation */ }\n");
|
|
90
114
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
91
|
-
|
|
115
|
+
8,
|
|
92
116
|
"enableBridgelessArchitecture",
|
|
93
117
|
" REACT_SYNC_METHOD(enableBridgelessArchitecture) bool enableBridgelessArchitecture() noexcept { /* implementation */ }\n"
|
|
94
118
|
" REACT_SYNC_METHOD(enableBridgelessArchitecture) static bool enableBridgelessArchitecture() noexcept { /* implementation */ }\n");
|
|
95
119
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
96
|
-
|
|
120
|
+
9,
|
|
97
121
|
"enableCppPropsIteratorSetter",
|
|
98
122
|
" REACT_SYNC_METHOD(enableCppPropsIteratorSetter) bool enableCppPropsIteratorSetter() noexcept { /* implementation */ }\n"
|
|
99
123
|
" REACT_SYNC_METHOD(enableCppPropsIteratorSetter) static bool enableCppPropsIteratorSetter() noexcept { /* implementation */ }\n");
|
|
100
124
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
101
|
-
|
|
125
|
+
10,
|
|
126
|
+
"enableCustomFocusSearchOnClippedElementsAndroid",
|
|
127
|
+
" REACT_SYNC_METHOD(enableCustomFocusSearchOnClippedElementsAndroid) bool enableCustomFocusSearchOnClippedElementsAndroid() noexcept { /* implementation */ }\n"
|
|
128
|
+
" REACT_SYNC_METHOD(enableCustomFocusSearchOnClippedElementsAndroid) static bool enableCustomFocusSearchOnClippedElementsAndroid() noexcept { /* implementation */ }\n");
|
|
129
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
130
|
+
11,
|
|
131
|
+
"enableDestroyShadowTreeRevisionAsync",
|
|
132
|
+
" REACT_SYNC_METHOD(enableDestroyShadowTreeRevisionAsync) bool enableDestroyShadowTreeRevisionAsync() noexcept { /* implementation */ }\n"
|
|
133
|
+
" REACT_SYNC_METHOD(enableDestroyShadowTreeRevisionAsync) static bool enableDestroyShadowTreeRevisionAsync() noexcept { /* implementation */ }\n");
|
|
134
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
135
|
+
12,
|
|
136
|
+
"enableDoubleMeasurementFixAndroid",
|
|
137
|
+
" REACT_SYNC_METHOD(enableDoubleMeasurementFixAndroid) bool enableDoubleMeasurementFixAndroid() noexcept { /* implementation */ }\n"
|
|
138
|
+
" REACT_SYNC_METHOD(enableDoubleMeasurementFixAndroid) static bool enableDoubleMeasurementFixAndroid() noexcept { /* implementation */ }\n");
|
|
139
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
140
|
+
13,
|
|
102
141
|
"enableEagerRootViewAttachment",
|
|
103
142
|
" REACT_SYNC_METHOD(enableEagerRootViewAttachment) bool enableEagerRootViewAttachment() noexcept { /* implementation */ }\n"
|
|
104
143
|
" REACT_SYNC_METHOD(enableEagerRootViewAttachment) static bool enableEagerRootViewAttachment() noexcept { /* implementation */ }\n");
|
|
105
144
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
106
|
-
|
|
145
|
+
14,
|
|
107
146
|
"enableFabricLogs",
|
|
108
147
|
" REACT_SYNC_METHOD(enableFabricLogs) bool enableFabricLogs() noexcept { /* implementation */ }\n"
|
|
109
148
|
" REACT_SYNC_METHOD(enableFabricLogs) static bool enableFabricLogs() noexcept { /* implementation */ }\n");
|
|
110
149
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
111
|
-
|
|
150
|
+
15,
|
|
112
151
|
"enableFabricRenderer",
|
|
113
152
|
" REACT_SYNC_METHOD(enableFabricRenderer) bool enableFabricRenderer() noexcept { /* implementation */ }\n"
|
|
114
153
|
" REACT_SYNC_METHOD(enableFabricRenderer) static bool enableFabricRenderer() noexcept { /* implementation */ }\n");
|
|
115
154
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
116
|
-
|
|
155
|
+
16,
|
|
156
|
+
"enableFixForParentTagDuringReparenting",
|
|
157
|
+
" REACT_SYNC_METHOD(enableFixForParentTagDuringReparenting) bool enableFixForParentTagDuringReparenting() noexcept { /* implementation */ }\n"
|
|
158
|
+
" REACT_SYNC_METHOD(enableFixForParentTagDuringReparenting) static bool enableFixForParentTagDuringReparenting() noexcept { /* implementation */ }\n");
|
|
159
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
160
|
+
17,
|
|
161
|
+
"enableFontScaleChangesUpdatingLayout",
|
|
162
|
+
" REACT_SYNC_METHOD(enableFontScaleChangesUpdatingLayout) bool enableFontScaleChangesUpdatingLayout() noexcept { /* implementation */ }\n"
|
|
163
|
+
" REACT_SYNC_METHOD(enableFontScaleChangesUpdatingLayout) static bool enableFontScaleChangesUpdatingLayout() noexcept { /* implementation */ }\n");
|
|
164
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
165
|
+
18,
|
|
117
166
|
"enableIOSViewClipToPaddingBox",
|
|
118
167
|
" REACT_SYNC_METHOD(enableIOSViewClipToPaddingBox) bool enableIOSViewClipToPaddingBox() noexcept { /* implementation */ }\n"
|
|
119
168
|
" REACT_SYNC_METHOD(enableIOSViewClipToPaddingBox) static bool enableIOSViewClipToPaddingBox() noexcept { /* implementation */ }\n");
|
|
120
169
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
121
|
-
|
|
122
|
-
"enableImagePrefetchingAndroid",
|
|
123
|
-
" REACT_SYNC_METHOD(enableImagePrefetchingAndroid) bool enableImagePrefetchingAndroid() noexcept { /* implementation */ }\n"
|
|
124
|
-
" REACT_SYNC_METHOD(enableImagePrefetchingAndroid) static bool enableImagePrefetchingAndroid() noexcept { /* implementation */ }\n");
|
|
125
|
-
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
126
|
-
11,
|
|
170
|
+
19,
|
|
127
171
|
"enableJSRuntimeGCOnMemoryPressureOnIOS",
|
|
128
172
|
" REACT_SYNC_METHOD(enableJSRuntimeGCOnMemoryPressureOnIOS) bool enableJSRuntimeGCOnMemoryPressureOnIOS() noexcept { /* implementation */ }\n"
|
|
129
173
|
" REACT_SYNC_METHOD(enableJSRuntimeGCOnMemoryPressureOnIOS) static bool enableJSRuntimeGCOnMemoryPressureOnIOS() noexcept { /* implementation */ }\n");
|
|
130
174
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
131
|
-
|
|
175
|
+
20,
|
|
132
176
|
"enableLayoutAnimationsOnAndroid",
|
|
133
177
|
" REACT_SYNC_METHOD(enableLayoutAnimationsOnAndroid) bool enableLayoutAnimationsOnAndroid() noexcept { /* implementation */ }\n"
|
|
134
178
|
" REACT_SYNC_METHOD(enableLayoutAnimationsOnAndroid) static bool enableLayoutAnimationsOnAndroid() noexcept { /* implementation */ }\n");
|
|
135
179
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
136
|
-
|
|
180
|
+
21,
|
|
137
181
|
"enableLayoutAnimationsOnIOS",
|
|
138
182
|
" REACT_SYNC_METHOD(enableLayoutAnimationsOnIOS) bool enableLayoutAnimationsOnIOS() noexcept { /* implementation */ }\n"
|
|
139
183
|
" REACT_SYNC_METHOD(enableLayoutAnimationsOnIOS) static bool enableLayoutAnimationsOnIOS() noexcept { /* implementation */ }\n");
|
|
140
184
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
141
|
-
|
|
142
|
-
"
|
|
143
|
-
" REACT_SYNC_METHOD(
|
|
144
|
-
" REACT_SYNC_METHOD(
|
|
185
|
+
22,
|
|
186
|
+
"enableMainQueueModulesOnIOS",
|
|
187
|
+
" REACT_SYNC_METHOD(enableMainQueueModulesOnIOS) bool enableMainQueueModulesOnIOS() noexcept { /* implementation */ }\n"
|
|
188
|
+
" REACT_SYNC_METHOD(enableMainQueueModulesOnIOS) static bool enableMainQueueModulesOnIOS() noexcept { /* implementation */ }\n");
|
|
145
189
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
146
|
-
|
|
190
|
+
23,
|
|
147
191
|
"enableNativeCSSParsing",
|
|
148
192
|
" REACT_SYNC_METHOD(enableNativeCSSParsing) bool enableNativeCSSParsing() noexcept { /* implementation */ }\n"
|
|
149
193
|
" REACT_SYNC_METHOD(enableNativeCSSParsing) static bool enableNativeCSSParsing() noexcept { /* implementation */ }\n");
|
|
150
194
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
151
|
-
|
|
195
|
+
24,
|
|
196
|
+
"enableNetworkEventReporting",
|
|
197
|
+
" REACT_SYNC_METHOD(enableNetworkEventReporting) bool enableNetworkEventReporting() noexcept { /* implementation */ }\n"
|
|
198
|
+
" REACT_SYNC_METHOD(enableNetworkEventReporting) static bool enableNetworkEventReporting() noexcept { /* implementation */ }\n");
|
|
199
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
200
|
+
25,
|
|
152
201
|
"enableNewBackgroundAndBorderDrawables",
|
|
153
202
|
" REACT_SYNC_METHOD(enableNewBackgroundAndBorderDrawables) bool enableNewBackgroundAndBorderDrawables() noexcept { /* implementation */ }\n"
|
|
154
203
|
" REACT_SYNC_METHOD(enableNewBackgroundAndBorderDrawables) static bool enableNewBackgroundAndBorderDrawables() noexcept { /* implementation */ }\n");
|
|
155
204
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
156
|
-
|
|
157
|
-
"
|
|
158
|
-
" REACT_SYNC_METHOD(
|
|
159
|
-
" REACT_SYNC_METHOD(
|
|
205
|
+
26,
|
|
206
|
+
"enablePreparedTextLayout",
|
|
207
|
+
" REACT_SYNC_METHOD(enablePreparedTextLayout) bool enablePreparedTextLayout() noexcept { /* implementation */ }\n"
|
|
208
|
+
" REACT_SYNC_METHOD(enablePreparedTextLayout) static bool enablePreparedTextLayout() noexcept { /* implementation */ }\n");
|
|
160
209
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
161
|
-
|
|
210
|
+
27,
|
|
162
211
|
"enablePropsUpdateReconciliationAndroid",
|
|
163
212
|
" REACT_SYNC_METHOD(enablePropsUpdateReconciliationAndroid) bool enablePropsUpdateReconciliationAndroid() noexcept { /* implementation */ }\n"
|
|
164
213
|
" REACT_SYNC_METHOD(enablePropsUpdateReconciliationAndroid) static bool enablePropsUpdateReconciliationAndroid() noexcept { /* implementation */ }\n");
|
|
165
214
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
166
|
-
|
|
167
|
-
"
|
|
168
|
-
" REACT_SYNC_METHOD(
|
|
169
|
-
" REACT_SYNC_METHOD(
|
|
215
|
+
28,
|
|
216
|
+
"enableResourceTimingAPI",
|
|
217
|
+
" REACT_SYNC_METHOD(enableResourceTimingAPI) bool enableResourceTimingAPI() noexcept { /* implementation */ }\n"
|
|
218
|
+
" REACT_SYNC_METHOD(enableResourceTimingAPI) static bool enableResourceTimingAPI() noexcept { /* implementation */ }\n");
|
|
170
219
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
171
|
-
|
|
220
|
+
29,
|
|
172
221
|
"enableSynchronousStateUpdates",
|
|
173
222
|
" REACT_SYNC_METHOD(enableSynchronousStateUpdates) bool enableSynchronousStateUpdates() noexcept { /* implementation */ }\n"
|
|
174
223
|
" REACT_SYNC_METHOD(enableSynchronousStateUpdates) static bool enableSynchronousStateUpdates() noexcept { /* implementation */ }\n");
|
|
175
224
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
176
|
-
|
|
177
|
-
"enableUIConsistency",
|
|
178
|
-
" REACT_SYNC_METHOD(enableUIConsistency) bool enableUIConsistency() noexcept { /* implementation */ }\n"
|
|
179
|
-
" REACT_SYNC_METHOD(enableUIConsistency) static bool enableUIConsistency() noexcept { /* implementation */ }\n");
|
|
180
|
-
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
181
|
-
22,
|
|
225
|
+
30,
|
|
182
226
|
"enableViewCulling",
|
|
183
227
|
" REACT_SYNC_METHOD(enableViewCulling) bool enableViewCulling() noexcept { /* implementation */ }\n"
|
|
184
228
|
" REACT_SYNC_METHOD(enableViewCulling) static bool enableViewCulling() noexcept { /* implementation */ }\n");
|
|
185
229
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
186
|
-
|
|
230
|
+
31,
|
|
187
231
|
"enableViewRecycling",
|
|
188
232
|
" REACT_SYNC_METHOD(enableViewRecycling) bool enableViewRecycling() noexcept { /* implementation */ }\n"
|
|
189
233
|
" REACT_SYNC_METHOD(enableViewRecycling) static bool enableViewRecycling() noexcept { /* implementation */ }\n");
|
|
190
234
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
191
|
-
|
|
235
|
+
32,
|
|
192
236
|
"enableViewRecyclingForText",
|
|
193
237
|
" REACT_SYNC_METHOD(enableViewRecyclingForText) bool enableViewRecyclingForText() noexcept { /* implementation */ }\n"
|
|
194
238
|
" REACT_SYNC_METHOD(enableViewRecyclingForText) static bool enableViewRecyclingForText() noexcept { /* implementation */ }\n");
|
|
195
239
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
196
|
-
|
|
240
|
+
33,
|
|
197
241
|
"enableViewRecyclingForView",
|
|
198
242
|
" REACT_SYNC_METHOD(enableViewRecyclingForView) bool enableViewRecyclingForView() noexcept { /* implementation */ }\n"
|
|
199
243
|
" REACT_SYNC_METHOD(enableViewRecyclingForView) static bool enableViewRecyclingForView() noexcept { /* implementation */ }\n");
|
|
200
244
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
201
|
-
|
|
202
|
-
"excludeYogaFromRawProps",
|
|
203
|
-
" REACT_SYNC_METHOD(excludeYogaFromRawProps) bool excludeYogaFromRawProps() noexcept { /* implementation */ }\n"
|
|
204
|
-
" REACT_SYNC_METHOD(excludeYogaFromRawProps) static bool excludeYogaFromRawProps() noexcept { /* implementation */ }\n");
|
|
205
|
-
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
206
|
-
27,
|
|
207
|
-
"fixDifferentiatorEmittingUpdatesWithWrongParentTag",
|
|
208
|
-
" REACT_SYNC_METHOD(fixDifferentiatorEmittingUpdatesWithWrongParentTag) bool fixDifferentiatorEmittingUpdatesWithWrongParentTag() noexcept { /* implementation */ }\n"
|
|
209
|
-
" REACT_SYNC_METHOD(fixDifferentiatorEmittingUpdatesWithWrongParentTag) static bool fixDifferentiatorEmittingUpdatesWithWrongParentTag() noexcept { /* implementation */ }\n");
|
|
210
|
-
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
211
|
-
28,
|
|
245
|
+
34,
|
|
212
246
|
"fixMappingOfEventPrioritiesBetweenFabricAndReact",
|
|
213
247
|
" REACT_SYNC_METHOD(fixMappingOfEventPrioritiesBetweenFabricAndReact) bool fixMappingOfEventPrioritiesBetweenFabricAndReact() noexcept { /* implementation */ }\n"
|
|
214
248
|
" REACT_SYNC_METHOD(fixMappingOfEventPrioritiesBetweenFabricAndReact) static bool fixMappingOfEventPrioritiesBetweenFabricAndReact() noexcept { /* implementation */ }\n");
|
|
215
249
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
216
|
-
|
|
217
|
-
"fixMountingCoordinatorReportedPendingTransactionsOnAndroid",
|
|
218
|
-
" REACT_SYNC_METHOD(fixMountingCoordinatorReportedPendingTransactionsOnAndroid) bool fixMountingCoordinatorReportedPendingTransactionsOnAndroid() noexcept { /* implementation */ }\n"
|
|
219
|
-
" REACT_SYNC_METHOD(fixMountingCoordinatorReportedPendingTransactionsOnAndroid) static bool fixMountingCoordinatorReportedPendingTransactionsOnAndroid() noexcept { /* implementation */ }\n");
|
|
220
|
-
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
221
|
-
30,
|
|
250
|
+
35,
|
|
222
251
|
"fuseboxEnabledRelease",
|
|
223
252
|
" REACT_SYNC_METHOD(fuseboxEnabledRelease) bool fuseboxEnabledRelease() noexcept { /* implementation */ }\n"
|
|
224
253
|
" REACT_SYNC_METHOD(fuseboxEnabledRelease) static bool fuseboxEnabledRelease() noexcept { /* implementation */ }\n");
|
|
225
254
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
226
|
-
|
|
255
|
+
36,
|
|
227
256
|
"fuseboxNetworkInspectionEnabled",
|
|
228
257
|
" REACT_SYNC_METHOD(fuseboxNetworkInspectionEnabled) bool fuseboxNetworkInspectionEnabled() noexcept { /* implementation */ }\n"
|
|
229
258
|
" REACT_SYNC_METHOD(fuseboxNetworkInspectionEnabled) static bool fuseboxNetworkInspectionEnabled() noexcept { /* implementation */ }\n");
|
|
230
259
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
231
|
-
|
|
232
|
-
"
|
|
233
|
-
" REACT_SYNC_METHOD(
|
|
234
|
-
" REACT_SYNC_METHOD(
|
|
235
|
-
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
236
|
-
33,
|
|
237
|
-
"removeTurboModuleManagerDelegateMutex",
|
|
238
|
-
" REACT_SYNC_METHOD(removeTurboModuleManagerDelegateMutex) bool removeTurboModuleManagerDelegateMutex() noexcept { /* implementation */ }\n"
|
|
239
|
-
" REACT_SYNC_METHOD(removeTurboModuleManagerDelegateMutex) static bool removeTurboModuleManagerDelegateMutex() noexcept { /* implementation */ }\n");
|
|
240
|
-
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
241
|
-
34,
|
|
242
|
-
"throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS",
|
|
243
|
-
" REACT_SYNC_METHOD(throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS) bool throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS() noexcept { /* implementation */ }\n"
|
|
244
|
-
" REACT_SYNC_METHOD(throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS) static bool throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS() noexcept { /* implementation */ }\n");
|
|
260
|
+
37,
|
|
261
|
+
"incorporateMaxLinesDuringAndroidLayout",
|
|
262
|
+
" REACT_SYNC_METHOD(incorporateMaxLinesDuringAndroidLayout) bool incorporateMaxLinesDuringAndroidLayout() noexcept { /* implementation */ }\n"
|
|
263
|
+
" REACT_SYNC_METHOD(incorporateMaxLinesDuringAndroidLayout) static bool incorporateMaxLinesDuringAndroidLayout() noexcept { /* implementation */ }\n");
|
|
245
264
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
246
|
-
|
|
265
|
+
38,
|
|
247
266
|
"traceTurboModulePromiseRejectionsOnAndroid",
|
|
248
267
|
" REACT_SYNC_METHOD(traceTurboModulePromiseRejectionsOnAndroid) bool traceTurboModulePromiseRejectionsOnAndroid() noexcept { /* implementation */ }\n"
|
|
249
268
|
" REACT_SYNC_METHOD(traceTurboModulePromiseRejectionsOnAndroid) static bool traceTurboModulePromiseRejectionsOnAndroid() noexcept { /* implementation */ }\n");
|
|
250
269
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
251
|
-
|
|
270
|
+
39,
|
|
271
|
+
"updateRuntimeShadowNodeReferencesOnCommit",
|
|
272
|
+
" REACT_SYNC_METHOD(updateRuntimeShadowNodeReferencesOnCommit) bool updateRuntimeShadowNodeReferencesOnCommit() noexcept { /* implementation */ }\n"
|
|
273
|
+
" REACT_SYNC_METHOD(updateRuntimeShadowNodeReferencesOnCommit) static bool updateRuntimeShadowNodeReferencesOnCommit() noexcept { /* implementation */ }\n");
|
|
274
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
275
|
+
40,
|
|
252
276
|
"useAlwaysAvailableJSErrorHandling",
|
|
253
277
|
" REACT_SYNC_METHOD(useAlwaysAvailableJSErrorHandling) bool useAlwaysAvailableJSErrorHandling() noexcept { /* implementation */ }\n"
|
|
254
278
|
" REACT_SYNC_METHOD(useAlwaysAvailableJSErrorHandling) static bool useAlwaysAvailableJSErrorHandling() noexcept { /* implementation */ }\n");
|
|
255
279
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
256
|
-
|
|
257
|
-
"useEditTextStockAndroidFocusBehavior",
|
|
258
|
-
" REACT_SYNC_METHOD(useEditTextStockAndroidFocusBehavior) bool useEditTextStockAndroidFocusBehavior() noexcept { /* implementation */ }\n"
|
|
259
|
-
" REACT_SYNC_METHOD(useEditTextStockAndroidFocusBehavior) static bool useEditTextStockAndroidFocusBehavior() noexcept { /* implementation */ }\n");
|
|
260
|
-
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
261
|
-
38,
|
|
280
|
+
41,
|
|
262
281
|
"useFabricInterop",
|
|
263
282
|
" REACT_SYNC_METHOD(useFabricInterop) bool useFabricInterop() noexcept { /* implementation */ }\n"
|
|
264
283
|
" REACT_SYNC_METHOD(useFabricInterop) static bool useFabricInterop() noexcept { /* implementation */ }\n");
|
|
265
284
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
266
|
-
|
|
285
|
+
42,
|
|
267
286
|
"useNativeViewConfigsInBridgelessMode",
|
|
268
287
|
" REACT_SYNC_METHOD(useNativeViewConfigsInBridgelessMode) bool useNativeViewConfigsInBridgelessMode() noexcept { /* implementation */ }\n"
|
|
269
288
|
" REACT_SYNC_METHOD(useNativeViewConfigsInBridgelessMode) static bool useNativeViewConfigsInBridgelessMode() noexcept { /* implementation */ }\n");
|
|
270
289
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
271
|
-
|
|
290
|
+
43,
|
|
272
291
|
"useOptimizedEventBatchingOnAndroid",
|
|
273
292
|
" REACT_SYNC_METHOD(useOptimizedEventBatchingOnAndroid) bool useOptimizedEventBatchingOnAndroid() noexcept { /* implementation */ }\n"
|
|
274
293
|
" REACT_SYNC_METHOD(useOptimizedEventBatchingOnAndroid) static bool useOptimizedEventBatchingOnAndroid() noexcept { /* implementation */ }\n");
|
|
275
294
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
276
|
-
|
|
295
|
+
44,
|
|
277
296
|
"useRawPropsJsiValue",
|
|
278
297
|
" REACT_SYNC_METHOD(useRawPropsJsiValue) bool useRawPropsJsiValue() noexcept { /* implementation */ }\n"
|
|
279
298
|
" REACT_SYNC_METHOD(useRawPropsJsiValue) static bool useRawPropsJsiValue() noexcept { /* implementation */ }\n");
|
|
280
299
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
281
|
-
|
|
300
|
+
45,
|
|
301
|
+
"useShadowNodeStateOnClone",
|
|
302
|
+
" REACT_SYNC_METHOD(useShadowNodeStateOnClone) bool useShadowNodeStateOnClone() noexcept { /* implementation */ }\n"
|
|
303
|
+
" REACT_SYNC_METHOD(useShadowNodeStateOnClone) static bool useShadowNodeStateOnClone() noexcept { /* implementation */ }\n");
|
|
304
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
305
|
+
46,
|
|
282
306
|
"useTurboModuleInterop",
|
|
283
307
|
" REACT_SYNC_METHOD(useTurboModuleInterop) bool useTurboModuleInterop() noexcept { /* implementation */ }\n"
|
|
284
308
|
" REACT_SYNC_METHOD(useTurboModuleInterop) static bool useTurboModuleInterop() noexcept { /* implementation */ }\n");
|
|
285
309
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
286
|
-
|
|
310
|
+
47,
|
|
287
311
|
"useTurboModules",
|
|
288
312
|
" REACT_SYNC_METHOD(useTurboModules) bool useTurboModules() noexcept { /* implementation */ }\n"
|
|
289
313
|
" REACT_SYNC_METHOD(useTurboModules) static bool useTurboModules() noexcept { /* implementation */ }\n");
|
|
@@ -68,10 +68,11 @@ struct SampleTurboModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
68
68
|
Method<void() noexcept>{15, L"voidFuncAssert"},
|
|
69
69
|
SyncMethod<::React::JSValue(::React::JSValue) noexcept>{16, L"getObjectAssert"},
|
|
70
70
|
Method<void(Promise<void>) noexcept>{17, L"promiseAssert"},
|
|
71
|
-
|
|
72
|
-
EventEmitter<void(
|
|
73
|
-
EventEmitter<void(
|
|
74
|
-
EventEmitter<void(
|
|
71
|
+
Method<void(Promise<void>) noexcept>{18, L"getImageUrl"},
|
|
72
|
+
EventEmitter<void(void)>{19, L"onPress"},
|
|
73
|
+
EventEmitter<void(std::string)>{20, L"onClick"},
|
|
74
|
+
EventEmitter<void(SampleTurboModuleSpec_ObjectStruct)>{21, L"onChange"},
|
|
75
|
+
EventEmitter<void(std::vector<SampleTurboModuleSpec_ObjectStruct>)>{22, L"onSubmit"},
|
|
75
76
|
};
|
|
76
77
|
|
|
77
78
|
template <class TModule>
|
|
@@ -175,20 +176,25 @@ struct SampleTurboModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
175
176
|
"promiseAssert",
|
|
176
177
|
" REACT_METHOD(promiseAssert) void promiseAssert(::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n"
|
|
177
178
|
" REACT_METHOD(promiseAssert) static void promiseAssert(::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n");
|
|
178
|
-
|
|
179
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
179
180
|
18,
|
|
181
|
+
"getImageUrl",
|
|
182
|
+
" REACT_METHOD(getImageUrl) void getImageUrl(::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n"
|
|
183
|
+
" REACT_METHOD(getImageUrl) static void getImageUrl(::React::ReactPromise<void> &&result) noexcept { /* implementation */ }\n");
|
|
184
|
+
REACT_SHOW_EVENTEMITTER_SPEC_ERRORS(
|
|
185
|
+
19,
|
|
180
186
|
"onPress",
|
|
181
187
|
" REACT_EVENT(onPress) std::function<void(void)> onPress;\n");
|
|
182
188
|
REACT_SHOW_EVENTEMITTER_SPEC_ERRORS(
|
|
183
|
-
|
|
189
|
+
20,
|
|
184
190
|
"onClick",
|
|
185
191
|
" REACT_EVENT(onClick) std::function<void(std::string)> onClick;\n");
|
|
186
192
|
REACT_SHOW_EVENTEMITTER_SPEC_ERRORS(
|
|
187
|
-
|
|
193
|
+
21,
|
|
188
194
|
"onChange",
|
|
189
195
|
" REACT_EVENT(onChange) std::function<void(SampleTurboModuleSpec_ObjectStruct)> onChange;\n");
|
|
190
196
|
REACT_SHOW_EVENTEMITTER_SPEC_ERRORS(
|
|
191
|
-
|
|
197
|
+
22,
|
|
192
198
|
"onSubmit",
|
|
193
199
|
" REACT_EVENT(onSubmit) std::function<void(std::vector<SampleTurboModuleSpec_ObjectStruct>)> onSubmit;\n");
|
|
194
200
|
}
|
|
@@ -14,117 +14,117 @@
|
|
|
14
14
|
namespace facebook::react {
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
void AndroidDrawerLayoutEventEmitter::onDrawerSlide(OnDrawerSlide
|
|
18
|
-
dispatchEvent("drawerSlide", [
|
|
19
|
-
auto
|
|
20
|
-
|
|
21
|
-
return
|
|
17
|
+
void AndroidDrawerLayoutEventEmitter::onDrawerSlide(OnDrawerSlide event) const {
|
|
18
|
+
dispatchEvent("drawerSlide", [event=std::move(event)](jsi::Runtime &runtime) {
|
|
19
|
+
auto payload = jsi::Object(runtime);
|
|
20
|
+
payload.setProperty(runtime, "offset", event.offset);
|
|
21
|
+
return payload;
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
void AndroidDrawerLayoutEventEmitter::onDrawerStateChanged(OnDrawerStateChanged
|
|
27
|
-
dispatchEvent("drawerStateChanged", [
|
|
28
|
-
auto
|
|
29
|
-
|
|
30
|
-
return
|
|
26
|
+
void AndroidDrawerLayoutEventEmitter::onDrawerStateChanged(OnDrawerStateChanged event) const {
|
|
27
|
+
dispatchEvent("drawerStateChanged", [event=std::move(event)](jsi::Runtime &runtime) {
|
|
28
|
+
auto payload = jsi::Object(runtime);
|
|
29
|
+
payload.setProperty(runtime, "drawerState", event.drawerState);
|
|
30
|
+
return payload;
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
void AndroidDrawerLayoutEventEmitter::onDrawerOpen(OnDrawerOpen
|
|
35
|
+
void AndroidDrawerLayoutEventEmitter::onDrawerOpen(OnDrawerOpen event) const {
|
|
36
36
|
dispatchEvent("drawerOpen", [](jsi::Runtime &runtime) {
|
|
37
|
-
auto
|
|
37
|
+
auto payload = jsi::Object(runtime);
|
|
38
38
|
|
|
39
|
-
return
|
|
39
|
+
return payload;
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
void AndroidDrawerLayoutEventEmitter::onDrawerClose(OnDrawerClose
|
|
44
|
+
void AndroidDrawerLayoutEventEmitter::onDrawerClose(OnDrawerClose event) const {
|
|
45
45
|
dispatchEvent("drawerClose", [](jsi::Runtime &runtime) {
|
|
46
|
-
auto
|
|
46
|
+
auto payload = jsi::Object(runtime);
|
|
47
47
|
|
|
48
|
-
return
|
|
48
|
+
return payload;
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
void AndroidSwipeRefreshLayoutEventEmitter::onRefresh(OnRefresh
|
|
54
|
+
void AndroidSwipeRefreshLayoutEventEmitter::onRefresh(OnRefresh event) const {
|
|
55
55
|
dispatchEvent("refresh", [](jsi::Runtime &runtime) {
|
|
56
|
-
auto
|
|
56
|
+
auto payload = jsi::Object(runtime);
|
|
57
57
|
|
|
58
|
-
return
|
|
58
|
+
return payload;
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
void AndroidSwitchEventEmitter::onChange(OnChange
|
|
64
|
-
dispatchEvent("change", [
|
|
65
|
-
auto
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
return
|
|
63
|
+
void AndroidSwitchEventEmitter::onChange(OnChange event) const {
|
|
64
|
+
dispatchEvent("change", [event=std::move(event)](jsi::Runtime &runtime) {
|
|
65
|
+
auto payload = jsi::Object(runtime);
|
|
66
|
+
payload.setProperty(runtime, "value", event.value);
|
|
67
|
+
payload.setProperty(runtime, "target", event.target);
|
|
68
|
+
return payload;
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
void PullToRefreshViewEventEmitter::onRefresh(OnRefresh
|
|
75
|
+
void PullToRefreshViewEventEmitter::onRefresh(OnRefresh event) const {
|
|
76
76
|
dispatchEvent("refresh", [](jsi::Runtime &runtime) {
|
|
77
|
-
auto
|
|
77
|
+
auto payload = jsi::Object(runtime);
|
|
78
78
|
|
|
79
|
-
return
|
|
79
|
+
return payload;
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
void ModalHostViewEventEmitter::onRequestClose(OnRequestClose
|
|
85
|
+
void ModalHostViewEventEmitter::onRequestClose(OnRequestClose event) const {
|
|
86
86
|
dispatchEvent("requestClose", [](jsi::Runtime &runtime) {
|
|
87
|
-
auto
|
|
87
|
+
auto payload = jsi::Object(runtime);
|
|
88
88
|
|
|
89
|
-
return
|
|
89
|
+
return payload;
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
void ModalHostViewEventEmitter::onShow(OnShow
|
|
94
|
+
void ModalHostViewEventEmitter::onShow(OnShow event) const {
|
|
95
95
|
dispatchEvent("show", [](jsi::Runtime &runtime) {
|
|
96
|
-
auto
|
|
96
|
+
auto payload = jsi::Object(runtime);
|
|
97
97
|
|
|
98
|
-
return
|
|
98
|
+
return payload;
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
|
|
103
|
-
void ModalHostViewEventEmitter::onDismiss(OnDismiss
|
|
103
|
+
void ModalHostViewEventEmitter::onDismiss(OnDismiss event) const {
|
|
104
104
|
dispatchEvent("dismiss", [](jsi::Runtime &runtime) {
|
|
105
|
-
auto
|
|
105
|
+
auto payload = jsi::Object(runtime);
|
|
106
106
|
|
|
107
|
-
return
|
|
107
|
+
return payload;
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
|
|
112
|
-
void ModalHostViewEventEmitter::onOrientationChange(OnOrientationChange
|
|
113
|
-
dispatchEvent("orientationChange", [
|
|
114
|
-
auto
|
|
115
|
-
|
|
116
|
-
return
|
|
112
|
+
void ModalHostViewEventEmitter::onOrientationChange(OnOrientationChange event) const {
|
|
113
|
+
dispatchEvent("orientationChange", [event=std::move(event)](jsi::Runtime &runtime) {
|
|
114
|
+
auto payload = jsi::Object(runtime);
|
|
115
|
+
payload.setProperty(runtime, "orientation", toString(event.orientation));
|
|
116
|
+
return payload;
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
|
|
121
121
|
|
|
122
|
-
void SwitchEventEmitter::onChange(OnChange
|
|
123
|
-
dispatchEvent("change", [
|
|
124
|
-
auto
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
return
|
|
122
|
+
void SwitchEventEmitter::onChange(OnChange event) const {
|
|
123
|
+
dispatchEvent("change", [event=std::move(event)](jsi::Runtime &runtime) {
|
|
124
|
+
auto payload = jsi::Object(runtime);
|
|
125
|
+
payload.setProperty(runtime, "value", event.value);
|
|
126
|
+
payload.setProperty(runtime, "target", event.target);
|
|
127
|
+
return payload;
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
|