@office-iss/react-native-win32 0.0.0-canary.312 → 0.0.0-canary.315
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 +83 -71
- package/CHANGELOG.json +111 -0
- package/CHANGELOG.md +36 -1
- package/IntegrationTests/AppEventsTest.js +3 -3
- package/IntegrationTests/GlobalEvalWithSourceUrlTest.js +22 -9
- package/IntegrationTests/IntegrationTestsApp.js +3 -3
- package/IntegrationTests/LayoutEventsTest.js +3 -4
- package/IntegrationTests/LoggingTestModule.js +1 -1
- package/IntegrationTests/PromiseTest.js +1 -0
- package/IntegrationTests/RNTesterDeepEquals.js +51 -0
- package/IntegrationTests/TimersTest.js +38 -12
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +23 -25
- package/Libraries/Alert/Alert.js +60 -26
- package/Libraries/Alert/Alert.win32.js +42 -7
- package/Libraries/Animated/AnimatedEvent.js +35 -14
- package/Libraries/Animated/AnimatedExports.js +27 -3
- package/Libraries/Animated/AnimatedExports.js.flow +2 -2
- package/Libraries/Animated/AnimatedImplementation.js +157 -27
- package/Libraries/Animated/AnimatedMock.js +3 -1
- package/Libraries/Animated/AnimationTimingUtils.js +39 -0
- package/Libraries/Animated/Easing.js +4 -3
- package/Libraries/Animated/NativeAnimatedAllowlist.js +58 -12
- package/Libraries/Animated/animations/Animation.js +14 -5
- package/Libraries/Animated/animations/DecayAnimation.js +6 -3
- package/Libraries/Animated/animations/SpringAnimation.js +8 -4
- package/Libraries/Animated/animations/TimingAnimation.js +16 -4
- package/Libraries/Animated/bezier.js +39 -124
- package/Libraries/Animated/components/AnimatedFlatList.js +4 -2
- package/Libraries/Animated/components/AnimatedImage.js +5 -4
- package/Libraries/Animated/components/AnimatedScrollView.js +9 -10
- package/Libraries/Animated/components/AnimatedSectionList.js +4 -2
- package/Libraries/Animated/components/AnimatedText.js +3 -3
- package/Libraries/Animated/createAnimatedComponent.js +35 -32
- package/Libraries/Animated/nodes/AnimatedAddition.js +9 -3
- package/Libraries/Animated/nodes/AnimatedColor.js +31 -21
- package/Libraries/Animated/nodes/AnimatedDiffClamp.js +11 -3
- package/Libraries/Animated/nodes/AnimatedDivision.js +9 -3
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +154 -39
- package/Libraries/Animated/nodes/AnimatedModulo.js +10 -3
- package/Libraries/Animated/nodes/AnimatedMultiplication.js +9 -3
- package/Libraries/Animated/nodes/AnimatedNode.js +82 -8
- package/Libraries/Animated/nodes/AnimatedObject.js +15 -7
- package/Libraries/Animated/nodes/AnimatedProps.js +37 -7
- package/Libraries/Animated/nodes/AnimatedStyle.js +7 -3
- package/Libraries/Animated/nodes/AnimatedSubtraction.js +9 -3
- package/Libraries/Animated/nodes/AnimatedTracking.js +23 -9
- package/Libraries/Animated/nodes/AnimatedTransform.js +8 -2
- package/Libraries/Animated/nodes/AnimatedValue.js +30 -76
- package/Libraries/Animated/nodes/AnimatedValueXY.js +16 -11
- package/Libraries/AppState/AppState.js +34 -23
- package/Libraries/AppState/useAppState.d.ts +20 -0
- package/Libraries/AppState/useAppState.js +64 -0
- package/Libraries/BatchedBridge/MessageQueue.js +43 -53
- package/Libraries/BatchedBridge/NativeModules.js +8 -1
- package/Libraries/Blob/Blob.js +8 -2
- package/Libraries/Blob/File.js +3 -1
- package/Libraries/Blob/FileReader.js +86 -26
- package/Libraries/Blob/URL.js +10 -7
- package/Libraries/Blob/URLSearchParams.js +13 -7
- package/Libraries/Blob/URLSearchParams.js.flow +6 -6
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +25 -8
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +94 -68
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +97 -71
- package/Libraries/Components/AccessibilityInfo/__tests__/AccessibilityInfoWin32-test.js +75 -0
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +67 -54
- package/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js +2 -2
- package/Libraries/Components/Button/ButtonWin32.js +1 -1
- package/Libraries/Components/Button/ButtonWin32.js.map +1 -1
- package/Libraries/Components/Button.js +101 -195
- package/Libraries/Components/Button.win32.js +101 -195
- package/Libraries/Components/Clipboard/Clipboard.js +5 -0
- package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +2 -2
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +12 -71
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js +2 -0
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +1 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.js +28 -33
- package/Libraries/Components/Keyboard/Keyboard.js +28 -67
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +22 -11
- package/Libraries/Components/LayoutConformance/LayoutConformance.js +1 -27
- package/Libraries/Components/Pressable/Pressable.js +49 -25
- package/Libraries/Components/Pressable/Pressable.win32.js +55 -31
- package/Libraries/Components/Pressable/useAndroidRippleForView.js +7 -8
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +5 -6
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +4 -4
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.js +2 -2
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.js +17 -0
- package/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js +2 -2
- package/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js +2 -2
- package/Libraries/Components/RefreshControl/RefreshControl.js +41 -52
- package/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js +2 -2
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +8 -8
- package/Libraries/Components/SafeAreaView/SafeAreaView.win32.js +8 -8
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js +2 -2
- package/Libraries/Components/ScrollView/ScrollView.js +223 -134
- package/Libraries/Components/ScrollView/ScrollViewCommands.js +6 -6
- package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +1 -4
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +4 -4
- package/Libraries/Components/StatusBar/StatusBar.js +113 -174
- package/Libraries/Components/Switch/AndroidSwitchNativeComponent.js +2 -2
- package/Libraries/Components/Switch/Switch.js +86 -84
- package/Libraries/Components/Switch/SwitchNativeComponent.js +2 -2
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +31 -16
- package/Libraries/Components/TextInput/InputAccessoryView.js +22 -62
- package/Libraries/Components/TextInput/RCTInputAccessoryViewNativeComponent.js +2 -2
- package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +1 -1
- package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +2 -2
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +5 -1
- package/Libraries/Components/TextInput/TextInput.flow.js +51 -52
- package/Libraries/Components/TextInput/TextInput.flow.win32.js +52 -53
- package/Libraries/Components/TextInput/TextInput.js +176 -178
- package/Libraries/Components/TextInput/TextInput.win32.js +129 -132
- package/Libraries/Components/TextInput/TextInputNativeCommands.js +3 -3
- package/Libraries/Components/TextInput/TextInputState.js +1 -1
- package/Libraries/Components/TextInput/TextInputState.win32.js +1 -1
- package/Libraries/Components/ToastAndroid/ToastAndroid.android.js +30 -24
- package/Libraries/Components/ToastAndroid/ToastAndroidFallback.js +5 -5
- package/Libraries/Components/Touchable/PooledClass.js +11 -5
- package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js +2 -2
- package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
- package/Libraries/Components/Touchable/Touchable.js +100 -101
- package/Libraries/Components/Touchable/Touchable.win32.js +105 -106
- package/Libraries/Components/Touchable/TouchableHighlight.js +46 -122
- package/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +2 -4
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +20 -46
- package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +20 -45
- package/Libraries/Components/Touchable/TouchableOpacity.js +14 -93
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +89 -90
- package/Libraries/Components/UnimplementedViews/UnimplementedNativeViewNativeComponent.js +2 -2
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +24 -2
- package/Libraries/Components/View/View.js +43 -19
- package/Libraries/Components/View/View.win32.js +34 -7
- package/Libraries/Components/View/ViewAccessibility.d.ts +26 -5
- package/Libraries/Components/View/ViewAccessibility.js +30 -9
- package/Libraries/Components/View/ViewAccessibility.win32.js +30 -9
- package/Libraries/Components/View/ViewNativeComponent.js +4 -6
- package/Libraries/Components/View/ViewPropTypes.d.ts +14 -9
- package/Libraries/Components/View/ViewPropTypes.js +96 -29
- package/Libraries/Components/View/ViewPropTypes.win32.js +102 -35
- package/Libraries/Core/Devtools/loadBundleFromServer.js +8 -0
- package/Libraries/Core/Devtools/loadBundleFromServer.win32.js +8 -0
- package/Libraries/Core/ExceptionsManager.js +3 -9
- package/Libraries/Core/InitializeCore.js +9 -14
- package/Libraries/Core/ReactFiberErrorDialog.js +6 -6
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Core/ReactNativeVersionCheck.js +1 -1
- package/Libraries/Core/ReactNativeVersionCheck.win32.js +1 -1
- package/Libraries/Core/Timers/JSTimers.js +96 -76
- package/Libraries/Core/Timers/immediateShim.js +6 -4
- package/Libraries/Core/Timers/queueMicrotask.js +3 -4
- package/Libraries/Core/polyfillArrayES2023Methods.js +40 -0
- package/Libraries/Core/setUpBatchedBridge.js +1 -1
- package/Libraries/Core/setUpGlobals.js +9 -4
- package/Libraries/Core/setUpNavigator.js +6 -1
- package/Libraries/Core/setUpPerformance.js +4 -21
- package/Libraries/Core/setUpReactDevTools.js +10 -107
- package/Libraries/Core/setUpReactRefresh.js +2 -1
- package/Libraries/Core/setUpSegmentFetcher.js +1 -1
- package/Libraries/Core/setUpTimers.js +0 -6
- package/Libraries/Core/setUpXHR.js +6 -2
- package/Libraries/Debugging/DebuggingOverlay.js +2 -2
- package/Libraries/Debugging/DebuggingOverlayNativeComponent.js +2 -2
- package/Libraries/Debugging/DebuggingOverlayRegistry.js +1 -1
- package/Libraries/EventEmitter/NativeEventEmitter.js +40 -9
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +15 -8
- package/Libraries/EventEmitter/RCTEventEmitter.js +16 -2
- package/Libraries/EventEmitter/RCTNativeAppEventEmitter.js +3 -0
- package/Libraries/Image/AssetSourceResolver.js +19 -27
- package/Libraries/Image/Image.android.js +33 -50
- package/Libraries/Image/Image.ios.js +110 -64
- package/Libraries/Image/Image.win32.js +123 -81
- package/Libraries/Image/ImageBackground.js +30 -18
- package/Libraries/Image/ImageInjection.js +12 -23
- package/Libraries/Image/ImageProps.js +145 -125
- package/Libraries/Image/ImageSource.js +10 -12
- package/Libraries/Image/ImageSourceUtils.js +19 -8
- package/Libraries/Image/ImageTypes.flow.js +2 -0
- package/Libraries/Image/ImageViewNativeComponent.js +1 -1
- package/Libraries/Image/RelativeImageStub.js +3 -3
- package/Libraries/Image/resolveAssetSource.js +1 -1
- package/Libraries/Interaction/PanResponder.js +103 -98
- package/Libraries/LayoutAnimation/LayoutAnimation.js +36 -20
- package/Libraries/Linking/Linking.js +25 -24
- package/Libraries/Lists/FlatList.js +25 -19
- package/Libraries/Lists/SectionList.js +13 -4
- package/Libraries/Lists/VirtualizedList.js +3 -0
- package/Libraries/Lists/VirtualizedSectionList.js +4 -0
- package/Libraries/LogBox/Data/LogBoxData.js +1 -1
- package/Libraries/LogBox/LogBox.js +6 -5
- package/Libraries/LogBox/LogBoxInspectorContainer.js +24 -2
- package/Libraries/LogBox/LogBoxNotificationContainer.js +34 -5
- package/Libraries/LogBox/UI/AnsiHighlight.js +4 -2
- package/Libraries/LogBox/UI/LogBoxButton.js +47 -24
- package/Libraries/LogBox/UI/LogBoxInspector.js +61 -1
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.win32.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +10 -1
- package/Libraries/LogBox/UI/LogBoxInspectorFooterButton.js +3 -1
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +8 -2
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js +8 -2
- package/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js +9 -2
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +17 -4
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.win32.js +17 -4
- package/Libraries/LogBox/UI/LogBoxInspectorSection.js +3 -1
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +3 -1
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.win32.js +3 -1
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +5 -1
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.win32.js +5 -1
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +4 -2
- package/Libraries/LogBox/UI/LogBoxMessage.js +19 -6
- package/Libraries/LogBox/UI/LogBoxNotification.js +2 -0
- package/Libraries/LogBox/UI/LogBoxNotificationCountBadge.js +4 -1
- package/Libraries/LogBox/UI/LogBoxNotificationDismissButton.js +3 -3
- package/Libraries/LogBox/UI/LogBoxNotificationMessage.js +1 -0
- package/Libraries/LogBox/UI/LogBoxStyle.js +0 -4
- package/Libraries/LogBox/UI/LogBoxStyle.win32.js +0 -4
- package/Libraries/Modal/Modal.js +90 -86
- package/Libraries/Modal/RCTModalHostViewNativeComponent.js +2 -2
- package/Libraries/NativeComponent/BaseViewConfig.android.js +39 -1
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +21 -0
- package/Libraries/NativeComponent/BaseViewConfig.win32.js +21 -0
- package/Libraries/NativeComponent/NativeComponentRegistry.js +2 -2
- package/Libraries/NativeComponent/ViewConfig.js +3 -3
- package/Libraries/NativeComponent/ViewConfigIgnore.js +4 -2
- package/Libraries/Network/FormData.js +1 -1
- package/Libraries/Network/RCTNetworking.android.js +19 -14
- package/Libraries/Network/RCTNetworking.ios.js +2 -2
- package/Libraries/Network/RCTNetworking.js.flow +3 -3
- package/Libraries/Network/RCTNetworking.win32.js +2 -2
- package/Libraries/Network/XMLHttpRequest.js +93 -58
- package/Libraries/Network/convertRequestBody.js +43 -13
- package/Libraries/Performance/Systrace.js +36 -0
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +30 -19
- package/Libraries/PersonaCoin/PersonaCoinTypes.js +2 -2
- package/Libraries/PersonaCoin/PersonaCoinTypes.js.map +1 -1
- package/Libraries/Pressability/HoverState.js +3 -3
- package/Libraries/Pressability/HoverState.win32.js +3 -3
- package/Libraries/Pressability/Pressability.js +17 -11
- package/Libraries/Pressability/Pressability.win32.js +21 -15
- package/Libraries/Pressability/PressabilityDebug.js +27 -1
- package/Libraries/PushNotificationIOS/PushNotificationIOS.js +20 -12
- package/Libraries/QuirkSettings/NativeQuirkSettings.js +2 -2
- package/Libraries/ReactNative/AppContainer-dev.js +6 -16
- package/Libraries/ReactNative/AppContainer-prod.js +1 -2
- package/Libraries/ReactNative/AppContainer.js +2 -2
- package/Libraries/ReactNative/AppRegistry.flow.js +11 -5
- package/Libraries/ReactNative/AppRegistry.js +16 -12
- package/Libraries/ReactNative/AppRegistry.js.flow +1 -1
- package/Libraries/ReactNative/AppRegistryImpl.js +77 -33
- package/Libraries/ReactNative/BridgelessUIManager.js +97 -41
- package/Libraries/ReactNative/DeprecatedPerformanceLoggerStub.js +83 -0
- package/Libraries/ReactNative/DisplayMode.js +1 -1
- package/Libraries/ReactNative/FabricUIManager.js +92 -29
- package/Libraries/ReactNative/I18nManager.js +20 -0
- package/Libraries/{Utilities/IPerformanceLogger.js → ReactNative/IPerformanceLogger.flow.js} +12 -9
- package/Libraries/ReactNative/PaperUIManager.js +9 -8
- package/Libraries/ReactNative/PaperUIManager.win32.js +7 -6
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +2 -0
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.js +62 -45
- package/Libraries/ReactNative/RendererImplementation.js +26 -142
- package/Libraries/ReactNative/RendererProxy.js +4 -15
- package/Libraries/ReactNative/UIManager.js +86 -13
- package/Libraries/ReactNative/getNativeComponentAttributes.js +54 -15
- package/Libraries/ReactNative/renderApplication.js +33 -59
- package/Libraries/ReactNative/requireNativeComponent.js +7 -5
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +3124 -1599
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +2237 -1009
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +2467 -1138
- package/Libraries/Renderer/shims/ReactFabric.js +2 -2
- package/Libraries/Renderer/shims/ReactNativeTypes.js +36 -66
- package/Libraries/Renderer/shims/ReactNativeTypes.win32.js +36 -66
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +4 -4
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -2
- package/Libraries/Settings/Settings.ios.js +92 -37
- package/Libraries/Settings/Settings.js +3 -3
- package/Libraries/Settings/Settings.win32.js +3 -3
- package/Libraries/Settings/SettingsFallback.js +3 -3
- package/Libraries/Share/Share.js +26 -29
- package/Libraries/StyleSheet/PlatformColorValueTypes.android.js +15 -3
- package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +14 -4
- package/Libraries/StyleSheet/PlatformColorValueTypes.js.flow +7 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.win32.js +5 -5
- package/Libraries/StyleSheet/PlatformColorValueTypesWin32.js +2 -2
- package/Libraries/StyleSheet/StyleSheet.js +46 -9
- package/Libraries/StyleSheet/StyleSheet.js.flow +6 -9
- package/Libraries/StyleSheet/StyleSheetExports.js +7 -5
- package/Libraries/StyleSheet/StyleSheetExports.js.flow +4 -4
- package/Libraries/StyleSheet/StyleSheetTypes.js +76 -50
- package/Libraries/StyleSheet/flattenStyle.js +29 -14
- package/Libraries/StyleSheet/parsePlatformColorArgs.js +55 -0
- package/Libraries/StyleSheet/private/_TransformStyle.js +17 -17
- package/Libraries/StyleSheet/processBackgroundImage.js +43 -15
- package/Libraries/StyleSheet/processBackgroundSize.js +7 -12
- package/Libraries/StyleSheet/processBoxShadow.js +9 -47
- package/Libraries/StyleSheet/processColor.js +2 -1
- package/Libraries/StyleSheet/processFilter.js +24 -13
- package/Libraries/StyleSheet/processFontVariationSettings.js +61 -0
- package/Libraries/StyleSheet/processTransform.js +52 -23
- package/Libraries/StyleSheet/processTransformOrigin.js +18 -7
- package/Libraries/StyleSheet/setNormalizedColorAlpha.js +8 -7
- package/Libraries/StyleSheet/splitLayoutProps.js +6 -6
- package/Libraries/Text/Text.d.ts +16 -14
- package/Libraries/Text/Text.js +68 -40
- package/Libraries/Text/Text.win32.js +68 -40
- package/Libraries/Text/TextEffectNativeComponent.js +31 -0
- package/Libraries/Text/TextNativeComponent.js +24 -14
- package/Libraries/Text/TextNativeComponent.win32.js +15 -18
- package/Libraries/Text/TextProps.js +80 -91
- package/Libraries/Text/TextProps.win32.js +83 -94
- package/Libraries/Text/__tests__/TextNativeComponentWin32-test.js +26 -0
- package/Libraries/Text/requireNativeTextEffect.js +28 -0
- package/Libraries/TurboModule/RCTExport.js +2 -2
- package/Libraries/TurboModule/TurboModuleRegistry.js +3 -3
- package/Libraries/Types/CodegenTypes.js +8 -6
- package/Libraries/Types/CoreEventTypes.js +48 -29
- package/Libraries/Types/CoreEventTypes.win32.js +55 -36
- package/Libraries/Types/ReactDevToolsTypes.js +1 -1
- package/Libraries/Types/UIManagerJSInterface.js +4 -4
- package/Libraries/Utilities/Appearance.js +35 -18
- package/Libraries/Utilities/BackHandler.android.js +24 -31
- package/Libraries/Utilities/BackHandler.ios.js +3 -1
- package/Libraries/Utilities/BackHandler.js.flow +23 -2
- package/Libraries/Utilities/BackHandler.win32.js +24 -31
- package/Libraries/Utilities/DevSettings.js +8 -1
- package/Libraries/Utilities/Dimensions.js +20 -14
- package/Libraries/Utilities/Dimensions.win32.js +20 -15
- package/Libraries/Utilities/FeatureDetection.js +8 -3
- package/Libraries/Utilities/HMRClient.js +41 -2
- package/Libraries/Utilities/HardwareBackPressEvent.js +22 -0
- package/Libraries/Utilities/PixelRatio.js +5 -2
- package/Libraries/Utilities/Platform.js.flow +4 -0
- package/Libraries/Utilities/PlatformTypes.js +78 -1
- package/Libraries/Utilities/ReactNativeTestTools.js +9 -6
- package/Libraries/Utilities/binaryToBase64.js +1 -1
- package/Libraries/Utilities/codegenNativeCommands.js +17 -7
- package/Libraries/Utilities/codegenNativeComponent.js +11 -5
- package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +7 -5
- package/Libraries/Utilities/differ/deepDiffer.js +11 -6
- package/Libraries/Utilities/differ/insetsDiffer.js +8 -8
- package/Libraries/Utilities/differ/pointsDiffer.js +7 -4
- package/Libraries/Utilities/logError.js +1 -0
- package/Libraries/Utilities/stringifySafe.js +1 -1
- package/Libraries/Utilities/stringifyViewConfig.js +3 -2
- package/Libraries/Utilities/useColorScheme.js +11 -1
- package/Libraries/Utilities/useMergeRefs.js +17 -26
- package/Libraries/Utilities/useWindowDimensions.js +10 -4
- package/Libraries/Vibration/Vibration.js +15 -13
- package/Libraries/WebSocket/WebSocket.js +26 -20
- package/Libraries/WebSocket/WebSocketInterceptor.js +1 -0
- package/Libraries/platform-types.d.ts +1 -0
- package/Libraries/promiseRejectionTrackingOptions.js +5 -1
- package/Libraries/vendor/core/ErrorUtils.js +4 -4
- package/Libraries/vendor/emitter/EventEmitter.js +36 -22
- package/flow/HermesInternalType.js +14 -14
- package/{Libraries/Modal/NativeModalManager.js → flow/LegacyFunction.js} +3 -4
- package/{Libraries/Image/AssetRegistry.js → flow/LegacyObject.js} +3 -4
- package/flow/bom.js.flow +255 -103
- package/flow/cssom.js.flow +24 -32
- package/flow/dom.js.flow +261 -275
- package/flow/global.js +50 -42
- package/index.js +89 -89
- package/index.win32.js +89 -89
- package/index.win32.js.flow +86 -25
- package/jest/RefreshControlMock.js +5 -2
- package/jest/assetFileTransformer.js +1 -1
- package/jest/local-setup.js +6 -2
- package/jest/mock.js +1 -1
- package/jest/mockComponent.js +2 -2
- package/jest/mockNativeComponent.js +4 -4
- package/jest/mocks/AccessibilityInfo.js +4 -0
- package/jest/mocks/ActivityIndicator.js +2 -1
- package/jest/mocks/Image.js +2 -1
- package/jest/mocks/Modal.js +2 -1
- package/jest/mocks/NativeAnimatedHelper.js +23 -0
- package/jest/mocks/NativeComponentRegistry.js +1 -1
- package/jest/mocks/NativeModules.js +0 -7
- package/jest/mocks/RefreshControl.js +5 -3
- package/jest/mocks/RendererProxy.js +1 -4
- package/jest/mocks/ScrollView.js +8 -6
- package/jest/mocks/Text.js +2 -1
- package/jest/mocks/TextInput.js +2 -1
- package/jest/mocks/View.js +2 -1
- package/jest/mocks/ViewNativeComponent.js +1 -1
- package/jest/mocks/requireNativeComponent.js +3 -3
- package/{rn-get-polyfills.js → jest/mocks/useAppState.js} +4 -2
- package/jest/mocks/useColorScheme.js +2 -2
- package/jest/setup.js +38 -3
- package/jest.config.js +13 -2
- package/overrides.json +68 -60
- package/package.json +25 -24
- package/src/asset-registry.js +29 -0
- package/src/private/animated/NativeAnimatedHelper.js +46 -22
- package/src/private/animated/NativeAnimatedHelper.win32.js +46 -22
- package/src/private/animated/NativeAnimatedValidation.js +1 -1
- package/src/private/animated/createAnimatedPropsHook.js +28 -13
- package/src/private/animated/createAnimatedPropsMemoHook.js +2 -0
- package/src/private/assets/AssetRegistry.js +52 -0
- package/src/private/{specs_DEPRECATED/components → components/activityindicator/specs}/ActivityIndicatorViewNativeComponent.js +7 -10
- package/src/private/{specs_DEPRECATED/components → components/debuggingoverlay/specs}/DebuggingOverlayNativeComponent.js +10 -10
- package/src/private/{specs_DEPRECATED/components → components/drawerlayoutandroid/specs}/AndroidDrawerLayoutNativeComponent.js +10 -10
- package/src/private/{specs_DEPRECATED/components → components/inputaccessoryview/specs}/RCTInputAccessoryViewNativeComponent.js +6 -6
- package/src/private/{specs_DEPRECATED/components → components/modal/specs}/RCTModalHostViewNativeComponent.js +6 -12
- package/src/private/{specs_DEPRECATED/components → components/progressbarandroid/specs}/ProgressBarAndroidNativeComponent.js +7 -7
- package/src/private/{specs_DEPRECATED/components → components/refreshcontrol/specs}/AndroidSwipeRefreshLayoutNativeComponent.js +9 -9
- package/src/private/{specs_DEPRECATED/components → components/refreshcontrol/specs}/PullToRefreshViewNativeComponent.js +9 -10
- package/src/private/components/safeareaview/SafeAreaView_INTERNAL_DO_NOT_USE.js +2 -2
- package/src/private/components/safeareaview/specs/RCTSafeAreaViewNativeComponent.js +27 -0
- package/src/private/components/scrollview/HScrollViewNativeComponents.js +1 -1
- package/src/private/{specs_DEPRECATED/components → components/scrollview/specs}/AndroidHorizontalScrollContentViewNativeComponent.js +5 -5
- package/src/private/{specs_DEPRECATED/components → components/switch/specs}/AndroidSwitchNativeComponent.js +9 -9
- package/src/private/{specs_DEPRECATED/components → components/switch/specs}/SwitchNativeComponent.js +15 -9
- package/src/private/{specs_DEPRECATED/components → components/unimplementedview/specs}/UnimplementedNativeViewNativeComponent.js +6 -6
- package/src/private/components/view/warnOnRepeatedSafeAreaInsetsChanges.js +72 -0
- package/src/private/components/virtualcollection/FlingConstants.js +21 -0
- package/src/private/components/virtualcollection/Virtual.js +62 -0
- package/src/private/components/virtualcollection/VirtualCollectionView.js +234 -0
- package/src/private/components/virtualcollection/column/VirtualColumn.js +40 -0
- package/src/private/components/virtualcollection/column/VirtualColumnGenerator.js +72 -0
- package/src/private/components/virtualcollection/row/VirtualRow.js +40 -0
- package/src/private/components/virtualcollection/row/VirtualRowGenerator.js +72 -0
- package/src/private/components/virtualview/VirtualViewNativeComponent.js +3 -1
- package/src/private/devsupport/devmenu/elementinspector/BoxInspector.js +4 -4
- package/src/private/devsupport/devmenu/elementinspector/ElementBox.js +19 -11
- package/src/private/devsupport/devmenu/elementinspector/ElementProperties.js +3 -2
- package/src/private/devsupport/devmenu/elementinspector/Inspector.js +6 -6
- package/src/private/devsupport/devmenu/elementinspector/InspectorOverlay.js +1 -1
- package/src/private/devsupport/devmenu/elementinspector/ReactDevToolsOverlay.js +1 -1
- package/src/private/devsupport/devmenu/elementinspector/XHRInterceptor.js +6 -0
- package/src/private/devsupport/devmenu/elementinspector/getInspectorDataForViewAtPoint.js +18 -6
- package/src/private/devsupport/devmenu/elementinspector/resolveBoxStyle.js +41 -19
- package/src/private/devsupport/devmenu/elementinspector/useExternalInspection.js +1 -1
- package/src/private/devsupport/devmenu/specs/NativeDevMenu.js +5 -5
- package/src/private/devsupport/rndevtools/setUpFuseboxReactDevToolsDispatcher.js +1 -1
- package/src/private/devsupport/rndevtools/specs/NativeReactDevToolsRuntimeSettingsModule.js +6 -4
- package/src/private/devsupport/rndevtools/specs/NativeReactDevToolsSettingsManager.js +4 -4
- package/src/private/featureflags/ReactNativeFeatureFlags.js +155 -89
- package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +7 -6
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +99 -87
- package/src/private/renderer/errorhandling/ErrorHandlers.js +5 -5
- package/src/private/renderer/events/LegacySyntheticEvent.js +78 -0
- package/src/private/renderer/events/ReactNativeEventTypeMapping.js +103 -0
- package/src/private/renderer/events/ReactNativeResponder.js +732 -0
- package/src/private/renderer/events/ResponderEvent.js +40 -0
- package/src/private/renderer/events/ResponderTouchHistoryStore.js +267 -0
- package/src/private/renderer/events/dispatchNativeEvent.js +139 -0
- package/src/private/setup/setUpDOM.js +41 -9
- package/src/private/setup/setUpDefaultReactNativeEnvironment.js +15 -2
- package/src/private/setup/setUpIntersectionObserver.js +7 -0
- package/src/private/setup/setUpMutationObserver.js +3 -1
- package/src/private/setup/{setUpPerformanceModern.js → setUpPerformance.js} +1 -1
- package/src/private/setup/setUpResizeObserver.js +40 -0
- package/src/private/specs_DEPRECATED/modules/NativeAccessibilityInfo.js +10 -10
- package/src/private/specs_DEPRECATED/modules/NativeAccessibilityInfoWin32.js +11 -11
- package/src/private/specs_DEPRECATED/modules/NativeAccessibilityManager.js +39 -34
- package/src/private/specs_DEPRECATED/modules/NativeActionSheetManager.js +31 -30
- package/src/private/specs_DEPRECATED/modules/NativeAlertManager.js +5 -4
- package/src/private/specs_DEPRECATED/modules/NativeAnimatedModule.js +50 -29
- package/src/private/specs_DEPRECATED/modules/NativeAnimatedTurboModule.js +48 -27
- package/src/private/specs_DEPRECATED/modules/NativeAppState.js +8 -7
- package/src/private/specs_DEPRECATED/modules/NativeAppearance.js +9 -7
- package/src/private/specs_DEPRECATED/modules/NativeBlobModule.js +15 -11
- package/src/private/specs_DEPRECATED/modules/NativeClipboard.js +4 -4
- package/src/private/specs_DEPRECATED/modules/NativeDevLoadingView.js +3 -3
- package/src/private/specs_DEPRECATED/modules/NativeDevSettings.js +12 -12
- package/src/private/specs_DEPRECATED/modules/NativeDeviceEventManager.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.js +5 -15
- package/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.js +8 -8
- package/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.js +5 -6
- package/src/private/specs_DEPRECATED/modules/NativeFileReaderModule.js +9 -5
- package/src/private/specs_DEPRECATED/modules/NativeFrameRateLogger.js +5 -5
- package/src/private/specs_DEPRECATED/modules/NativeHeadlessJsTaskSupport.js +3 -3
- package/src/private/specs_DEPRECATED/modules/NativeI18nManager.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeImageEditor.js +15 -15
- package/src/private/specs_DEPRECATED/modules/NativeImageLoaderAndroid.js +12 -8
- package/src/private/specs_DEPRECATED/modules/NativeImageLoaderIOS.js +10 -9
- package/src/private/specs_DEPRECATED/modules/NativeImageLoaderWin32.js +10 -9
- package/src/private/specs_DEPRECATED/modules/NativeImageStoreAndroid.js +4 -4
- package/src/private/specs_DEPRECATED/modules/NativeImageStoreIOS.js +10 -7
- package/src/private/specs_DEPRECATED/modules/NativeIntentAndroid.js +6 -6
- package/src/private/specs_DEPRECATED/modules/NativeJSCHeapCapture.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeKeyboardObserver.js +3 -3
- package/src/private/specs_DEPRECATED/modules/NativeLinkingManager.js +7 -7
- package/src/private/specs_DEPRECATED/modules/NativeLogBox.js +3 -3
- package/src/private/specs_DEPRECATED/modules/NativeNetworkingAndroid.js +9 -8
- package/src/private/specs_DEPRECATED/modules/NativeNetworkingIOS.js +11 -10
- package/src/private/specs_DEPRECATED/modules/NativePermissionsAndroid.js +7 -5
- package/src/private/specs_DEPRECATED/modules/NativePlatformConstantsAndroid.js +4 -4
- package/src/private/specs_DEPRECATED/modules/NativePlatformConstantsIOS.js +3 -3
- package/src/private/specs_DEPRECATED/modules/NativePlatformConstantsWin.js +3 -3
- package/src/private/specs_DEPRECATED/modules/NativePushNotificationManagerIOS.js +39 -34
- package/src/private/specs_DEPRECATED/modules/NativeRedBox.js +8 -4
- package/src/private/specs_DEPRECATED/modules/NativeSegmentFetcher.js +7 -7
- package/src/private/specs_DEPRECATED/modules/NativeSettingsManager.js +8 -7
- package/src/private/specs_DEPRECATED/modules/NativeShareModule.js +3 -3
- package/src/private/specs_DEPRECATED/modules/NativeSoundManager.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeSourceCode.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeStatusBarManagerAndroid.js +5 -17
- package/src/private/specs_DEPRECATED/modules/NativeStatusBarManagerIOS.js +10 -15
- package/src/private/specs_DEPRECATED/modules/NativeTiming.js +4 -4
- package/src/private/specs_DEPRECATED/modules/NativeToastAndroid.js +5 -5
- package/src/private/specs_DEPRECATED/modules/NativeUIManager.js +62 -30
- package/src/private/specs_DEPRECATED/modules/NativeVibration.js +5 -5
- package/src/private/specs_DEPRECATED/modules/NativeWebSocketModule.js +15 -11
- package/src/private/styles/composeStyles.js +1 -1
- package/src/private/types/HostComponent.js +1 -1
- package/src/private/types/HostInstance.js +38 -80
- package/src/private/utilities/toExtendedError.js +1 -1
- package/src/private/viewtransition/specs/NativeViewTransition.js +35 -0
- package/src/private/webapis/dom/abort-api/AbortController.js +93 -0
- package/src/private/webapis/dom/abort-api/AbortSignal.js +245 -0
- package/src/private/webapis/dom/events/CustomEvent.js +1 -1
- package/src/private/webapis/dom/events/Event.js +71 -12
- package/src/private/webapis/dom/events/EventTarget.js +193 -30
- package/src/private/webapis/dom/events/internals/EventInternals.js +54 -1
- package/src/private/webapis/dom/events/internals/EventTargetInternals.js +50 -3
- package/src/private/webapis/dom/nodes/ReactNativeDocument.js +11 -0
- package/src/private/webapis/dom/nodes/ReactNativeElement.js +128 -2
- package/src/private/webapis/dom/nodes/ReadOnlyCharacterData.js +11 -0
- package/src/private/webapis/dom/nodes/ReadOnlyElement.js +13 -6
- package/src/private/webapis/dom/nodes/ReadOnlyNode.js +97 -1
- package/src/private/webapis/dom/nodes/ReadOnlyText.js +33 -0
- package/src/private/webapis/dom/nodes/internals/NodeInternals.js +10 -0
- package/src/private/webapis/dom/nodes/specs/NativeDOM.js +58 -56
- package/src/private/webapis/dom/oldstylecollections/HTMLCollection.js +12 -0
- package/src/private/webapis/dom/oldstylecollections/NodeList.js +11 -1
- package/src/private/webapis/errors/DOMException.js +50 -50
- package/src/private/webapis/geometry/DOMRectList.js +12 -0
- package/src/private/webapis/geometry/DOMRectReadOnly.js +1 -1
- package/src/private/webapis/html/events/MessageEvent.js +3 -3
- package/src/private/webapis/idlecallbacks/specs/NativeIdleCallbacks.js +4 -4
- package/src/private/webapis/intersectionobserver/IntersectionObserver.js +2 -2
- package/src/private/webapis/intersectionobserver/IntersectionObserverEntry.js +13 -0
- package/src/private/webapis/intersectionobserver/internals/IntersectionObserverManager.js +3 -7
- package/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js +7 -7
- package/src/private/webapis/microtasks/specs/NativeMicrotasks.js +3 -3
- package/src/private/webapis/mutationobserver/MutationObserver.js +7 -7
- package/src/private/webapis/mutationobserver/MutationRecord.js +12 -0
- package/src/private/webapis/mutationobserver/internals/MutationObserverManager.js +5 -7
- package/src/private/webapis/mutationobserver/specs/NativeMutationObserver.js +7 -7
- package/src/private/webapis/performance/EventTiming.js +5 -8
- package/src/private/webapis/performance/Performance.js +15 -27
- package/src/private/webapis/performance/PerformanceEntry.js +4 -8
- package/src/private/webapis/performance/PerformanceObserver.js +33 -11
- package/src/private/webapis/performance/ResourceTiming.js +13 -13
- package/src/private/webapis/performance/UserTiming.js +8 -6
- package/src/private/webapis/performance/internals/RawPerformanceEntry.js +1 -1
- package/src/private/webapis/performance/specs/NativePerformance.js +29 -21
- package/src/private/webapis/resizeobserver/ResizeObserver.js +207 -0
- package/src/private/webapis/resizeobserver/ResizeObserverEntry.js +146 -0
- package/src/private/webapis/resizeobserver/ResizeObserverSize.js +70 -0
- package/src/private/webapis/resizeobserver/internals/ResizeObserverManager.js +276 -0
- package/src/private/webapis/resizeobserver/specs/NativeResizeObserver.js +50 -0
- package/src/private/webapis/structuredClone/structuredClone.js +217 -43
- package/src/private/webapis/utils/ArrayLikeUtils.js +6 -4
- package/src/private/webapis/webidl/PlatformObjects.js +4 -4
- package/src/private/webapis/websockets/events/CloseEvent.js +3 -3
- package/src/private/webapis/xhr/events/ProgressEvent.js +3 -3
- package/src/react-private-interface.js +109 -0
- package/src/setup-env.js +22 -0
- package/src/types/ErrorUtils.d.ts +17 -0
- package/src/types/globals.d.ts +112 -22
- package/src/unstable-internals-do-not-use.d.ts +266 -0
- package/src/unstable-internals-do-not-use.js +126 -0
- package/src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +25 -8
- package/src-win/Libraries/Components/Button/ButtonWin32.tsx +1 -1
- package/src-win/Libraries/Components/Touchable/Tests/TouchableWin32Test.tsx +5 -5
- package/src-win/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +2 -4
- package/src-win/Libraries/Components/View/ViewAccessibility.d.ts +26 -5
- package/src-win/Libraries/Components/View/ViewPropTypes.d.ts +14 -9
- package/src-win/Libraries/Text/Text.d.ts +16 -14
- package/src-win/Libraries/platform-types.d.ts +1 -0
- package/src-win/index.win32.js.flow +86 -25
- package/{Libraries → types/Libraries}/Alert/Alert.d.ts +1 -4
- package/{Libraries → types/Libraries}/Animated/Animated.d.ts +5 -9
- package/{Libraries → types/Libraries}/AppState/AppState.d.ts +5 -6
- package/types/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +198 -0
- package/{Libraries → types/Libraries}/Components/ActivityIndicator/ActivityIndicator.d.ts +2 -2
- package/{Libraries → types/Libraries}/Components/Button.d.ts +18 -16
- package/{Libraries → types/Libraries}/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +14 -7
- package/{Libraries → types/Libraries}/Components/Keyboard/Keyboard.d.ts +1 -5
- package/{Libraries → types/Libraries}/Components/Keyboard/KeyboardAvoidingView.d.ts +2 -2
- package/{Libraries → types/Libraries}/Components/Pressable/Pressable.d.ts +6 -8
- package/{Libraries → types/Libraries}/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +2 -2
- package/{Libraries → types/Libraries}/Components/RefreshControl/RefreshControl.d.ts +3 -4
- package/{Libraries → types/Libraries}/Components/SafeAreaView/SafeAreaView.d.ts +2 -2
- package/{Libraries → types/Libraries}/Components/ScrollView/ScrollView.d.ts +68 -72
- package/{Libraries → types/Libraries}/Components/StatusBar/StatusBar.d.ts +4 -54
- package/{Libraries → types/Libraries}/Components/Switch/Switch.d.ts +4 -7
- package/{Libraries → types/Libraries}/Components/TextInput/InputAccessoryView.d.ts +7 -0
- package/{Libraries → types/Libraries}/Components/TextInput/TextInput.d.ts +49 -64
- package/{Libraries → types/Libraries}/Components/Touchable/Touchable.d.ts +1 -1
- package/types/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +112 -0
- package/{Libraries → types/Libraries}/Components/Touchable/TouchableOpacity.d.ts +1 -10
- package/{Libraries → types/Libraries}/Components/Touchable/TouchableWithoutFeedback.d.ts +5 -4
- package/{Libraries → types/Libraries}/Components/View/View.d.ts +2 -2
- package/types/Libraries/Components/View/ViewAccessibility.d.ts +485 -0
- package/types/Libraries/Components/View/ViewPropTypes.d.ts +230 -0
- package/{Libraries → types/Libraries}/Image/Image.d.ts +5 -9
- package/{Libraries → types/Libraries}/Image/ImageResizeMode.d.ts +1 -6
- package/{Libraries → types/Libraries}/Image/ImageSource.d.ts +2 -4
- package/{Libraries → types/Libraries}/Interaction/PanResponder.d.ts +1 -1
- package/{Libraries → types/Libraries}/LayoutAnimation/LayoutAnimation.d.ts +2 -10
- package/{Libraries → types/Libraries}/Lists/FlatList.d.ts +11 -17
- package/{Libraries → types/Libraries}/Lists/SectionList.d.ts +14 -14
- package/{Libraries → types/Libraries}/LogBox/LogBox.d.ts +11 -0
- package/{Libraries → types/Libraries}/Modal/Modal.d.ts +7 -11
- package/{Libraries → types/Libraries}/NativeComponent/NativeComponentRegistry.d.ts +1 -1
- package/{Libraries → types/Libraries}/PermissionsAndroid/PermissionsAndroid.d.ts +49 -45
- package/{Libraries → types/Libraries}/PushNotificationIOS/PushNotificationIOS.d.ts +2 -11
- package/{Libraries → types/Libraries}/ReactNative/AppRegistry.d.ts +1 -1
- package/{Libraries/Utilities → types/Libraries/ReactNative}/IPerformanceLogger.d.ts +8 -5
- package/{Libraries → types/Libraries}/ReactNative/RendererProxy.d.ts +1 -4
- package/{Libraries → types/Libraries}/ReactNative/UIManager.d.ts +2 -3
- package/{Libraries → types/Libraries}/ReactNative/requireNativeComponent.d.ts +1 -1
- package/{Libraries → types/Libraries}/StyleSheet/PlatformColorValueTypes.d.ts +3 -1
- package/{Libraries → types/Libraries}/StyleSheet/StyleSheet.d.ts +3 -2
- package/{Libraries → types/Libraries}/StyleSheet/StyleSheetTypes.d.ts +47 -57
- package/types/Libraries/Text/Text.d.ts +236 -0
- package/{Libraries → types/Libraries}/Types/CodegenTypesNamespace.d.ts +1 -2
- package/{Libraries → types/Libraries}/Types/CoreEventTypes.d.ts +15 -5
- package/types/Libraries/Utilities/Appearance.d.ts +66 -0
- package/{Libraries → types/Libraries}/Utilities/BackHandler.d.ts +11 -1
- package/{Libraries → types/Libraries}/Utilities/Platform.d.ts +1 -6
- package/types/index.d.ts +84 -84
- package/types/modules/Codegen.d.ts +1 -2
- package/types/public/DeprecatedPropertiesAlias.d.ts +0 -4
- package/types/public/ReactNativeRenderer.d.ts +10 -12
- package/types/public/ReactNativeTypes.d.ts +8 -7
- package/types/src/private/assets/AssetRegistry.d.ts +44 -0
- package/IntegrationTests/AccessibilityManagerTest.js +0 -59
- package/Libraries/Components/Touchable/TouchableBounce.js +0 -235
- package/Libraries/Interaction/InteractionManager.d.ts +0 -87
- package/Libraries/Interaction/InteractionManager.js +0 -189
- package/Libraries/Lists/SectionListModern.js +0 -248
- package/Libraries/ReactPrivate/ReactNativePrivateInitializeCore.js +0 -11
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +0 -136
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js.flow +0 -51
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +0 -19668
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +0 -11129
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +0 -12930
- package/Libraries/Renderer/shims/ReactNative.js +0 -27
- package/Libraries/TurboModule/samples/NativeSampleTurboModule.js +0 -14
- package/Libraries/Utilities/Appearance.d.ts +0 -51
- package/Libraries/Utilities/GlobalPerformanceLogger.js +0 -24
- package/Libraries/Utilities/PerformanceLoggerContext.js +0 -33
- package/Libraries/Utilities/SceneTracker.js +0 -42
- package/Libraries/Utilities/createPerformanceLogger.js +0 -329
- package/Libraries/Utilities/useRefEffect.js +0 -45
- package/flow/console.js +0 -49
- package/interface.js +0 -21
- package/src/private/specs_DEPRECATED/components/RCTSafeAreaViewNativeComponent.js +0 -28
- package/src/private/specs_DEPRECATED/modules/NativeModalManager.js +0 -21
- package/src/private/specs_DEPRECATED/modules/NativeSampleTurboModule.js +0 -69
- package/src/private/webapis/performance/internals/Utilities.js +0 -27
- /package/{Libraries → types/Libraries}/ActionSheetIOS/ActionSheetIOS.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Animated/Easing.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Animated/useAnimatedColor.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Animated/useAnimatedValue.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Animated/useAnimatedValueXY.d.ts +0 -0
- /package/{Libraries → types/Libraries}/BatchedBridge/NativeModules.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Components/Clipboard/Clipboard.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Components/LayoutConformance/LayoutConformance.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Components/ToastAndroid/ToastAndroid.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Components/Touchable/TouchableHighlight.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Core/registerCallableModule.d.ts +0 -0
- /package/{Libraries → types/Libraries}/EventEmitter/NativeEventEmitter.d.ts +0 -0
- /package/{Libraries → types/Libraries}/EventEmitter/RCTDeviceEventEmitter.d.ts +0 -0
- /package/{Libraries → types/Libraries}/EventEmitter/RCTNativeAppEventEmitter.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Linking/Linking.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Performance/Systrace.d.ts +0 -0
- /package/{Libraries → types/Libraries}/ReactNative/I18nManager.d.ts +0 -0
- /package/{Libraries → types/Libraries}/ReactNative/RootTag.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Settings/Settings.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Share/Share.d.ts +0 -0
- /package/{Libraries → types/Libraries}/StyleSheet/PlatformColorValueTypesIOS.d.ts +0 -0
- /package/{Libraries → types/Libraries}/StyleSheet/processColor.d.ts +0 -0
- /package/{Libraries → types/Libraries}/TurboModule/RCTExport.d.ts +0 -0
- /package/{Libraries → types/Libraries}/TurboModule/TurboModuleRegistry.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Utilities/DevSettings.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Utilities/Dimensions.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Utilities/PixelRatio.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Utilities/codegenNativeCommands.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Utilities/codegenNativeComponent.d.ts +0 -0
- /package/{Libraries → types/Libraries}/Vibration/Vibration.d.ts +0 -0
- /package/{Libraries → types/Libraries}/vendor/core/ErrorUtils.d.ts +0 -0
- /package/{Libraries → types/Libraries}/vendor/emitter/EventEmitter.d.ts +0 -0
- /package/{src → types/src}/private/devsupport/devmenu/DevMenu.d.ts +0 -0
package/.flowconfig
CHANGED
|
@@ -1,109 +1,126 @@
|
|
|
1
1
|
[ignore]
|
|
2
2
|
; We fork some components by platform - ignore all platforms except win32
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
**/*.android.js
|
|
4
|
+
**/*.ios.js
|
|
5
|
+
**/*.macos.js
|
|
6
|
+
**/*.windesktop.js
|
|
7
7
|
|
|
8
8
|
; Ignore fb_internal modules
|
|
9
|
-
|
|
9
|
+
packages/react-native/src/fb_internal/**
|
|
10
10
|
|
|
11
11
|
; These modules have base components and win32 versions.
|
|
12
12
|
; Ideally we'd delete the base versions of files that had .win32 overrides as part of the
|
|
13
13
|
; initRNLibraries build step
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
14
|
+
index.js
|
|
15
|
+
Libraries/Alert/Alert.js
|
|
16
|
+
Libraries/Components/AccessibilityInfo/AccessibilityInfo.js
|
|
17
|
+
Libraries/Components/Button.js
|
|
18
|
+
Libraries/Components/Pressable/Pressable.js
|
|
19
|
+
Libraries/Components/SafeAreaView/SafeAreaView.js
|
|
20
|
+
Libraries/Components/TextInput/TextInput.js
|
|
21
|
+
Libraries/Components/TextInput/TextInputState.js
|
|
22
|
+
Libraries/Components/Touchable/Touchable.js
|
|
23
|
+
Libraries/Components/Touchable/TouchableNativeFeedback.js
|
|
24
|
+
Libraries/Components/View/ViewAccessibility.js
|
|
25
|
+
Libraries/Components/View/View.js
|
|
26
|
+
Libraries/Components/View/ViewPropTypes.js
|
|
27
|
+
Libraries/Image/Image.js
|
|
28
|
+
Libraries/Inspector/Inspector.js
|
|
29
|
+
Libraries/Inspector/InspectorOverlay.js
|
|
30
|
+
Libraries/Network/RCTNetworking.js
|
|
31
|
+
Libraries/Pressability/Pressability.js
|
|
32
|
+
Libraries/Pressability/HoverState.js
|
|
33
|
+
Libraries/Renderer/shims/ReactNativeTypes.js
|
|
34
|
+
Libraries/StyleSheet/PlatformColorValueTypes.js
|
|
35
|
+
Libraries/Text/TextProps.js
|
|
36
|
+
Libraries/Types/CoreEventTypes.js
|
|
37
|
+
Libraries/Utilities/Dimensions.js
|
|
38
|
+
Libraries/Utilities/Platform.flow.js
|
|
39
|
+
Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js
|
|
40
|
+
Libraries/LogBox/UI/LogBoxInspectorHeader.js
|
|
41
|
+
Libraries/LogBox/UI/LogBoxInspectorStackFrame.js
|
|
42
|
+
Libraries/LogBox/UI/LogBoxInspectorReactFrames.js
|
|
43
|
+
Libraries/LogBox/UI/LogBoxStyle.js
|
|
44
|
+
|
|
45
|
+
IntegrationTests/ImageCachePolicyTest.js
|
|
46
|
+
IntegrationTests/LayoutEventsTest.js
|
|
47
|
+
IntegrationTests/IntegrationTestsApp.js
|
|
48
|
+
IntegrationTests/PromiseTest.js
|
|
49
|
+
IntegrationTests/TimersTest.js
|
|
48
50
|
|
|
49
51
|
; Ignore react-native files in node_modules since they are copied into project root
|
|
50
|
-
|
|
52
|
+
**/node_modules/react-native/**
|
|
53
|
+
../../../node_modules/react-native/**
|
|
54
|
+
|
|
55
|
+
; Hoisted workspace links resolve to source directories outside this Flow project.
|
|
56
|
+
../../../vnext/**
|
|
57
|
+
../../../packages/@react-native/**
|
|
58
|
+
../../../packages/@react-native-windows/**
|
|
59
|
+
../../../packages/@rnw-scripts/**
|
|
60
|
+
../react-native-win32-tester/**
|
|
61
|
+
../../react-native-platform-override/**
|
|
51
62
|
|
|
52
63
|
; Ignore all flow directory contents in node_modules
|
|
53
|
-
|
|
64
|
+
**/flow/**
|
|
54
65
|
|
|
55
66
|
; Ignore react-native-windows' build output. Flow is not compiled with long path support and after running unittests these folders have long paths
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
67
|
+
**/node_modules/react-native-windows/build/**
|
|
68
|
+
**/node_modules/react-native-windows/target/**
|
|
69
|
+
**/node_modules/react-native-windows/Microsoft.ReactNative.Managed.CodeGen.UnitTests/**
|
|
70
|
+
**/node_modules/react-native-windows/Microsoft.ReactNative.Managed.UnitTests/**
|
|
60
71
|
|
|
61
72
|
; These files dont need to be checked and just increase the build time
|
|
62
|
-
|
|
63
|
-
|
|
73
|
+
**/node_modules/e2etest/**
|
|
74
|
+
**/node_modules/playground/**
|
|
64
75
|
|
|
65
|
-
|
|
76
|
+
packages/react-native/sdks/**
|
|
66
77
|
|
|
67
78
|
; Ignore the codegen e2e tests
|
|
68
|
-
|
|
79
|
+
packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeEnumTurboModule.js
|
|
69
80
|
|
|
70
81
|
; Ignore "BUCK" generated dirs
|
|
71
|
-
|
|
82
|
+
.buckd/**
|
|
72
83
|
|
|
73
84
|
; Ignore cache files
|
|
74
|
-
|
|
85
|
+
**/node_modules/.cache*/**
|
|
75
86
|
|
|
76
87
|
; Ignore the src-win folder - flow files are combined with ones from react-native into the root Libraries folder
|
|
77
|
-
|
|
88
|
+
src-win/**
|
|
78
89
|
|
|
79
90
|
; Ignore the private __tests__ (until this is fixed: https://github.com/facebook/react-native/issues/43242)
|
|
80
|
-
|
|
91
|
+
src/private/**/__tests__/**
|
|
81
92
|
|
|
82
93
|
; Ignore files with flow typing issues #9223
|
|
83
|
-
|
|
94
|
+
Libraries/Core/ReactNativeVersionCheck.js
|
|
84
95
|
|
|
85
|
-
|
|
96
|
+
**/node_modules/resolve/test/resolver/malformed_package_json/package.json
|
|
97
|
+
**/node_modules/invariant/**
|
|
98
|
+
../../../node_modules/invariant/**
|
|
86
99
|
|
|
87
100
|
; Checked-in build output
|
|
88
|
-
|
|
101
|
+
packages/debugger-frontend/dist/**
|
|
89
102
|
|
|
90
103
|
; Generated build output
|
|
91
|
-
|
|
104
|
+
packages/*/dist/**
|
|
92
105
|
|
|
93
106
|
; helloworld
|
|
94
|
-
|
|
107
|
+
private/helloworld/ios/Pods/**
|
|
95
108
|
|
|
96
109
|
; Ignore rn-tester Pods
|
|
97
|
-
|
|
110
|
+
packages/rn-tester/Pods/**
|
|
98
111
|
|
|
99
112
|
[untyped]
|
|
100
|
-
|
|
113
|
+
**/node_modules/@react-native-community/cli/**
|
|
114
|
+
../../../node_modules/@react-native-community/cli/**
|
|
101
115
|
; Should work out how to do this properly
|
|
102
|
-
|
|
116
|
+
Libraries/Image/resolveAssetSource.win32.js
|
|
117
|
+
|
|
118
|
+
[declarations]
|
|
119
|
+
.*/node_modules/.*
|
|
103
120
|
|
|
104
121
|
[include]
|
|
105
122
|
; Need to include hoisted modules
|
|
106
|
-
../../../node_modules
|
|
123
|
+
../../../node_modules/**
|
|
107
124
|
|
|
108
125
|
[libs]
|
|
109
126
|
interface.js
|
|
@@ -113,15 +130,10 @@ interface.js
|
|
|
113
130
|
src/types/
|
|
114
131
|
|
|
115
132
|
[options]
|
|
116
|
-
|
|
117
|
-
experimental.pattern_matching=true
|
|
118
|
-
casting_syntax=both
|
|
119
|
-
component_syntax=true
|
|
133
|
+
builtin_lib=core-only
|
|
120
134
|
|
|
121
135
|
emoji=true
|
|
122
136
|
|
|
123
|
-
exact_by_default=true
|
|
124
|
-
|
|
125
137
|
format.bracket_spacing=false
|
|
126
138
|
|
|
127
139
|
module.file_ext=.js
|
|
@@ -137,6 +149,8 @@ munge_underscores=true
|
|
|
137
149
|
|
|
138
150
|
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/index.win32.js'
|
|
139
151
|
module.name_mapper='^@office-iss/react-native-win32$' -> '<PROJECT_ROOT>/index.win32.js'
|
|
152
|
+
module.name_mapper='^react-native/react-private-interface$' -> '<PROJECT_ROOT>/src/react-private-interface.js'
|
|
153
|
+
module.name_mapper='^react-native/setup-env$' -> '<PROJECT_ROOT>/src/setup-env.js'
|
|
140
154
|
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/\1'
|
|
141
155
|
module.name_mapper='^@office-iss/react-native-win32/\(.*\)$' -> '<PROJECT_ROOT>\/1'
|
|
142
156
|
module.name_mapper='^@react-native/dev-middleware$' -> '<PROJECT_ROOT>/\1'
|
|
@@ -148,8 +162,6 @@ react.runtime=automatic
|
|
|
148
162
|
|
|
149
163
|
ban_spread_key_props=true
|
|
150
164
|
|
|
151
|
-
sharedmemory.hash_table_pow=21
|
|
152
|
-
|
|
153
165
|
[lints]
|
|
154
166
|
sketchy-null-number=warn
|
|
155
167
|
sketchy-null-mixed=warn
|
|
@@ -171,4 +183,4 @@ untyped-import
|
|
|
171
183
|
untyped-type-import
|
|
172
184
|
|
|
173
185
|
[version]
|
|
174
|
-
^0.
|
|
186
|
+
^0.338.0
|
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,117 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Thu, 12 Nov 2026 22:36:45 GMT",
|
|
6
|
+
"version": "0.0.0-canary.315",
|
|
7
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.315",
|
|
8
|
+
"comments": {
|
|
9
|
+
"prerelease": [
|
|
10
|
+
{
|
|
11
|
+
"author": "email not defined",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "a115ff1c51494faa6ba3ac421171b9877dcd050f",
|
|
14
|
+
"comment": "Integrate React Native 0.89.0-nightly-20261102-47a9917ac (November 2, 2026)"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "anuagra@microsoft.com",
|
|
18
|
+
"package": "@office-iss/react-native-win32",
|
|
19
|
+
"commit": "a115ff1c51494faa6ba3ac421171b9877dcd050f",
|
|
20
|
+
"comment": "Return false for unsupported Show Borders accessibility queries on Windows and win32."
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Wed, 04 Nov 2026 19:50:02 GMT",
|
|
27
|
+
"version": "0.0.0-canary.314",
|
|
28
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.314",
|
|
29
|
+
"comments": {
|
|
30
|
+
"prerelease": [
|
|
31
|
+
{
|
|
32
|
+
"author": "beachball",
|
|
33
|
+
"package": "@office-iss/react-native-win32",
|
|
34
|
+
"comment": "Bump react-native-platform-override to v0.0.0-canary.1025",
|
|
35
|
+
"commit": "not available"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"date": "Thu, 29 Oct 2026 05:31:45 GMT",
|
|
42
|
+
"version": "0.0.0-canary.313",
|
|
43
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.313",
|
|
44
|
+
"comments": {
|
|
45
|
+
"prerelease": [
|
|
46
|
+
{
|
|
47
|
+
"author": "email not defined",
|
|
48
|
+
"package": "@office-iss/react-native-win32",
|
|
49
|
+
"commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
|
|
50
|
+
"comment": "Integrate React Native 0.87.0-nightly-20260519-58cd1bf58"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"author": "email not defined",
|
|
54
|
+
"package": "@office-iss/react-native-win32",
|
|
55
|
+
"commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
|
|
56
|
+
"comment": "Integrate RN nightly 0.88.0-nightly-20260908-3e897cfdf (Sep 8th)"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"author": "email not defined",
|
|
60
|
+
"package": "@office-iss/react-native-win32",
|
|
61
|
+
"commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
|
|
62
|
+
"comment": "Integrate RN nightly 0.88.0-nightly-20260805-f2188610c (Aug 5th)"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"author": "email not defined",
|
|
66
|
+
"package": "@office-iss/react-native-win32",
|
|
67
|
+
"commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
|
|
68
|
+
"comment": "Integrate React Native 0.86.0-nightly-20260325-d1809f0aa"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"author": "email not defined",
|
|
72
|
+
"package": "@office-iss/react-native-win32",
|
|
73
|
+
"commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
|
|
74
|
+
"comment": "Integrate React Native 0.86.0-nightly-20260310-621592d1f"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"author": "email not defined",
|
|
78
|
+
"package": "@office-iss/react-native-win32",
|
|
79
|
+
"commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
|
|
80
|
+
"comment": "Integrate React Native 0.87.0-nightly-20260704-e04ff69ab (July 4th)"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"author": "email not defined",
|
|
84
|
+
"package": "@office-iss/react-native-win32",
|
|
85
|
+
"commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
|
|
86
|
+
"comment": "Integrate React Native 0.87.0-nightly-20260604-63683f091 (June 4th)"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"author": "email not defined",
|
|
90
|
+
"package": "@office-iss/react-native-win32",
|
|
91
|
+
"commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
|
|
92
|
+
"comment": "Integrate React Native 0.89.0-nightly-20261002-cd2de187e (Oct 2nd)"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"author": "email not defined",
|
|
96
|
+
"package": "@office-iss/react-native-win32",
|
|
97
|
+
"commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
|
|
98
|
+
"comment": "Integrate React Native 0.86.0-nightly-20260430-118198599"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"author": "email not defined",
|
|
102
|
+
"package": "@office-iss/react-native-win32",
|
|
103
|
+
"commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
|
|
104
|
+
"comment": "Integrate React Native 0.86.0-nightly-20260408-8bac1df5a"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"author": "beachball",
|
|
108
|
+
"package": "@office-iss/react-native-win32",
|
|
109
|
+
"comment": "Bump react-native-platform-override to v0.0.0-canary.1024",
|
|
110
|
+
"commit": "not available"
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
},
|
|
4
115
|
{
|
|
5
116
|
"date": "Mon, 20 Jul 2026 21:19:51 GMT",
|
|
6
117
|
"version": "0.0.0-canary.312",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,44 @@
|
|
|
1
1
|
# Change Log - @office-iss/react-native-win32
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Thu, 12 Nov 2026 22:36:45 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.0.0-canary.315
|
|
8
|
+
|
|
9
|
+
Thu, 12 Nov 2026 22:36:45 GMT
|
|
10
|
+
|
|
11
|
+
### Changes
|
|
12
|
+
|
|
13
|
+
- Integrate React Native 0.89.0-nightly-20261102-47a9917ac (November 2, 2026)
|
|
14
|
+
- Return false for unsupported Show Borders accessibility queries on Windows and win32. (anuagra@microsoft.com)
|
|
15
|
+
|
|
16
|
+
## 0.0.0-canary.314
|
|
17
|
+
|
|
18
|
+
Wed, 04 Nov 2026 19:50:02 GMT
|
|
19
|
+
|
|
20
|
+
### Changes
|
|
21
|
+
|
|
22
|
+
- Bump react-native-platform-override to v0.0.0-canary.1025
|
|
23
|
+
|
|
24
|
+
## 0.0.0-canary.313
|
|
25
|
+
|
|
26
|
+
Thu, 29 Oct 2026 05:31:45 GMT
|
|
27
|
+
|
|
28
|
+
### Changes
|
|
29
|
+
|
|
30
|
+
- Integrate React Native 0.87.0-nightly-20260519-58cd1bf58
|
|
31
|
+
- Integrate RN nightly 0.88.0-nightly-20260908-3e897cfdf (Sep 8th)
|
|
32
|
+
- Integrate RN nightly 0.88.0-nightly-20260805-f2188610c (Aug 5th)
|
|
33
|
+
- Integrate React Native 0.86.0-nightly-20260325-d1809f0aa
|
|
34
|
+
- Integrate React Native 0.86.0-nightly-20260310-621592d1f
|
|
35
|
+
- Integrate React Native 0.87.0-nightly-20260704-e04ff69ab (July 4th)
|
|
36
|
+
- Integrate React Native 0.87.0-nightly-20260604-63683f091 (June 4th)
|
|
37
|
+
- Integrate React Native 0.89.0-nightly-20261002-cd2de187e (Oct 2nd)
|
|
38
|
+
- Integrate React Native 0.86.0-nightly-20260430-118198599
|
|
39
|
+
- Integrate React Native 0.86.0-nightly-20260408-8bac1df5a
|
|
40
|
+
- Bump react-native-platform-override to v0.0.0-canary.1024
|
|
41
|
+
|
|
7
42
|
## 0.0.0-canary.312
|
|
8
43
|
|
|
9
44
|
Mon, 20 Jul 2026 21:19:51 GMT
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
+
import deepEquals from './RNTesterDeepEquals';
|
|
13
14
|
import * as React from 'react';
|
|
14
15
|
import {useEffect, useState} from 'react';
|
|
15
16
|
import {
|
|
@@ -19,14 +20,13 @@ import {
|
|
|
19
20
|
Text,
|
|
20
21
|
View,
|
|
21
22
|
} from 'react-native';
|
|
22
|
-
import deepDiffer from 'react-native/Libraries/Utilities/differ/deepDiffer';
|
|
23
23
|
|
|
24
24
|
const {TestModule} = NativeModules;
|
|
25
25
|
|
|
26
26
|
const TEST_PAYLOAD = {foo: 'bar'};
|
|
27
27
|
|
|
28
28
|
type AppEvent = {
|
|
29
|
-
data:
|
|
29
|
+
data: typeof TEST_PAYLOAD,
|
|
30
30
|
ts: number,
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -44,7 +44,7 @@ function AppEventsTest(): React.Node {
|
|
|
44
44
|
|
|
45
45
|
useEffect(() => {
|
|
46
46
|
const receiveEvent = (event: any) => {
|
|
47
|
-
if (
|
|
47
|
+
if (!deepEquals(event.data, TEST_PAYLOAD)) {
|
|
48
48
|
throw new Error('Received wrong event: ' + JSON.stringify(event));
|
|
49
49
|
}
|
|
50
50
|
const elapsed = Date.now() - event.ts + 'ms';
|
|
@@ -10,15 +10,30 @@
|
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
-
import type {ExtendedError} from 'react-native/Libraries/Core/ExtendedError';
|
|
14
|
-
|
|
15
13
|
import * as React from 'react';
|
|
16
14
|
import {useEffect} from 'react';
|
|
17
15
|
import {NativeModules, View} from 'react-native';
|
|
18
|
-
import parseErrorStack from 'react-native/Libraries/Core/Devtools/parseErrorStack';
|
|
19
16
|
|
|
20
17
|
const {TestModule} = NativeModules;
|
|
21
18
|
|
|
19
|
+
type ErrorWithEngine = Error &
|
|
20
|
+
interface {
|
|
21
|
+
jsEngine?: string,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
function getFirstStackFrameFile(stack?: string): ?string {
|
|
25
|
+
if (stack == null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
for (const line of stack.split('\n')) {
|
|
29
|
+
const match = line.match(/(?:\(|@|\s)(https?:\/\/.*?):\d+:\d+\)?$/);
|
|
30
|
+
if (match != null) {
|
|
31
|
+
return match[1];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
|
|
22
37
|
function GlobalEvalWithSourceUrlTest(): React.Node {
|
|
23
38
|
useEffect(() => {
|
|
24
39
|
if (typeof global.globalEvalWithSourceUrl !== 'function') {
|
|
@@ -33,7 +48,7 @@ function GlobalEvalWithSourceUrlTest(): React.Node {
|
|
|
33
48
|
'Expected globalEvalWithSourceUrl(expression) to return a value',
|
|
34
49
|
);
|
|
35
50
|
}
|
|
36
|
-
let syntaxError: ?
|
|
51
|
+
let syntaxError: ?ErrorWithEngine;
|
|
37
52
|
try {
|
|
38
53
|
global.globalEvalWithSourceUrl('{');
|
|
39
54
|
} catch (e) {
|
|
@@ -66,12 +81,10 @@ function GlobalEvalWithSourceUrlTest(): React.Node {
|
|
|
66
81
|
'Expected globalEvalWithSourceUrl to throw an Error object',
|
|
67
82
|
);
|
|
68
83
|
}
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
84
|
+
const firstStackFrameFile = getFirstStackFrameFile(error.stack);
|
|
85
|
+
if (firstStackFrameFile !== url) {
|
|
71
86
|
throw new Error(
|
|
72
|
-
`Expected first eval stack frame to be in ${url} but found ${String(
|
|
73
|
-
parsedStack[0].file,
|
|
74
|
-
)}`,
|
|
87
|
+
`Expected first eval stack frame to be in ${url} but found ${String(firstStackFrameFile)}`,
|
|
75
88
|
);
|
|
76
89
|
}
|
|
77
90
|
TestModule.markTestCompleted();
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
-
require('react-native/
|
|
13
|
+
require('react-native/setup-env');
|
|
14
|
+
|
|
14
15
|
const React = require('react');
|
|
15
16
|
const ReactNative = require('react-native');
|
|
16
17
|
|
|
@@ -29,7 +30,6 @@ const TESTS = [
|
|
|
29
30
|
require('./PromiseTest'),
|
|
30
31
|
require('./SyncMethodTest'),
|
|
31
32
|
require('./WebSocketTest'),
|
|
32
|
-
require('./AccessibilityManagerTest'),
|
|
33
33
|
require('./GlobalEvalWithSourceUrlTest'),
|
|
34
34
|
].map(mod => mod.default);
|
|
35
35
|
|
|
@@ -50,7 +50,7 @@ type Test = any;
|
|
|
50
50
|
|
|
51
51
|
class IntegrationTestsApp extends React.Component<{...}, $FlowFixMe> {
|
|
52
52
|
state: {test: ?Test} = {
|
|
53
|
-
test:
|
|
53
|
+
test: null as ?Test,
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
render(): React.Node {
|
|
@@ -11,15 +11,14 @@
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
13
|
import type {LayoutChangeEvent, LayoutRectangle} from 'react-native';
|
|
14
|
-
import type {ViewStyleProp} from 'react-native/Libraries/StyleSheet/StyleSheet';
|
|
15
14
|
|
|
15
|
+
const deepEquals = require('./RNTesterDeepEquals').default;
|
|
16
16
|
const React = require('react');
|
|
17
17
|
const ReactNative = require('react-native');
|
|
18
|
-
const deepDiffer =
|
|
19
|
-
require('react-native/Libraries/Utilities/differ/deepDiffer').default;
|
|
20
18
|
|
|
21
19
|
const {Image, LayoutAnimation, StyleSheet, Text, View} = ReactNative;
|
|
22
20
|
const {TestModule} = ReactNative.NativeModules;
|
|
21
|
+
type ViewStyleProp = NonNullable<React.PropOf<View, 'style'>>;
|
|
23
22
|
function debug(...args: Array<void | LayoutRectangle | string>) {
|
|
24
23
|
// console.log.apply(null, arguments);
|
|
25
24
|
}
|
|
@@ -108,7 +107,7 @@ class LayoutEventsTest extends React.Component<Props, State> {
|
|
|
108
107
|
measured: LayoutRectangle,
|
|
109
108
|
onLayout?: ?LayoutRectangle,
|
|
110
109
|
): void {
|
|
111
|
-
if (
|
|
110
|
+
if (!deepEquals(measured, onLayout)) {
|
|
112
111
|
const data = {measured, onLayout};
|
|
113
112
|
throw new Error(
|
|
114
113
|
node +
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import invariant from 'invariant';
|
|
12
|
-
import BatchedBridge from 'react-native/
|
|
12
|
+
import {BatchedBridge} from 'react-native/react-private-interface';
|
|
13
13
|
|
|
14
14
|
const LoggingTestModule = {
|
|
15
15
|
logToConsole(message: string): void {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow strict-local
|
|
8
|
+
* @format
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
'use strict';
|
|
12
|
+
|
|
13
|
+
export default function deepEquals(one: unknown, two: unknown): boolean {
|
|
14
|
+
if (one === two) {
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
if (typeof one === 'function' && typeof two === 'function') {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
if (
|
|
21
|
+
typeof one !== 'object' ||
|
|
22
|
+
one === null ||
|
|
23
|
+
typeof two !== 'object' ||
|
|
24
|
+
two === null ||
|
|
25
|
+
one.constructor !== two.constructor
|
|
26
|
+
) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
if (Array.isArray(one)) {
|
|
30
|
+
if (!Array.isArray(two) || one.length !== two.length) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
for (let ii = 0; ii < one.length; ii++) {
|
|
34
|
+
if (!deepEquals(one[ii], two[ii])) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
} else {
|
|
39
|
+
for (const key in one) {
|
|
40
|
+
if (!deepEquals(one[key], two[key])) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
for (const key in two) {
|
|
45
|
+
if (one[key] === undefined && two[key] !== undefined) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return true;
|
|
51
|
+
}
|