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
package/codegen/rnwcoreJSI.h
CHANGED
|
@@ -22,46 +22,50 @@ protected:
|
|
|
22
22
|
public:
|
|
23
23
|
virtual bool commonTestFlag(jsi::Runtime &rt) = 0;
|
|
24
24
|
virtual bool commonTestFlagWithoutNativeImplementation(jsi::Runtime &rt) = 0;
|
|
25
|
+
virtual bool animatedShouldSignalBatch(jsi::Runtime &rt) = 0;
|
|
26
|
+
virtual bool cxxNativeAnimatedEnabled(jsi::Runtime &rt) = 0;
|
|
27
|
+
virtual bool disableMainQueueSyncDispatchIOS(jsi::Runtime &rt) = 0;
|
|
25
28
|
virtual bool disableMountItemReorderingAndroid(jsi::Runtime &rt) = 0;
|
|
29
|
+
virtual bool enableAccessibilityOrder(jsi::Runtime &rt) = 0;
|
|
26
30
|
virtual bool enableAccumulatedUpdatesInRawPropsAndroid(jsi::Runtime &rt) = 0;
|
|
27
31
|
virtual bool enableBridgelessArchitecture(jsi::Runtime &rt) = 0;
|
|
28
32
|
virtual bool enableCppPropsIteratorSetter(jsi::Runtime &rt) = 0;
|
|
33
|
+
virtual bool enableCustomFocusSearchOnClippedElementsAndroid(jsi::Runtime &rt) = 0;
|
|
34
|
+
virtual bool enableDestroyShadowTreeRevisionAsync(jsi::Runtime &rt) = 0;
|
|
35
|
+
virtual bool enableDoubleMeasurementFixAndroid(jsi::Runtime &rt) = 0;
|
|
29
36
|
virtual bool enableEagerRootViewAttachment(jsi::Runtime &rt) = 0;
|
|
30
37
|
virtual bool enableFabricLogs(jsi::Runtime &rt) = 0;
|
|
31
38
|
virtual bool enableFabricRenderer(jsi::Runtime &rt) = 0;
|
|
39
|
+
virtual bool enableFixForParentTagDuringReparenting(jsi::Runtime &rt) = 0;
|
|
40
|
+
virtual bool enableFontScaleChangesUpdatingLayout(jsi::Runtime &rt) = 0;
|
|
32
41
|
virtual bool enableIOSViewClipToPaddingBox(jsi::Runtime &rt) = 0;
|
|
33
|
-
virtual bool enableImagePrefetchingAndroid(jsi::Runtime &rt) = 0;
|
|
34
42
|
virtual bool enableJSRuntimeGCOnMemoryPressureOnIOS(jsi::Runtime &rt) = 0;
|
|
35
43
|
virtual bool enableLayoutAnimationsOnAndroid(jsi::Runtime &rt) = 0;
|
|
36
44
|
virtual bool enableLayoutAnimationsOnIOS(jsi::Runtime &rt) = 0;
|
|
37
|
-
virtual bool
|
|
45
|
+
virtual bool enableMainQueueModulesOnIOS(jsi::Runtime &rt) = 0;
|
|
38
46
|
virtual bool enableNativeCSSParsing(jsi::Runtime &rt) = 0;
|
|
47
|
+
virtual bool enableNetworkEventReporting(jsi::Runtime &rt) = 0;
|
|
39
48
|
virtual bool enableNewBackgroundAndBorderDrawables(jsi::Runtime &rt) = 0;
|
|
40
|
-
virtual bool
|
|
49
|
+
virtual bool enablePreparedTextLayout(jsi::Runtime &rt) = 0;
|
|
41
50
|
virtual bool enablePropsUpdateReconciliationAndroid(jsi::Runtime &rt) = 0;
|
|
42
|
-
virtual bool
|
|
51
|
+
virtual bool enableResourceTimingAPI(jsi::Runtime &rt) = 0;
|
|
43
52
|
virtual bool enableSynchronousStateUpdates(jsi::Runtime &rt) = 0;
|
|
44
|
-
virtual bool enableUIConsistency(jsi::Runtime &rt) = 0;
|
|
45
53
|
virtual bool enableViewCulling(jsi::Runtime &rt) = 0;
|
|
46
54
|
virtual bool enableViewRecycling(jsi::Runtime &rt) = 0;
|
|
47
55
|
virtual bool enableViewRecyclingForText(jsi::Runtime &rt) = 0;
|
|
48
56
|
virtual bool enableViewRecyclingForView(jsi::Runtime &rt) = 0;
|
|
49
|
-
virtual bool excludeYogaFromRawProps(jsi::Runtime &rt) = 0;
|
|
50
|
-
virtual bool fixDifferentiatorEmittingUpdatesWithWrongParentTag(jsi::Runtime &rt) = 0;
|
|
51
57
|
virtual bool fixMappingOfEventPrioritiesBetweenFabricAndReact(jsi::Runtime &rt) = 0;
|
|
52
|
-
virtual bool fixMountingCoordinatorReportedPendingTransactionsOnAndroid(jsi::Runtime &rt) = 0;
|
|
53
58
|
virtual bool fuseboxEnabledRelease(jsi::Runtime &rt) = 0;
|
|
54
59
|
virtual bool fuseboxNetworkInspectionEnabled(jsi::Runtime &rt) = 0;
|
|
55
|
-
virtual bool
|
|
56
|
-
virtual bool removeTurboModuleManagerDelegateMutex(jsi::Runtime &rt) = 0;
|
|
57
|
-
virtual bool throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS(jsi::Runtime &rt) = 0;
|
|
60
|
+
virtual bool incorporateMaxLinesDuringAndroidLayout(jsi::Runtime &rt) = 0;
|
|
58
61
|
virtual bool traceTurboModulePromiseRejectionsOnAndroid(jsi::Runtime &rt) = 0;
|
|
62
|
+
virtual bool updateRuntimeShadowNodeReferencesOnCommit(jsi::Runtime &rt) = 0;
|
|
59
63
|
virtual bool useAlwaysAvailableJSErrorHandling(jsi::Runtime &rt) = 0;
|
|
60
|
-
virtual bool useEditTextStockAndroidFocusBehavior(jsi::Runtime &rt) = 0;
|
|
61
64
|
virtual bool useFabricInterop(jsi::Runtime &rt) = 0;
|
|
62
65
|
virtual bool useNativeViewConfigsInBridgelessMode(jsi::Runtime &rt) = 0;
|
|
63
66
|
virtual bool useOptimizedEventBatchingOnAndroid(jsi::Runtime &rt) = 0;
|
|
64
67
|
virtual bool useRawPropsJsiValue(jsi::Runtime &rt) = 0;
|
|
68
|
+
virtual bool useShadowNodeStateOnClone(jsi::Runtime &rt) = 0;
|
|
65
69
|
virtual bool useTurboModuleInterop(jsi::Runtime &rt) = 0;
|
|
66
70
|
virtual bool useTurboModules(jsi::Runtime &rt) = 0;
|
|
67
71
|
|
|
@@ -110,6 +114,30 @@ private:
|
|
|
110
114
|
return bridging::callFromJs<bool>(
|
|
111
115
|
rt, &T::commonTestFlagWithoutNativeImplementation, jsInvoker_, instance_);
|
|
112
116
|
}
|
|
117
|
+
bool animatedShouldSignalBatch(jsi::Runtime &rt) override {
|
|
118
|
+
static_assert(
|
|
119
|
+
bridging::getParameterCount(&T::animatedShouldSignalBatch) == 1,
|
|
120
|
+
"Expected animatedShouldSignalBatch(...) to have 1 parameters");
|
|
121
|
+
|
|
122
|
+
return bridging::callFromJs<bool>(
|
|
123
|
+
rt, &T::animatedShouldSignalBatch, jsInvoker_, instance_);
|
|
124
|
+
}
|
|
125
|
+
bool cxxNativeAnimatedEnabled(jsi::Runtime &rt) override {
|
|
126
|
+
static_assert(
|
|
127
|
+
bridging::getParameterCount(&T::cxxNativeAnimatedEnabled) == 1,
|
|
128
|
+
"Expected cxxNativeAnimatedEnabled(...) to have 1 parameters");
|
|
129
|
+
|
|
130
|
+
return bridging::callFromJs<bool>(
|
|
131
|
+
rt, &T::cxxNativeAnimatedEnabled, jsInvoker_, instance_);
|
|
132
|
+
}
|
|
133
|
+
bool disableMainQueueSyncDispatchIOS(jsi::Runtime &rt) override {
|
|
134
|
+
static_assert(
|
|
135
|
+
bridging::getParameterCount(&T::disableMainQueueSyncDispatchIOS) == 1,
|
|
136
|
+
"Expected disableMainQueueSyncDispatchIOS(...) to have 1 parameters");
|
|
137
|
+
|
|
138
|
+
return bridging::callFromJs<bool>(
|
|
139
|
+
rt, &T::disableMainQueueSyncDispatchIOS, jsInvoker_, instance_);
|
|
140
|
+
}
|
|
113
141
|
bool disableMountItemReorderingAndroid(jsi::Runtime &rt) override {
|
|
114
142
|
static_assert(
|
|
115
143
|
bridging::getParameterCount(&T::disableMountItemReorderingAndroid) == 1,
|
|
@@ -118,6 +146,14 @@ private:
|
|
|
118
146
|
return bridging::callFromJs<bool>(
|
|
119
147
|
rt, &T::disableMountItemReorderingAndroid, jsInvoker_, instance_);
|
|
120
148
|
}
|
|
149
|
+
bool enableAccessibilityOrder(jsi::Runtime &rt) override {
|
|
150
|
+
static_assert(
|
|
151
|
+
bridging::getParameterCount(&T::enableAccessibilityOrder) == 1,
|
|
152
|
+
"Expected enableAccessibilityOrder(...) to have 1 parameters");
|
|
153
|
+
|
|
154
|
+
return bridging::callFromJs<bool>(
|
|
155
|
+
rt, &T::enableAccessibilityOrder, jsInvoker_, instance_);
|
|
156
|
+
}
|
|
121
157
|
bool enableAccumulatedUpdatesInRawPropsAndroid(jsi::Runtime &rt) override {
|
|
122
158
|
static_assert(
|
|
123
159
|
bridging::getParameterCount(&T::enableAccumulatedUpdatesInRawPropsAndroid) == 1,
|
|
@@ -142,6 +178,30 @@ private:
|
|
|
142
178
|
return bridging::callFromJs<bool>(
|
|
143
179
|
rt, &T::enableCppPropsIteratorSetter, jsInvoker_, instance_);
|
|
144
180
|
}
|
|
181
|
+
bool enableCustomFocusSearchOnClippedElementsAndroid(jsi::Runtime &rt) override {
|
|
182
|
+
static_assert(
|
|
183
|
+
bridging::getParameterCount(&T::enableCustomFocusSearchOnClippedElementsAndroid) == 1,
|
|
184
|
+
"Expected enableCustomFocusSearchOnClippedElementsAndroid(...) to have 1 parameters");
|
|
185
|
+
|
|
186
|
+
return bridging::callFromJs<bool>(
|
|
187
|
+
rt, &T::enableCustomFocusSearchOnClippedElementsAndroid, jsInvoker_, instance_);
|
|
188
|
+
}
|
|
189
|
+
bool enableDestroyShadowTreeRevisionAsync(jsi::Runtime &rt) override {
|
|
190
|
+
static_assert(
|
|
191
|
+
bridging::getParameterCount(&T::enableDestroyShadowTreeRevisionAsync) == 1,
|
|
192
|
+
"Expected enableDestroyShadowTreeRevisionAsync(...) to have 1 parameters");
|
|
193
|
+
|
|
194
|
+
return bridging::callFromJs<bool>(
|
|
195
|
+
rt, &T::enableDestroyShadowTreeRevisionAsync, jsInvoker_, instance_);
|
|
196
|
+
}
|
|
197
|
+
bool enableDoubleMeasurementFixAndroid(jsi::Runtime &rt) override {
|
|
198
|
+
static_assert(
|
|
199
|
+
bridging::getParameterCount(&T::enableDoubleMeasurementFixAndroid) == 1,
|
|
200
|
+
"Expected enableDoubleMeasurementFixAndroid(...) to have 1 parameters");
|
|
201
|
+
|
|
202
|
+
return bridging::callFromJs<bool>(
|
|
203
|
+
rt, &T::enableDoubleMeasurementFixAndroid, jsInvoker_, instance_);
|
|
204
|
+
}
|
|
145
205
|
bool enableEagerRootViewAttachment(jsi::Runtime &rt) override {
|
|
146
206
|
static_assert(
|
|
147
207
|
bridging::getParameterCount(&T::enableEagerRootViewAttachment) == 1,
|
|
@@ -166,21 +226,29 @@ private:
|
|
|
166
226
|
return bridging::callFromJs<bool>(
|
|
167
227
|
rt, &T::enableFabricRenderer, jsInvoker_, instance_);
|
|
168
228
|
}
|
|
169
|
-
bool
|
|
229
|
+
bool enableFixForParentTagDuringReparenting(jsi::Runtime &rt) override {
|
|
170
230
|
static_assert(
|
|
171
|
-
bridging::getParameterCount(&T::
|
|
172
|
-
"Expected
|
|
231
|
+
bridging::getParameterCount(&T::enableFixForParentTagDuringReparenting) == 1,
|
|
232
|
+
"Expected enableFixForParentTagDuringReparenting(...) to have 1 parameters");
|
|
173
233
|
|
|
174
234
|
return bridging::callFromJs<bool>(
|
|
175
|
-
rt, &T::
|
|
235
|
+
rt, &T::enableFixForParentTagDuringReparenting, jsInvoker_, instance_);
|
|
176
236
|
}
|
|
177
|
-
bool
|
|
237
|
+
bool enableFontScaleChangesUpdatingLayout(jsi::Runtime &rt) override {
|
|
178
238
|
static_assert(
|
|
179
|
-
bridging::getParameterCount(&T::
|
|
180
|
-
"Expected
|
|
239
|
+
bridging::getParameterCount(&T::enableFontScaleChangesUpdatingLayout) == 1,
|
|
240
|
+
"Expected enableFontScaleChangesUpdatingLayout(...) to have 1 parameters");
|
|
181
241
|
|
|
182
242
|
return bridging::callFromJs<bool>(
|
|
183
|
-
rt, &T::
|
|
243
|
+
rt, &T::enableFontScaleChangesUpdatingLayout, jsInvoker_, instance_);
|
|
244
|
+
}
|
|
245
|
+
bool enableIOSViewClipToPaddingBox(jsi::Runtime &rt) override {
|
|
246
|
+
static_assert(
|
|
247
|
+
bridging::getParameterCount(&T::enableIOSViewClipToPaddingBox) == 1,
|
|
248
|
+
"Expected enableIOSViewClipToPaddingBox(...) to have 1 parameters");
|
|
249
|
+
|
|
250
|
+
return bridging::callFromJs<bool>(
|
|
251
|
+
rt, &T::enableIOSViewClipToPaddingBox, jsInvoker_, instance_);
|
|
184
252
|
}
|
|
185
253
|
bool enableJSRuntimeGCOnMemoryPressureOnIOS(jsi::Runtime &rt) override {
|
|
186
254
|
static_assert(
|
|
@@ -206,13 +274,13 @@ private:
|
|
|
206
274
|
return bridging::callFromJs<bool>(
|
|
207
275
|
rt, &T::enableLayoutAnimationsOnIOS, jsInvoker_, instance_);
|
|
208
276
|
}
|
|
209
|
-
bool
|
|
277
|
+
bool enableMainQueueModulesOnIOS(jsi::Runtime &rt) override {
|
|
210
278
|
static_assert(
|
|
211
|
-
bridging::getParameterCount(&T::
|
|
212
|
-
"Expected
|
|
279
|
+
bridging::getParameterCount(&T::enableMainQueueModulesOnIOS) == 1,
|
|
280
|
+
"Expected enableMainQueueModulesOnIOS(...) to have 1 parameters");
|
|
213
281
|
|
|
214
282
|
return bridging::callFromJs<bool>(
|
|
215
|
-
rt, &T::
|
|
283
|
+
rt, &T::enableMainQueueModulesOnIOS, jsInvoker_, instance_);
|
|
216
284
|
}
|
|
217
285
|
bool enableNativeCSSParsing(jsi::Runtime &rt) override {
|
|
218
286
|
static_assert(
|
|
@@ -222,6 +290,14 @@ private:
|
|
|
222
290
|
return bridging::callFromJs<bool>(
|
|
223
291
|
rt, &T::enableNativeCSSParsing, jsInvoker_, instance_);
|
|
224
292
|
}
|
|
293
|
+
bool enableNetworkEventReporting(jsi::Runtime &rt) override {
|
|
294
|
+
static_assert(
|
|
295
|
+
bridging::getParameterCount(&T::enableNetworkEventReporting) == 1,
|
|
296
|
+
"Expected enableNetworkEventReporting(...) to have 1 parameters");
|
|
297
|
+
|
|
298
|
+
return bridging::callFromJs<bool>(
|
|
299
|
+
rt, &T::enableNetworkEventReporting, jsInvoker_, instance_);
|
|
300
|
+
}
|
|
225
301
|
bool enableNewBackgroundAndBorderDrawables(jsi::Runtime &rt) override {
|
|
226
302
|
static_assert(
|
|
227
303
|
bridging::getParameterCount(&T::enableNewBackgroundAndBorderDrawables) == 1,
|
|
@@ -230,13 +306,13 @@ private:
|
|
|
230
306
|
return bridging::callFromJs<bool>(
|
|
231
307
|
rt, &T::enableNewBackgroundAndBorderDrawables, jsInvoker_, instance_);
|
|
232
308
|
}
|
|
233
|
-
bool
|
|
309
|
+
bool enablePreparedTextLayout(jsi::Runtime &rt) override {
|
|
234
310
|
static_assert(
|
|
235
|
-
bridging::getParameterCount(&T::
|
|
236
|
-
"Expected
|
|
311
|
+
bridging::getParameterCount(&T::enablePreparedTextLayout) == 1,
|
|
312
|
+
"Expected enablePreparedTextLayout(...) to have 1 parameters");
|
|
237
313
|
|
|
238
314
|
return bridging::callFromJs<bool>(
|
|
239
|
-
rt, &T::
|
|
315
|
+
rt, &T::enablePreparedTextLayout, jsInvoker_, instance_);
|
|
240
316
|
}
|
|
241
317
|
bool enablePropsUpdateReconciliationAndroid(jsi::Runtime &rt) override {
|
|
242
318
|
static_assert(
|
|
@@ -246,13 +322,13 @@ private:
|
|
|
246
322
|
return bridging::callFromJs<bool>(
|
|
247
323
|
rt, &T::enablePropsUpdateReconciliationAndroid, jsInvoker_, instance_);
|
|
248
324
|
}
|
|
249
|
-
bool
|
|
325
|
+
bool enableResourceTimingAPI(jsi::Runtime &rt) override {
|
|
250
326
|
static_assert(
|
|
251
|
-
bridging::getParameterCount(&T::
|
|
252
|
-
"Expected
|
|
327
|
+
bridging::getParameterCount(&T::enableResourceTimingAPI) == 1,
|
|
328
|
+
"Expected enableResourceTimingAPI(...) to have 1 parameters");
|
|
253
329
|
|
|
254
330
|
return bridging::callFromJs<bool>(
|
|
255
|
-
rt, &T::
|
|
331
|
+
rt, &T::enableResourceTimingAPI, jsInvoker_, instance_);
|
|
256
332
|
}
|
|
257
333
|
bool enableSynchronousStateUpdates(jsi::Runtime &rt) override {
|
|
258
334
|
static_assert(
|
|
@@ -262,14 +338,6 @@ private:
|
|
|
262
338
|
return bridging::callFromJs<bool>(
|
|
263
339
|
rt, &T::enableSynchronousStateUpdates, jsInvoker_, instance_);
|
|
264
340
|
}
|
|
265
|
-
bool enableUIConsistency(jsi::Runtime &rt) override {
|
|
266
|
-
static_assert(
|
|
267
|
-
bridging::getParameterCount(&T::enableUIConsistency) == 1,
|
|
268
|
-
"Expected enableUIConsistency(...) to have 1 parameters");
|
|
269
|
-
|
|
270
|
-
return bridging::callFromJs<bool>(
|
|
271
|
-
rt, &T::enableUIConsistency, jsInvoker_, instance_);
|
|
272
|
-
}
|
|
273
341
|
bool enableViewCulling(jsi::Runtime &rt) override {
|
|
274
342
|
static_assert(
|
|
275
343
|
bridging::getParameterCount(&T::enableViewCulling) == 1,
|
|
@@ -302,22 +370,6 @@ private:
|
|
|
302
370
|
return bridging::callFromJs<bool>(
|
|
303
371
|
rt, &T::enableViewRecyclingForView, jsInvoker_, instance_);
|
|
304
372
|
}
|
|
305
|
-
bool excludeYogaFromRawProps(jsi::Runtime &rt) override {
|
|
306
|
-
static_assert(
|
|
307
|
-
bridging::getParameterCount(&T::excludeYogaFromRawProps) == 1,
|
|
308
|
-
"Expected excludeYogaFromRawProps(...) to have 1 parameters");
|
|
309
|
-
|
|
310
|
-
return bridging::callFromJs<bool>(
|
|
311
|
-
rt, &T::excludeYogaFromRawProps, jsInvoker_, instance_);
|
|
312
|
-
}
|
|
313
|
-
bool fixDifferentiatorEmittingUpdatesWithWrongParentTag(jsi::Runtime &rt) override {
|
|
314
|
-
static_assert(
|
|
315
|
-
bridging::getParameterCount(&T::fixDifferentiatorEmittingUpdatesWithWrongParentTag) == 1,
|
|
316
|
-
"Expected fixDifferentiatorEmittingUpdatesWithWrongParentTag(...) to have 1 parameters");
|
|
317
|
-
|
|
318
|
-
return bridging::callFromJs<bool>(
|
|
319
|
-
rt, &T::fixDifferentiatorEmittingUpdatesWithWrongParentTag, jsInvoker_, instance_);
|
|
320
|
-
}
|
|
321
373
|
bool fixMappingOfEventPrioritiesBetweenFabricAndReact(jsi::Runtime &rt) override {
|
|
322
374
|
static_assert(
|
|
323
375
|
bridging::getParameterCount(&T::fixMappingOfEventPrioritiesBetweenFabricAndReact) == 1,
|
|
@@ -326,14 +378,6 @@ private:
|
|
|
326
378
|
return bridging::callFromJs<bool>(
|
|
327
379
|
rt, &T::fixMappingOfEventPrioritiesBetweenFabricAndReact, jsInvoker_, instance_);
|
|
328
380
|
}
|
|
329
|
-
bool fixMountingCoordinatorReportedPendingTransactionsOnAndroid(jsi::Runtime &rt) override {
|
|
330
|
-
static_assert(
|
|
331
|
-
bridging::getParameterCount(&T::fixMountingCoordinatorReportedPendingTransactionsOnAndroid) == 1,
|
|
332
|
-
"Expected fixMountingCoordinatorReportedPendingTransactionsOnAndroid(...) to have 1 parameters");
|
|
333
|
-
|
|
334
|
-
return bridging::callFromJs<bool>(
|
|
335
|
-
rt, &T::fixMountingCoordinatorReportedPendingTransactionsOnAndroid, jsInvoker_, instance_);
|
|
336
|
-
}
|
|
337
381
|
bool fuseboxEnabledRelease(jsi::Runtime &rt) override {
|
|
338
382
|
static_assert(
|
|
339
383
|
bridging::getParameterCount(&T::fuseboxEnabledRelease) == 1,
|
|
@@ -350,29 +394,13 @@ private:
|
|
|
350
394
|
return bridging::callFromJs<bool>(
|
|
351
395
|
rt, &T::fuseboxNetworkInspectionEnabled, jsInvoker_, instance_);
|
|
352
396
|
}
|
|
353
|
-
bool
|
|
354
|
-
static_assert(
|
|
355
|
-
bridging::getParameterCount(&T::lazyAnimationCallbacks) == 1,
|
|
356
|
-
"Expected lazyAnimationCallbacks(...) to have 1 parameters");
|
|
357
|
-
|
|
358
|
-
return bridging::callFromJs<bool>(
|
|
359
|
-
rt, &T::lazyAnimationCallbacks, jsInvoker_, instance_);
|
|
360
|
-
}
|
|
361
|
-
bool removeTurboModuleManagerDelegateMutex(jsi::Runtime &rt) override {
|
|
397
|
+
bool incorporateMaxLinesDuringAndroidLayout(jsi::Runtime &rt) override {
|
|
362
398
|
static_assert(
|
|
363
|
-
bridging::getParameterCount(&T::
|
|
364
|
-
"Expected
|
|
399
|
+
bridging::getParameterCount(&T::incorporateMaxLinesDuringAndroidLayout) == 1,
|
|
400
|
+
"Expected incorporateMaxLinesDuringAndroidLayout(...) to have 1 parameters");
|
|
365
401
|
|
|
366
402
|
return bridging::callFromJs<bool>(
|
|
367
|
-
rt, &T::
|
|
368
|
-
}
|
|
369
|
-
bool throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS(jsi::Runtime &rt) override {
|
|
370
|
-
static_assert(
|
|
371
|
-
bridging::getParameterCount(&T::throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS) == 1,
|
|
372
|
-
"Expected throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS(...) to have 1 parameters");
|
|
373
|
-
|
|
374
|
-
return bridging::callFromJs<bool>(
|
|
375
|
-
rt, &T::throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS, jsInvoker_, instance_);
|
|
403
|
+
rt, &T::incorporateMaxLinesDuringAndroidLayout, jsInvoker_, instance_);
|
|
376
404
|
}
|
|
377
405
|
bool traceTurboModulePromiseRejectionsOnAndroid(jsi::Runtime &rt) override {
|
|
378
406
|
static_assert(
|
|
@@ -382,21 +410,21 @@ private:
|
|
|
382
410
|
return bridging::callFromJs<bool>(
|
|
383
411
|
rt, &T::traceTurboModulePromiseRejectionsOnAndroid, jsInvoker_, instance_);
|
|
384
412
|
}
|
|
385
|
-
bool
|
|
413
|
+
bool updateRuntimeShadowNodeReferencesOnCommit(jsi::Runtime &rt) override {
|
|
386
414
|
static_assert(
|
|
387
|
-
bridging::getParameterCount(&T::
|
|
388
|
-
"Expected
|
|
415
|
+
bridging::getParameterCount(&T::updateRuntimeShadowNodeReferencesOnCommit) == 1,
|
|
416
|
+
"Expected updateRuntimeShadowNodeReferencesOnCommit(...) to have 1 parameters");
|
|
389
417
|
|
|
390
418
|
return bridging::callFromJs<bool>(
|
|
391
|
-
rt, &T::
|
|
419
|
+
rt, &T::updateRuntimeShadowNodeReferencesOnCommit, jsInvoker_, instance_);
|
|
392
420
|
}
|
|
393
|
-
bool
|
|
421
|
+
bool useAlwaysAvailableJSErrorHandling(jsi::Runtime &rt) override {
|
|
394
422
|
static_assert(
|
|
395
|
-
bridging::getParameterCount(&T::
|
|
396
|
-
"Expected
|
|
423
|
+
bridging::getParameterCount(&T::useAlwaysAvailableJSErrorHandling) == 1,
|
|
424
|
+
"Expected useAlwaysAvailableJSErrorHandling(...) to have 1 parameters");
|
|
397
425
|
|
|
398
426
|
return bridging::callFromJs<bool>(
|
|
399
|
-
rt, &T::
|
|
427
|
+
rt, &T::useAlwaysAvailableJSErrorHandling, jsInvoker_, instance_);
|
|
400
428
|
}
|
|
401
429
|
bool useFabricInterop(jsi::Runtime &rt) override {
|
|
402
430
|
static_assert(
|
|
@@ -430,6 +458,14 @@ private:
|
|
|
430
458
|
return bridging::callFromJs<bool>(
|
|
431
459
|
rt, &T::useRawPropsJsiValue, jsInvoker_, instance_);
|
|
432
460
|
}
|
|
461
|
+
bool useShadowNodeStateOnClone(jsi::Runtime &rt) override {
|
|
462
|
+
static_assert(
|
|
463
|
+
bridging::getParameterCount(&T::useShadowNodeStateOnClone) == 1,
|
|
464
|
+
"Expected useShadowNodeStateOnClone(...) to have 1 parameters");
|
|
465
|
+
|
|
466
|
+
return bridging::callFromJs<bool>(
|
|
467
|
+
rt, &T::useShadowNodeStateOnClone, jsInvoker_, instance_);
|
|
468
|
+
}
|
|
433
469
|
bool useTurboModuleInterop(jsi::Runtime &rt) override {
|
|
434
470
|
static_assert(
|
|
435
471
|
bridging::getParameterCount(&T::useTurboModuleInterop) == 1,
|
|
@@ -456,168 +492,6 @@ private:
|
|
|
456
492
|
};
|
|
457
493
|
|
|
458
494
|
|
|
459
|
-
|
|
460
|
-
#pragma mark - NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfig
|
|
461
|
-
|
|
462
|
-
template <typename P0, typename P1>
|
|
463
|
-
struct NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfig {
|
|
464
|
-
P0 shouldReloadAndProfile;
|
|
465
|
-
P1 recordChangeDescriptions;
|
|
466
|
-
bool operator==(const NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfig &other) const {
|
|
467
|
-
return shouldReloadAndProfile == other.shouldReloadAndProfile && recordChangeDescriptions == other.recordChangeDescriptions;
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
template <typename T>
|
|
472
|
-
struct NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfigBridging {
|
|
473
|
-
static T types;
|
|
474
|
-
|
|
475
|
-
static T fromJs(
|
|
476
|
-
jsi::Runtime &rt,
|
|
477
|
-
const jsi::Object &value,
|
|
478
|
-
const std::shared_ptr<CallInvoker> &jsInvoker) {
|
|
479
|
-
T result{
|
|
480
|
-
bridging::fromJs<decltype(types.shouldReloadAndProfile)>(rt, value.getProperty(rt, "shouldReloadAndProfile"), jsInvoker),
|
|
481
|
-
bridging::fromJs<decltype(types.recordChangeDescriptions)>(rt, value.getProperty(rt, "recordChangeDescriptions"), jsInvoker)};
|
|
482
|
-
return result;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
#ifdef DEBUG
|
|
486
|
-
static bool shouldReloadAndProfileToJs(jsi::Runtime &rt, decltype(types.shouldReloadAndProfile) value) {
|
|
487
|
-
return bridging::toJs(rt, value);
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
static bool recordChangeDescriptionsToJs(jsi::Runtime &rt, decltype(types.recordChangeDescriptions) value) {
|
|
491
|
-
return bridging::toJs(rt, value);
|
|
492
|
-
}
|
|
493
|
-
#endif
|
|
494
|
-
|
|
495
|
-
static jsi::Object toJs(
|
|
496
|
-
jsi::Runtime &rt,
|
|
497
|
-
const T &value,
|
|
498
|
-
const std::shared_ptr<CallInvoker> &jsInvoker) {
|
|
499
|
-
auto result = facebook::jsi::Object(rt);
|
|
500
|
-
if (value.shouldReloadAndProfile) {
|
|
501
|
-
result.setProperty(rt, "shouldReloadAndProfile", bridging::toJs(rt, value.shouldReloadAndProfile.value(), jsInvoker));
|
|
502
|
-
}
|
|
503
|
-
if (value.recordChangeDescriptions) {
|
|
504
|
-
result.setProperty(rt, "recordChangeDescriptions", bridging::toJs(rt, value.recordChangeDescriptions.value(), jsInvoker));
|
|
505
|
-
}
|
|
506
|
-
return result;
|
|
507
|
-
}
|
|
508
|
-
};
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
#pragma mark - NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfig
|
|
513
|
-
|
|
514
|
-
template <typename P0, typename P1>
|
|
515
|
-
struct NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfig {
|
|
516
|
-
P0 shouldReloadAndProfile;
|
|
517
|
-
P1 recordChangeDescriptions;
|
|
518
|
-
bool operator==(const NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfig &other) const {
|
|
519
|
-
return shouldReloadAndProfile == other.shouldReloadAndProfile && recordChangeDescriptions == other.recordChangeDescriptions;
|
|
520
|
-
}
|
|
521
|
-
};
|
|
522
|
-
|
|
523
|
-
template <typename T>
|
|
524
|
-
struct NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfigBridging {
|
|
525
|
-
static T types;
|
|
526
|
-
|
|
527
|
-
static T fromJs(
|
|
528
|
-
jsi::Runtime &rt,
|
|
529
|
-
const jsi::Object &value,
|
|
530
|
-
const std::shared_ptr<CallInvoker> &jsInvoker) {
|
|
531
|
-
T result{
|
|
532
|
-
bridging::fromJs<decltype(types.shouldReloadAndProfile)>(rt, value.getProperty(rt, "shouldReloadAndProfile"), jsInvoker),
|
|
533
|
-
bridging::fromJs<decltype(types.recordChangeDescriptions)>(rt, value.getProperty(rt, "recordChangeDescriptions"), jsInvoker)};
|
|
534
|
-
return result;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
#ifdef DEBUG
|
|
538
|
-
static bool shouldReloadAndProfileToJs(jsi::Runtime &rt, decltype(types.shouldReloadAndProfile) value) {
|
|
539
|
-
return bridging::toJs(rt, value);
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
static bool recordChangeDescriptionsToJs(jsi::Runtime &rt, decltype(types.recordChangeDescriptions) value) {
|
|
543
|
-
return bridging::toJs(rt, value);
|
|
544
|
-
}
|
|
545
|
-
#endif
|
|
546
|
-
|
|
547
|
-
static jsi::Object toJs(
|
|
548
|
-
jsi::Runtime &rt,
|
|
549
|
-
const T &value,
|
|
550
|
-
const std::shared_ptr<CallInvoker> &jsInvoker) {
|
|
551
|
-
auto result = facebook::jsi::Object(rt);
|
|
552
|
-
result.setProperty(rt, "shouldReloadAndProfile", bridging::toJs(rt, value.shouldReloadAndProfile, jsInvoker));
|
|
553
|
-
result.setProperty(rt, "recordChangeDescriptions", bridging::toJs(rt, value.recordChangeDescriptions, jsInvoker));
|
|
554
|
-
return result;
|
|
555
|
-
}
|
|
556
|
-
};
|
|
557
|
-
|
|
558
|
-
class JSI_EXPORT NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI : public TurboModule {
|
|
559
|
-
protected:
|
|
560
|
-
NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
561
|
-
|
|
562
|
-
public:
|
|
563
|
-
virtual void setReloadAndProfileConfig(jsi::Runtime &rt, jsi::Object config) = 0;
|
|
564
|
-
virtual jsi::Object getReloadAndProfileConfig(jsi::Runtime &rt) = 0;
|
|
565
|
-
|
|
566
|
-
};
|
|
567
|
-
|
|
568
|
-
template <typename T>
|
|
569
|
-
class JSI_EXPORT NativeReactDevToolsRuntimeSettingsModuleCxxSpec : public TurboModule {
|
|
570
|
-
public:
|
|
571
|
-
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
572
|
-
return delegate_.create(rt, propName);
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
576
|
-
return delegate_.getPropertyNames(runtime);
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
static constexpr std::string_view kModuleName = "ReactDevToolsRuntimeSettingsModule";
|
|
580
|
-
|
|
581
|
-
protected:
|
|
582
|
-
NativeReactDevToolsRuntimeSettingsModuleCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
583
|
-
: TurboModule(std::string{NativeReactDevToolsRuntimeSettingsModuleCxxSpec::kModuleName}, jsInvoker),
|
|
584
|
-
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
private:
|
|
588
|
-
class Delegate : public NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI {
|
|
589
|
-
public:
|
|
590
|
-
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
591
|
-
NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
|
|
592
|
-
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
void setReloadAndProfileConfig(jsi::Runtime &rt, jsi::Object config) override {
|
|
596
|
-
static_assert(
|
|
597
|
-
bridging::getParameterCount(&T::setReloadAndProfileConfig) == 2,
|
|
598
|
-
"Expected setReloadAndProfileConfig(...) to have 2 parameters");
|
|
599
|
-
|
|
600
|
-
return bridging::callFromJs<void>(
|
|
601
|
-
rt, &T::setReloadAndProfileConfig, jsInvoker_, instance_, std::move(config));
|
|
602
|
-
}
|
|
603
|
-
jsi::Object getReloadAndProfileConfig(jsi::Runtime &rt) override {
|
|
604
|
-
static_assert(
|
|
605
|
-
bridging::getParameterCount(&T::getReloadAndProfileConfig) == 1,
|
|
606
|
-
"Expected getReloadAndProfileConfig(...) to have 1 parameters");
|
|
607
|
-
|
|
608
|
-
return bridging::callFromJs<jsi::Object>(
|
|
609
|
-
rt, &T::getReloadAndProfileConfig, jsInvoker_, instance_);
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
private:
|
|
613
|
-
friend class NativeReactDevToolsRuntimeSettingsModuleCxxSpec;
|
|
614
|
-
T *instance_;
|
|
615
|
-
};
|
|
616
|
-
|
|
617
|
-
Delegate delegate_;
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
|
|
621
495
|
class JSI_EXPORT NativeAccessibilityInfoCxxSpecJSI : public TurboModule {
|
|
622
496
|
protected:
|
|
623
497
|
NativeAccessibilityInfoCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
@@ -1158,12 +1032,13 @@ private:
|
|
|
1158
1032
|
|
|
1159
1033
|
#pragma mark - NativeAnimatedModuleEndResult
|
|
1160
1034
|
|
|
1161
|
-
template <typename P0, typename P1>
|
|
1035
|
+
template <typename P0, typename P1, typename P2>
|
|
1162
1036
|
struct NativeAnimatedModuleEndResult {
|
|
1163
1037
|
P0 finished;
|
|
1164
1038
|
P1 value;
|
|
1039
|
+
P2 offset;
|
|
1165
1040
|
bool operator==(const NativeAnimatedModuleEndResult &other) const {
|
|
1166
|
-
return finished == other.finished && value == other.value;
|
|
1041
|
+
return finished == other.finished && value == other.value && offset == other.offset;
|
|
1167
1042
|
}
|
|
1168
1043
|
};
|
|
1169
1044
|
|
|
@@ -1177,7 +1052,8 @@ struct NativeAnimatedModuleEndResultBridging {
|
|
|
1177
1052
|
const std::shared_ptr<CallInvoker> &jsInvoker) {
|
|
1178
1053
|
T result{
|
|
1179
1054
|
bridging::fromJs<decltype(types.finished)>(rt, value.getProperty(rt, "finished"), jsInvoker),
|
|
1180
|
-
bridging::fromJs<decltype(types.value)>(rt, value.getProperty(rt, "value"), jsInvoker)
|
|
1055
|
+
bridging::fromJs<decltype(types.value)>(rt, value.getProperty(rt, "value"), jsInvoker),
|
|
1056
|
+
bridging::fromJs<decltype(types.offset)>(rt, value.getProperty(rt, "offset"), jsInvoker)};
|
|
1181
1057
|
return result;
|
|
1182
1058
|
}
|
|
1183
1059
|
|
|
@@ -1189,6 +1065,10 @@ struct NativeAnimatedModuleEndResultBridging {
|
|
|
1189
1065
|
static double valueToJs(jsi::Runtime &rt, decltype(types.value) value) {
|
|
1190
1066
|
return bridging::toJs(rt, value);
|
|
1191
1067
|
}
|
|
1068
|
+
|
|
1069
|
+
static double offsetToJs(jsi::Runtime &rt, decltype(types.offset) value) {
|
|
1070
|
+
return bridging::toJs(rt, value);
|
|
1071
|
+
}
|
|
1192
1072
|
#endif
|
|
1193
1073
|
|
|
1194
1074
|
static jsi::Object toJs(
|
|
@@ -1200,6 +1080,9 @@ struct NativeAnimatedModuleEndResultBridging {
|
|
|
1200
1080
|
if (value.value) {
|
|
1201
1081
|
result.setProperty(rt, "value", bridging::toJs(rt, value.value.value(), jsInvoker));
|
|
1202
1082
|
}
|
|
1083
|
+
if (value.offset) {
|
|
1084
|
+
result.setProperty(rt, "offset", bridging::toJs(rt, value.offset.value(), jsInvoker));
|
|
1085
|
+
}
|
|
1203
1086
|
return result;
|
|
1204
1087
|
}
|
|
1205
1088
|
};
|
|
@@ -1516,12 +1399,13 @@ private:
|
|
|
1516
1399
|
|
|
1517
1400
|
#pragma mark - NativeAnimatedTurboModuleEndResult
|
|
1518
1401
|
|
|
1519
|
-
template <typename P0, typename P1>
|
|
1402
|
+
template <typename P0, typename P1, typename P2>
|
|
1520
1403
|
struct NativeAnimatedTurboModuleEndResult {
|
|
1521
1404
|
P0 finished;
|
|
1522
1405
|
P1 value;
|
|
1406
|
+
P2 offset;
|
|
1523
1407
|
bool operator==(const NativeAnimatedTurboModuleEndResult &other) const {
|
|
1524
|
-
return finished == other.finished && value == other.value;
|
|
1408
|
+
return finished == other.finished && value == other.value && offset == other.offset;
|
|
1525
1409
|
}
|
|
1526
1410
|
};
|
|
1527
1411
|
|
|
@@ -1535,7 +1419,8 @@ struct NativeAnimatedTurboModuleEndResultBridging {
|
|
|
1535
1419
|
const std::shared_ptr<CallInvoker> &jsInvoker) {
|
|
1536
1420
|
T result{
|
|
1537
1421
|
bridging::fromJs<decltype(types.finished)>(rt, value.getProperty(rt, "finished"), jsInvoker),
|
|
1538
|
-
bridging::fromJs<decltype(types.value)>(rt, value.getProperty(rt, "value"), jsInvoker)
|
|
1422
|
+
bridging::fromJs<decltype(types.value)>(rt, value.getProperty(rt, "value"), jsInvoker),
|
|
1423
|
+
bridging::fromJs<decltype(types.offset)>(rt, value.getProperty(rt, "offset"), jsInvoker)};
|
|
1539
1424
|
return result;
|
|
1540
1425
|
}
|
|
1541
1426
|
|
|
@@ -1547,6 +1432,10 @@ struct NativeAnimatedTurboModuleEndResultBridging {
|
|
|
1547
1432
|
static double valueToJs(jsi::Runtime &rt, decltype(types.value) value) {
|
|
1548
1433
|
return bridging::toJs(rt, value);
|
|
1549
1434
|
}
|
|
1435
|
+
|
|
1436
|
+
static double offsetToJs(jsi::Runtime &rt, decltype(types.offset) value) {
|
|
1437
|
+
return bridging::toJs(rt, value);
|
|
1438
|
+
}
|
|
1550
1439
|
#endif
|
|
1551
1440
|
|
|
1552
1441
|
static jsi::Object toJs(
|
|
@@ -1558,6 +1447,9 @@ struct NativeAnimatedTurboModuleEndResultBridging {
|
|
|
1558
1447
|
if (value.value) {
|
|
1559
1448
|
result.setProperty(rt, "value", bridging::toJs(rt, value.value.value(), jsInvoker));
|
|
1560
1449
|
}
|
|
1450
|
+
if (value.offset) {
|
|
1451
|
+
result.setProperty(rt, "offset", bridging::toJs(rt, value.offset.value(), jsInvoker));
|
|
1452
|
+
}
|
|
1561
1453
|
return result;
|
|
1562
1454
|
}
|
|
1563
1455
|
};
|
|
@@ -3016,88 +2908,7 @@ private:
|
|
|
3016
2908
|
};
|
|
3017
2909
|
|
|
3018
2910
|
|
|
3019
|
-
class JSI_EXPORT
|
|
3020
|
-
protected:
|
|
3021
|
-
NativeDevMenuCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
3022
|
-
|
|
3023
|
-
public:
|
|
3024
|
-
virtual void show(jsi::Runtime &rt) = 0;
|
|
3025
|
-
virtual void reload(jsi::Runtime &rt) = 0;
|
|
3026
|
-
virtual void setProfilingEnabled(jsi::Runtime &rt, bool enabled) = 0;
|
|
3027
|
-
virtual void setHotLoadingEnabled(jsi::Runtime &rt, bool enabled) = 0;
|
|
3028
|
-
|
|
3029
|
-
};
|
|
3030
|
-
|
|
3031
|
-
template <typename T>
|
|
3032
|
-
class JSI_EXPORT NativeDevMenuCxxSpec : public TurboModule {
|
|
3033
|
-
public:
|
|
3034
|
-
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
3035
|
-
return delegate_.create(rt, propName);
|
|
3036
|
-
}
|
|
3037
|
-
|
|
3038
|
-
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
3039
|
-
return delegate_.getPropertyNames(runtime);
|
|
3040
|
-
}
|
|
3041
|
-
|
|
3042
|
-
static constexpr std::string_view kModuleName = "DevMenu";
|
|
3043
|
-
|
|
3044
|
-
protected:
|
|
3045
|
-
NativeDevMenuCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
3046
|
-
: TurboModule(std::string{NativeDevMenuCxxSpec::kModuleName}, jsInvoker),
|
|
3047
|
-
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
private:
|
|
3051
|
-
class Delegate : public NativeDevMenuCxxSpecJSI {
|
|
3052
|
-
public:
|
|
3053
|
-
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
3054
|
-
NativeDevMenuCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
|
|
3055
|
-
|
|
3056
|
-
}
|
|
3057
|
-
|
|
3058
|
-
void show(jsi::Runtime &rt) override {
|
|
3059
|
-
static_assert(
|
|
3060
|
-
bridging::getParameterCount(&T::show) == 1,
|
|
3061
|
-
"Expected show(...) to have 1 parameters");
|
|
3062
|
-
|
|
3063
|
-
return bridging::callFromJs<void>(
|
|
3064
|
-
rt, &T::show, jsInvoker_, instance_);
|
|
3065
|
-
}
|
|
3066
|
-
void reload(jsi::Runtime &rt) override {
|
|
3067
|
-
static_assert(
|
|
3068
|
-
bridging::getParameterCount(&T::reload) == 1,
|
|
3069
|
-
"Expected reload(...) to have 1 parameters");
|
|
3070
|
-
|
|
3071
|
-
return bridging::callFromJs<void>(
|
|
3072
|
-
rt, &T::reload, jsInvoker_, instance_);
|
|
3073
|
-
}
|
|
3074
|
-
void setProfilingEnabled(jsi::Runtime &rt, bool enabled) override {
|
|
3075
|
-
static_assert(
|
|
3076
|
-
bridging::getParameterCount(&T::setProfilingEnabled) == 2,
|
|
3077
|
-
"Expected setProfilingEnabled(...) to have 2 parameters");
|
|
3078
|
-
|
|
3079
|
-
return bridging::callFromJs<void>(
|
|
3080
|
-
rt, &T::setProfilingEnabled, jsInvoker_, instance_, std::move(enabled));
|
|
3081
|
-
}
|
|
3082
|
-
void setHotLoadingEnabled(jsi::Runtime &rt, bool enabled) override {
|
|
3083
|
-
static_assert(
|
|
3084
|
-
bridging::getParameterCount(&T::setHotLoadingEnabled) == 2,
|
|
3085
|
-
"Expected setHotLoadingEnabled(...) to have 2 parameters");
|
|
3086
|
-
|
|
3087
|
-
return bridging::callFromJs<void>(
|
|
3088
|
-
rt, &T::setHotLoadingEnabled, jsInvoker_, instance_, std::move(enabled));
|
|
3089
|
-
}
|
|
3090
|
-
|
|
3091
|
-
private:
|
|
3092
|
-
friend class NativeDevMenuCxxSpec;
|
|
3093
|
-
T *instance_;
|
|
3094
|
-
};
|
|
3095
|
-
|
|
3096
|
-
Delegate delegate_;
|
|
3097
|
-
};
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
class JSI_EXPORT NativeDevSettingsCxxSpecJSI : public TurboModule {
|
|
2911
|
+
class JSI_EXPORT NativeDevSettingsCxxSpecJSI : public TurboModule {
|
|
3101
2912
|
protected:
|
|
3102
2913
|
NativeDevSettingsCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
3103
2914
|
|
|
@@ -6356,69 +6167,6 @@ private:
|
|
|
6356
6167
|
};
|
|
6357
6168
|
|
|
6358
6169
|
|
|
6359
|
-
class JSI_EXPORT NativeReactDevToolsSettingsManagerCxxSpecJSI : public TurboModule {
|
|
6360
|
-
protected:
|
|
6361
|
-
NativeReactDevToolsSettingsManagerCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
6362
|
-
|
|
6363
|
-
public:
|
|
6364
|
-
virtual void setGlobalHookSettings(jsi::Runtime &rt, jsi::String settings) = 0;
|
|
6365
|
-
virtual std::optional<jsi::String> getGlobalHookSettings(jsi::Runtime &rt) = 0;
|
|
6366
|
-
|
|
6367
|
-
};
|
|
6368
|
-
|
|
6369
|
-
template <typename T>
|
|
6370
|
-
class JSI_EXPORT NativeReactDevToolsSettingsManagerCxxSpec : public TurboModule {
|
|
6371
|
-
public:
|
|
6372
|
-
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
6373
|
-
return delegate_.create(rt, propName);
|
|
6374
|
-
}
|
|
6375
|
-
|
|
6376
|
-
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
6377
|
-
return delegate_.getPropertyNames(runtime);
|
|
6378
|
-
}
|
|
6379
|
-
|
|
6380
|
-
static constexpr std::string_view kModuleName = "ReactDevToolsSettingsManager";
|
|
6381
|
-
|
|
6382
|
-
protected:
|
|
6383
|
-
NativeReactDevToolsSettingsManagerCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
6384
|
-
: TurboModule(std::string{NativeReactDevToolsSettingsManagerCxxSpec::kModuleName}, jsInvoker),
|
|
6385
|
-
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
private:
|
|
6389
|
-
class Delegate : public NativeReactDevToolsSettingsManagerCxxSpecJSI {
|
|
6390
|
-
public:
|
|
6391
|
-
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
6392
|
-
NativeReactDevToolsSettingsManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
|
|
6393
|
-
|
|
6394
|
-
}
|
|
6395
|
-
|
|
6396
|
-
void setGlobalHookSettings(jsi::Runtime &rt, jsi::String settings) override {
|
|
6397
|
-
static_assert(
|
|
6398
|
-
bridging::getParameterCount(&T::setGlobalHookSettings) == 2,
|
|
6399
|
-
"Expected setGlobalHookSettings(...) to have 2 parameters");
|
|
6400
|
-
|
|
6401
|
-
return bridging::callFromJs<void>(
|
|
6402
|
-
rt, &T::setGlobalHookSettings, jsInvoker_, instance_, std::move(settings));
|
|
6403
|
-
}
|
|
6404
|
-
std::optional<jsi::String> getGlobalHookSettings(jsi::Runtime &rt) override {
|
|
6405
|
-
static_assert(
|
|
6406
|
-
bridging::getParameterCount(&T::getGlobalHookSettings) == 1,
|
|
6407
|
-
"Expected getGlobalHookSettings(...) to have 1 parameters");
|
|
6408
|
-
|
|
6409
|
-
return bridging::callFromJs<std::optional<jsi::String>>(
|
|
6410
|
-
rt, &T::getGlobalHookSettings, jsInvoker_, instance_);
|
|
6411
|
-
}
|
|
6412
|
-
|
|
6413
|
-
private:
|
|
6414
|
-
friend class NativeReactDevToolsSettingsManagerCxxSpec;
|
|
6415
|
-
T *instance_;
|
|
6416
|
-
};
|
|
6417
|
-
|
|
6418
|
-
Delegate delegate_;
|
|
6419
|
-
};
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
6170
|
class JSI_EXPORT NativeRedBoxCxxSpecJSI : public TurboModule {
|
|
6423
6171
|
protected:
|
|
6424
6172
|
NativeRedBoxCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
@@ -6589,6 +6337,7 @@ public:
|
|
|
6589
6337
|
virtual void voidFuncAssert(jsi::Runtime &rt) = 0;
|
|
6590
6338
|
virtual jsi::Object getObjectAssert(jsi::Runtime &rt, jsi::Object arg) = 0;
|
|
6591
6339
|
virtual jsi::Value promiseAssert(jsi::Runtime &rt) = 0;
|
|
6340
|
+
virtual jsi::Value getImageUrl(jsi::Runtime &rt) = 0;
|
|
6592
6341
|
|
|
6593
6342
|
};
|
|
6594
6343
|
|
|
@@ -6798,6 +6547,14 @@ private:
|
|
|
6798
6547
|
return bridging::callFromJs<jsi::Value>(
|
|
6799
6548
|
rt, &T::promiseAssert, jsInvoker_, instance_);
|
|
6800
6549
|
}
|
|
6550
|
+
jsi::Value getImageUrl(jsi::Runtime &rt) override {
|
|
6551
|
+
static_assert(
|
|
6552
|
+
bridging::getParameterCount(&T::getImageUrl) == 1,
|
|
6553
|
+
"Expected getImageUrl(...) to have 1 parameters");
|
|
6554
|
+
|
|
6555
|
+
return bridging::callFromJs<jsi::Value>(
|
|
6556
|
+
rt, &T::getImageUrl, jsInvoker_, instance_);
|
|
6557
|
+
}
|
|
6801
6558
|
|
|
6802
6559
|
private:
|
|
6803
6560
|
friend class NativeSampleTurboModuleCxxSpec;
|
|
@@ -7937,6 +7694,312 @@ private:
|
|
|
7937
7694
|
};
|
|
7938
7695
|
|
|
7939
7696
|
|
|
7697
|
+
class JSI_EXPORT NativeDevMenuCxxSpecJSI : public TurboModule {
|
|
7698
|
+
protected:
|
|
7699
|
+
NativeDevMenuCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
7700
|
+
|
|
7701
|
+
public:
|
|
7702
|
+
virtual void show(jsi::Runtime &rt) = 0;
|
|
7703
|
+
virtual void reload(jsi::Runtime &rt) = 0;
|
|
7704
|
+
virtual void setProfilingEnabled(jsi::Runtime &rt, bool enabled) = 0;
|
|
7705
|
+
virtual void setHotLoadingEnabled(jsi::Runtime &rt, bool enabled) = 0;
|
|
7706
|
+
|
|
7707
|
+
};
|
|
7708
|
+
|
|
7709
|
+
template <typename T>
|
|
7710
|
+
class JSI_EXPORT NativeDevMenuCxxSpec : public TurboModule {
|
|
7711
|
+
public:
|
|
7712
|
+
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
7713
|
+
return delegate_.create(rt, propName);
|
|
7714
|
+
}
|
|
7715
|
+
|
|
7716
|
+
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
7717
|
+
return delegate_.getPropertyNames(runtime);
|
|
7718
|
+
}
|
|
7719
|
+
|
|
7720
|
+
static constexpr std::string_view kModuleName = "DevMenu";
|
|
7721
|
+
|
|
7722
|
+
protected:
|
|
7723
|
+
NativeDevMenuCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
7724
|
+
: TurboModule(std::string{NativeDevMenuCxxSpec::kModuleName}, jsInvoker),
|
|
7725
|
+
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
7726
|
+
|
|
7727
|
+
|
|
7728
|
+
private:
|
|
7729
|
+
class Delegate : public NativeDevMenuCxxSpecJSI {
|
|
7730
|
+
public:
|
|
7731
|
+
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
7732
|
+
NativeDevMenuCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
|
|
7733
|
+
|
|
7734
|
+
}
|
|
7735
|
+
|
|
7736
|
+
void show(jsi::Runtime &rt) override {
|
|
7737
|
+
static_assert(
|
|
7738
|
+
bridging::getParameterCount(&T::show) == 1,
|
|
7739
|
+
"Expected show(...) to have 1 parameters");
|
|
7740
|
+
|
|
7741
|
+
return bridging::callFromJs<void>(
|
|
7742
|
+
rt, &T::show, jsInvoker_, instance_);
|
|
7743
|
+
}
|
|
7744
|
+
void reload(jsi::Runtime &rt) override {
|
|
7745
|
+
static_assert(
|
|
7746
|
+
bridging::getParameterCount(&T::reload) == 1,
|
|
7747
|
+
"Expected reload(...) to have 1 parameters");
|
|
7748
|
+
|
|
7749
|
+
return bridging::callFromJs<void>(
|
|
7750
|
+
rt, &T::reload, jsInvoker_, instance_);
|
|
7751
|
+
}
|
|
7752
|
+
void setProfilingEnabled(jsi::Runtime &rt, bool enabled) override {
|
|
7753
|
+
static_assert(
|
|
7754
|
+
bridging::getParameterCount(&T::setProfilingEnabled) == 2,
|
|
7755
|
+
"Expected setProfilingEnabled(...) to have 2 parameters");
|
|
7756
|
+
|
|
7757
|
+
return bridging::callFromJs<void>(
|
|
7758
|
+
rt, &T::setProfilingEnabled, jsInvoker_, instance_, std::move(enabled));
|
|
7759
|
+
}
|
|
7760
|
+
void setHotLoadingEnabled(jsi::Runtime &rt, bool enabled) override {
|
|
7761
|
+
static_assert(
|
|
7762
|
+
bridging::getParameterCount(&T::setHotLoadingEnabled) == 2,
|
|
7763
|
+
"Expected setHotLoadingEnabled(...) to have 2 parameters");
|
|
7764
|
+
|
|
7765
|
+
return bridging::callFromJs<void>(
|
|
7766
|
+
rt, &T::setHotLoadingEnabled, jsInvoker_, instance_, std::move(enabled));
|
|
7767
|
+
}
|
|
7768
|
+
|
|
7769
|
+
private:
|
|
7770
|
+
friend class NativeDevMenuCxxSpec;
|
|
7771
|
+
T *instance_;
|
|
7772
|
+
};
|
|
7773
|
+
|
|
7774
|
+
Delegate delegate_;
|
|
7775
|
+
};
|
|
7776
|
+
|
|
7777
|
+
|
|
7778
|
+
|
|
7779
|
+
#pragma mark - NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfig
|
|
7780
|
+
|
|
7781
|
+
template <typename P0, typename P1>
|
|
7782
|
+
struct NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfig {
|
|
7783
|
+
P0 shouldReloadAndProfile;
|
|
7784
|
+
P1 recordChangeDescriptions;
|
|
7785
|
+
bool operator==(const NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfig &other) const {
|
|
7786
|
+
return shouldReloadAndProfile == other.shouldReloadAndProfile && recordChangeDescriptions == other.recordChangeDescriptions;
|
|
7787
|
+
}
|
|
7788
|
+
};
|
|
7789
|
+
|
|
7790
|
+
template <typename T>
|
|
7791
|
+
struct NativeReactDevToolsRuntimeSettingsModulePartialReloadAndProfileConfigBridging {
|
|
7792
|
+
static T types;
|
|
7793
|
+
|
|
7794
|
+
static T fromJs(
|
|
7795
|
+
jsi::Runtime &rt,
|
|
7796
|
+
const jsi::Object &value,
|
|
7797
|
+
const std::shared_ptr<CallInvoker> &jsInvoker) {
|
|
7798
|
+
T result{
|
|
7799
|
+
bridging::fromJs<decltype(types.shouldReloadAndProfile)>(rt, value.getProperty(rt, "shouldReloadAndProfile"), jsInvoker),
|
|
7800
|
+
bridging::fromJs<decltype(types.recordChangeDescriptions)>(rt, value.getProperty(rt, "recordChangeDescriptions"), jsInvoker)};
|
|
7801
|
+
return result;
|
|
7802
|
+
}
|
|
7803
|
+
|
|
7804
|
+
#ifdef DEBUG
|
|
7805
|
+
static bool shouldReloadAndProfileToJs(jsi::Runtime &rt, decltype(types.shouldReloadAndProfile) value) {
|
|
7806
|
+
return bridging::toJs(rt, value);
|
|
7807
|
+
}
|
|
7808
|
+
|
|
7809
|
+
static bool recordChangeDescriptionsToJs(jsi::Runtime &rt, decltype(types.recordChangeDescriptions) value) {
|
|
7810
|
+
return bridging::toJs(rt, value);
|
|
7811
|
+
}
|
|
7812
|
+
#endif
|
|
7813
|
+
|
|
7814
|
+
static jsi::Object toJs(
|
|
7815
|
+
jsi::Runtime &rt,
|
|
7816
|
+
const T &value,
|
|
7817
|
+
const std::shared_ptr<CallInvoker> &jsInvoker) {
|
|
7818
|
+
auto result = facebook::jsi::Object(rt);
|
|
7819
|
+
if (value.shouldReloadAndProfile) {
|
|
7820
|
+
result.setProperty(rt, "shouldReloadAndProfile", bridging::toJs(rt, value.shouldReloadAndProfile.value(), jsInvoker));
|
|
7821
|
+
}
|
|
7822
|
+
if (value.recordChangeDescriptions) {
|
|
7823
|
+
result.setProperty(rt, "recordChangeDescriptions", bridging::toJs(rt, value.recordChangeDescriptions.value(), jsInvoker));
|
|
7824
|
+
}
|
|
7825
|
+
return result;
|
|
7826
|
+
}
|
|
7827
|
+
};
|
|
7828
|
+
|
|
7829
|
+
|
|
7830
|
+
|
|
7831
|
+
#pragma mark - NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfig
|
|
7832
|
+
|
|
7833
|
+
template <typename P0, typename P1>
|
|
7834
|
+
struct NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfig {
|
|
7835
|
+
P0 shouldReloadAndProfile;
|
|
7836
|
+
P1 recordChangeDescriptions;
|
|
7837
|
+
bool operator==(const NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfig &other) const {
|
|
7838
|
+
return shouldReloadAndProfile == other.shouldReloadAndProfile && recordChangeDescriptions == other.recordChangeDescriptions;
|
|
7839
|
+
}
|
|
7840
|
+
};
|
|
7841
|
+
|
|
7842
|
+
template <typename T>
|
|
7843
|
+
struct NativeReactDevToolsRuntimeSettingsModuleReloadAndProfileConfigBridging {
|
|
7844
|
+
static T types;
|
|
7845
|
+
|
|
7846
|
+
static T fromJs(
|
|
7847
|
+
jsi::Runtime &rt,
|
|
7848
|
+
const jsi::Object &value,
|
|
7849
|
+
const std::shared_ptr<CallInvoker> &jsInvoker) {
|
|
7850
|
+
T result{
|
|
7851
|
+
bridging::fromJs<decltype(types.shouldReloadAndProfile)>(rt, value.getProperty(rt, "shouldReloadAndProfile"), jsInvoker),
|
|
7852
|
+
bridging::fromJs<decltype(types.recordChangeDescriptions)>(rt, value.getProperty(rt, "recordChangeDescriptions"), jsInvoker)};
|
|
7853
|
+
return result;
|
|
7854
|
+
}
|
|
7855
|
+
|
|
7856
|
+
#ifdef DEBUG
|
|
7857
|
+
static bool shouldReloadAndProfileToJs(jsi::Runtime &rt, decltype(types.shouldReloadAndProfile) value) {
|
|
7858
|
+
return bridging::toJs(rt, value);
|
|
7859
|
+
}
|
|
7860
|
+
|
|
7861
|
+
static bool recordChangeDescriptionsToJs(jsi::Runtime &rt, decltype(types.recordChangeDescriptions) value) {
|
|
7862
|
+
return bridging::toJs(rt, value);
|
|
7863
|
+
}
|
|
7864
|
+
#endif
|
|
7865
|
+
|
|
7866
|
+
static jsi::Object toJs(
|
|
7867
|
+
jsi::Runtime &rt,
|
|
7868
|
+
const T &value,
|
|
7869
|
+
const std::shared_ptr<CallInvoker> &jsInvoker) {
|
|
7870
|
+
auto result = facebook::jsi::Object(rt);
|
|
7871
|
+
result.setProperty(rt, "shouldReloadAndProfile", bridging::toJs(rt, value.shouldReloadAndProfile, jsInvoker));
|
|
7872
|
+
result.setProperty(rt, "recordChangeDescriptions", bridging::toJs(rt, value.recordChangeDescriptions, jsInvoker));
|
|
7873
|
+
return result;
|
|
7874
|
+
}
|
|
7875
|
+
};
|
|
7876
|
+
|
|
7877
|
+
class JSI_EXPORT NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI : public TurboModule {
|
|
7878
|
+
protected:
|
|
7879
|
+
NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
7880
|
+
|
|
7881
|
+
public:
|
|
7882
|
+
virtual void setReloadAndProfileConfig(jsi::Runtime &rt, jsi::Object config) = 0;
|
|
7883
|
+
virtual jsi::Object getReloadAndProfileConfig(jsi::Runtime &rt) = 0;
|
|
7884
|
+
|
|
7885
|
+
};
|
|
7886
|
+
|
|
7887
|
+
template <typename T>
|
|
7888
|
+
class JSI_EXPORT NativeReactDevToolsRuntimeSettingsModuleCxxSpec : public TurboModule {
|
|
7889
|
+
public:
|
|
7890
|
+
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
7891
|
+
return delegate_.create(rt, propName);
|
|
7892
|
+
}
|
|
7893
|
+
|
|
7894
|
+
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
7895
|
+
return delegate_.getPropertyNames(runtime);
|
|
7896
|
+
}
|
|
7897
|
+
|
|
7898
|
+
static constexpr std::string_view kModuleName = "ReactDevToolsRuntimeSettingsModule";
|
|
7899
|
+
|
|
7900
|
+
protected:
|
|
7901
|
+
NativeReactDevToolsRuntimeSettingsModuleCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
7902
|
+
: TurboModule(std::string{NativeReactDevToolsRuntimeSettingsModuleCxxSpec::kModuleName}, jsInvoker),
|
|
7903
|
+
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
7904
|
+
|
|
7905
|
+
|
|
7906
|
+
private:
|
|
7907
|
+
class Delegate : public NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI {
|
|
7908
|
+
public:
|
|
7909
|
+
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
7910
|
+
NativeReactDevToolsRuntimeSettingsModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
|
|
7911
|
+
|
|
7912
|
+
}
|
|
7913
|
+
|
|
7914
|
+
void setReloadAndProfileConfig(jsi::Runtime &rt, jsi::Object config) override {
|
|
7915
|
+
static_assert(
|
|
7916
|
+
bridging::getParameterCount(&T::setReloadAndProfileConfig) == 2,
|
|
7917
|
+
"Expected setReloadAndProfileConfig(...) to have 2 parameters");
|
|
7918
|
+
|
|
7919
|
+
return bridging::callFromJs<void>(
|
|
7920
|
+
rt, &T::setReloadAndProfileConfig, jsInvoker_, instance_, std::move(config));
|
|
7921
|
+
}
|
|
7922
|
+
jsi::Object getReloadAndProfileConfig(jsi::Runtime &rt) override {
|
|
7923
|
+
static_assert(
|
|
7924
|
+
bridging::getParameterCount(&T::getReloadAndProfileConfig) == 1,
|
|
7925
|
+
"Expected getReloadAndProfileConfig(...) to have 1 parameters");
|
|
7926
|
+
|
|
7927
|
+
return bridging::callFromJs<jsi::Object>(
|
|
7928
|
+
rt, &T::getReloadAndProfileConfig, jsInvoker_, instance_);
|
|
7929
|
+
}
|
|
7930
|
+
|
|
7931
|
+
private:
|
|
7932
|
+
friend class NativeReactDevToolsRuntimeSettingsModuleCxxSpec;
|
|
7933
|
+
T *instance_;
|
|
7934
|
+
};
|
|
7935
|
+
|
|
7936
|
+
Delegate delegate_;
|
|
7937
|
+
};
|
|
7938
|
+
|
|
7939
|
+
|
|
7940
|
+
class JSI_EXPORT NativeReactDevToolsSettingsManagerCxxSpecJSI : public TurboModule {
|
|
7941
|
+
protected:
|
|
7942
|
+
NativeReactDevToolsSettingsManagerCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
7943
|
+
|
|
7944
|
+
public:
|
|
7945
|
+
virtual void setGlobalHookSettings(jsi::Runtime &rt, jsi::String settings) = 0;
|
|
7946
|
+
virtual std::optional<jsi::String> getGlobalHookSettings(jsi::Runtime &rt) = 0;
|
|
7947
|
+
|
|
7948
|
+
};
|
|
7949
|
+
|
|
7950
|
+
template <typename T>
|
|
7951
|
+
class JSI_EXPORT NativeReactDevToolsSettingsManagerCxxSpec : public TurboModule {
|
|
7952
|
+
public:
|
|
7953
|
+
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
7954
|
+
return delegate_.create(rt, propName);
|
|
7955
|
+
}
|
|
7956
|
+
|
|
7957
|
+
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
7958
|
+
return delegate_.getPropertyNames(runtime);
|
|
7959
|
+
}
|
|
7960
|
+
|
|
7961
|
+
static constexpr std::string_view kModuleName = "ReactDevToolsSettingsManager";
|
|
7962
|
+
|
|
7963
|
+
protected:
|
|
7964
|
+
NativeReactDevToolsSettingsManagerCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
7965
|
+
: TurboModule(std::string{NativeReactDevToolsSettingsManagerCxxSpec::kModuleName}, jsInvoker),
|
|
7966
|
+
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
7967
|
+
|
|
7968
|
+
|
|
7969
|
+
private:
|
|
7970
|
+
class Delegate : public NativeReactDevToolsSettingsManagerCxxSpecJSI {
|
|
7971
|
+
public:
|
|
7972
|
+
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
7973
|
+
NativeReactDevToolsSettingsManagerCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
|
|
7974
|
+
|
|
7975
|
+
}
|
|
7976
|
+
|
|
7977
|
+
void setGlobalHookSettings(jsi::Runtime &rt, jsi::String settings) override {
|
|
7978
|
+
static_assert(
|
|
7979
|
+
bridging::getParameterCount(&T::setGlobalHookSettings) == 2,
|
|
7980
|
+
"Expected setGlobalHookSettings(...) to have 2 parameters");
|
|
7981
|
+
|
|
7982
|
+
return bridging::callFromJs<void>(
|
|
7983
|
+
rt, &T::setGlobalHookSettings, jsInvoker_, instance_, std::move(settings));
|
|
7984
|
+
}
|
|
7985
|
+
std::optional<jsi::String> getGlobalHookSettings(jsi::Runtime &rt) override {
|
|
7986
|
+
static_assert(
|
|
7987
|
+
bridging::getParameterCount(&T::getGlobalHookSettings) == 1,
|
|
7988
|
+
"Expected getGlobalHookSettings(...) to have 1 parameters");
|
|
7989
|
+
|
|
7990
|
+
return bridging::callFromJs<std::optional<jsi::String>>(
|
|
7991
|
+
rt, &T::getGlobalHookSettings, jsInvoker_, instance_);
|
|
7992
|
+
}
|
|
7993
|
+
|
|
7994
|
+
private:
|
|
7995
|
+
friend class NativeReactDevToolsSettingsManagerCxxSpec;
|
|
7996
|
+
T *instance_;
|
|
7997
|
+
};
|
|
7998
|
+
|
|
7999
|
+
Delegate delegate_;
|
|
8000
|
+
};
|
|
8001
|
+
|
|
8002
|
+
|
|
7940
8003
|
|
|
7941
8004
|
#pragma mark - NativeIdleCallbacksIdleDeadline
|
|
7942
8005
|
|
|
@@ -8660,7 +8723,7 @@ struct NativePerformancePerformanceObserverInitBridging {
|
|
|
8660
8723
|
|
|
8661
8724
|
#pragma mark - NativePerformanceRawPerformanceEntry
|
|
8662
8725
|
|
|
8663
|
-
template <typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6>
|
|
8726
|
+
template <typename P0, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10, typename P11, typename P12, typename P13>
|
|
8664
8727
|
struct NativePerformanceRawPerformanceEntry {
|
|
8665
8728
|
P0 name;
|
|
8666
8729
|
P1 entryType;
|
|
@@ -8669,8 +8732,15 @@ struct NativePerformanceRawPerformanceEntry {
|
|
|
8669
8732
|
P4 processingStart;
|
|
8670
8733
|
P5 processingEnd;
|
|
8671
8734
|
P6 interactionId;
|
|
8735
|
+
P7 fetchStart;
|
|
8736
|
+
P8 requestStart;
|
|
8737
|
+
P9 connectStart;
|
|
8738
|
+
P10 connectEnd;
|
|
8739
|
+
P11 responseStart;
|
|
8740
|
+
P12 responseEnd;
|
|
8741
|
+
P13 responseStatus;
|
|
8672
8742
|
bool operator==(const NativePerformanceRawPerformanceEntry &other) const {
|
|
8673
|
-
return name == other.name && entryType == other.entryType && startTime == other.startTime && duration == other.duration && processingStart == other.processingStart && processingEnd == other.processingEnd && interactionId == other.interactionId;
|
|
8743
|
+
return name == other.name && entryType == other.entryType && startTime == other.startTime && duration == other.duration && processingStart == other.processingStart && processingEnd == other.processingEnd && interactionId == other.interactionId && fetchStart == other.fetchStart && requestStart == other.requestStart && connectStart == other.connectStart && connectEnd == other.connectEnd && responseStart == other.responseStart && responseEnd == other.responseEnd && responseStatus == other.responseStatus;
|
|
8674
8744
|
}
|
|
8675
8745
|
};
|
|
8676
8746
|
|
|
@@ -8689,7 +8759,14 @@ struct NativePerformanceRawPerformanceEntryBridging {
|
|
|
8689
8759
|
bridging::fromJs<decltype(types.duration)>(rt, value.getProperty(rt, "duration"), jsInvoker),
|
|
8690
8760
|
bridging::fromJs<decltype(types.processingStart)>(rt, value.getProperty(rt, "processingStart"), jsInvoker),
|
|
8691
8761
|
bridging::fromJs<decltype(types.processingEnd)>(rt, value.getProperty(rt, "processingEnd"), jsInvoker),
|
|
8692
|
-
bridging::fromJs<decltype(types.interactionId)>(rt, value.getProperty(rt, "interactionId"), jsInvoker)
|
|
8762
|
+
bridging::fromJs<decltype(types.interactionId)>(rt, value.getProperty(rt, "interactionId"), jsInvoker),
|
|
8763
|
+
bridging::fromJs<decltype(types.fetchStart)>(rt, value.getProperty(rt, "fetchStart"), jsInvoker),
|
|
8764
|
+
bridging::fromJs<decltype(types.requestStart)>(rt, value.getProperty(rt, "requestStart"), jsInvoker),
|
|
8765
|
+
bridging::fromJs<decltype(types.connectStart)>(rt, value.getProperty(rt, "connectStart"), jsInvoker),
|
|
8766
|
+
bridging::fromJs<decltype(types.connectEnd)>(rt, value.getProperty(rt, "connectEnd"), jsInvoker),
|
|
8767
|
+
bridging::fromJs<decltype(types.responseStart)>(rt, value.getProperty(rt, "responseStart"), jsInvoker),
|
|
8768
|
+
bridging::fromJs<decltype(types.responseEnd)>(rt, value.getProperty(rt, "responseEnd"), jsInvoker),
|
|
8769
|
+
bridging::fromJs<decltype(types.responseStatus)>(rt, value.getProperty(rt, "responseStatus"), jsInvoker)};
|
|
8693
8770
|
return result;
|
|
8694
8771
|
}
|
|
8695
8772
|
|
|
@@ -8721,6 +8798,34 @@ struct NativePerformanceRawPerformanceEntryBridging {
|
|
|
8721
8798
|
static double interactionIdToJs(jsi::Runtime &rt, decltype(types.interactionId) value) {
|
|
8722
8799
|
return bridging::toJs(rt, value);
|
|
8723
8800
|
}
|
|
8801
|
+
|
|
8802
|
+
static double fetchStartToJs(jsi::Runtime &rt, decltype(types.fetchStart) value) {
|
|
8803
|
+
return bridging::toJs(rt, value);
|
|
8804
|
+
}
|
|
8805
|
+
|
|
8806
|
+
static double requestStartToJs(jsi::Runtime &rt, decltype(types.requestStart) value) {
|
|
8807
|
+
return bridging::toJs(rt, value);
|
|
8808
|
+
}
|
|
8809
|
+
|
|
8810
|
+
static double connectStartToJs(jsi::Runtime &rt, decltype(types.connectStart) value) {
|
|
8811
|
+
return bridging::toJs(rt, value);
|
|
8812
|
+
}
|
|
8813
|
+
|
|
8814
|
+
static double connectEndToJs(jsi::Runtime &rt, decltype(types.connectEnd) value) {
|
|
8815
|
+
return bridging::toJs(rt, value);
|
|
8816
|
+
}
|
|
8817
|
+
|
|
8818
|
+
static double responseStartToJs(jsi::Runtime &rt, decltype(types.responseStart) value) {
|
|
8819
|
+
return bridging::toJs(rt, value);
|
|
8820
|
+
}
|
|
8821
|
+
|
|
8822
|
+
static double responseEndToJs(jsi::Runtime &rt, decltype(types.responseEnd) value) {
|
|
8823
|
+
return bridging::toJs(rt, value);
|
|
8824
|
+
}
|
|
8825
|
+
|
|
8826
|
+
static double responseStatusToJs(jsi::Runtime &rt, decltype(types.responseStatus) value) {
|
|
8827
|
+
return bridging::toJs(rt, value);
|
|
8828
|
+
}
|
|
8724
8829
|
#endif
|
|
8725
8830
|
|
|
8726
8831
|
static jsi::Object toJs(
|
|
@@ -8741,6 +8846,27 @@ struct NativePerformanceRawPerformanceEntryBridging {
|
|
|
8741
8846
|
if (value.interactionId) {
|
|
8742
8847
|
result.setProperty(rt, "interactionId", bridging::toJs(rt, value.interactionId.value(), jsInvoker));
|
|
8743
8848
|
}
|
|
8849
|
+
if (value.fetchStart) {
|
|
8850
|
+
result.setProperty(rt, "fetchStart", bridging::toJs(rt, value.fetchStart.value(), jsInvoker));
|
|
8851
|
+
}
|
|
8852
|
+
if (value.requestStart) {
|
|
8853
|
+
result.setProperty(rt, "requestStart", bridging::toJs(rt, value.requestStart.value(), jsInvoker));
|
|
8854
|
+
}
|
|
8855
|
+
if (value.connectStart) {
|
|
8856
|
+
result.setProperty(rt, "connectStart", bridging::toJs(rt, value.connectStart.value(), jsInvoker));
|
|
8857
|
+
}
|
|
8858
|
+
if (value.connectEnd) {
|
|
8859
|
+
result.setProperty(rt, "connectEnd", bridging::toJs(rt, value.connectEnd.value(), jsInvoker));
|
|
8860
|
+
}
|
|
8861
|
+
if (value.responseStart) {
|
|
8862
|
+
result.setProperty(rt, "responseStart", bridging::toJs(rt, value.responseStart.value(), jsInvoker));
|
|
8863
|
+
}
|
|
8864
|
+
if (value.responseEnd) {
|
|
8865
|
+
result.setProperty(rt, "responseEnd", bridging::toJs(rt, value.responseEnd.value(), jsInvoker));
|
|
8866
|
+
}
|
|
8867
|
+
if (value.responseStatus) {
|
|
8868
|
+
result.setProperty(rt, "responseStatus", bridging::toJs(rt, value.responseStatus.value(), jsInvoker));
|
|
8869
|
+
}
|
|
8744
8870
|
return result;
|
|
8745
8871
|
}
|
|
8746
8872
|
};
|