@office-iss/react-native-win32 0.84.0-preview.2 → 0.85.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/.eslintignore +1 -0
- package/.flowconfig +1 -5
- package/CHANGELOG.json +79 -13
- package/CHANGELOG.md +14 -8
- package/IntegrationTests/IntegrationTestHarnessTest.js +1 -1
- package/IntegrationTests/LayoutEventsTest.js +1 -1
- package/IntegrationTests/TimersTest.js +1 -1
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +3 -3
- package/Libraries/Animated/Animated.d.ts +8 -1
- package/Libraries/Animated/AnimatedEvent.js +4 -4
- package/Libraries/Animated/AnimatedImplementation.js +2 -2
- package/Libraries/Animated/animations/Animation.js +3 -3
- package/Libraries/Animated/animations/DecayAnimation.js +4 -4
- package/Libraries/Animated/animations/SpringAnimation.js +5 -5
- package/Libraries/Animated/animations/TimingAnimation.js +5 -5
- package/Libraries/Animated/createAnimatedComponent.js +7 -7
- package/Libraries/Animated/nodes/AnimatedColor.js +2 -2
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +12 -12
- package/Libraries/Animated/nodes/AnimatedNode.js +3 -3
- package/Libraries/Animated/nodes/AnimatedObject.js +3 -3
- package/Libraries/Animated/nodes/AnimatedProps.js +6 -6
- package/Libraries/Animated/nodes/AnimatedStyle.js +7 -7
- package/Libraries/Animated/nodes/AnimatedTransform.js +13 -13
- package/Libraries/Animated/nodes/AnimatedValue.js +1 -1
- package/Libraries/Animated/nodes/AnimatedValueXY.js +1 -1
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +1 -1
- package/Libraries/Animated/useAnimatedColor.d.ts +15 -0
- package/Libraries/Animated/useAnimatedColor.js +25 -0
- package/Libraries/Animated/useAnimatedValueXY.d.ts +15 -0
- package/Libraries/Animated/useAnimatedValueXY.js +26 -0
- package/Libraries/AppState/AppState.js +1 -1
- package/Libraries/BatchedBridge/MessageQueue.js +3 -3
- package/Libraries/BatchedBridge/NativeModules.js +12 -10
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +30 -26
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +34 -30
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +2 -2
- package/Libraries/Components/Button.js +2 -2
- package/Libraries/Components/Button.win32.js +2 -2
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.js +2 -2
- package/Libraries/Components/EnterString.win32.js +2 -2
- package/Libraries/Components/EnterString.win32.js.map +1 -1
- package/Libraries/Components/Keyboard/Keyboard.js +6 -6
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +1 -1
- package/Libraries/Components/LayoutConformance/LayoutConformance.js +1 -1
- package/Libraries/Components/LayoutConformance/LayoutConformanceNativeComponent.js +1 -1
- package/Libraries/Components/Pressable/Pressable.d.ts +5 -0
- package/Libraries/Components/Pressable/Pressable.js +3 -3
- package/Libraries/Components/Pressable/Pressable.win32.js +3 -3
- package/Libraries/Components/Pressable/useAndroidRippleForView.js +4 -4
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +1 -1
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.js +3 -3
- package/Libraries/Components/RefreshControl/RefreshControl.js +5 -5
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +8 -12
- package/Libraries/Components/ScrollView/ScrollView.d.ts +9 -0
- package/Libraries/Components/ScrollView/ScrollView.js +19 -9
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +8 -18
- package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +4 -3
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +1 -1
- package/Libraries/Components/StaticRenderer.js +1 -1
- package/Libraries/Components/StatusBar/StatusBar.js +8 -8
- package/Libraries/Components/Switch/Switch.js +3 -3
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +33 -48
- package/Libraries/Components/TextInput/InputAccessoryView.js +1 -1
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +6 -11
- package/Libraries/Components/TextInput/TextInput.flow.js +21 -20
- package/Libraries/Components/TextInput/TextInput.flow.win32.js +23 -22
- package/Libraries/Components/TextInput/TextInput.js +8 -4
- package/Libraries/Components/TextInput/TextInput.win32.js +3 -4
- package/Libraries/Components/Touchable/PooledClass.js +1 -1
- package/Libraries/Components/Touchable/Touchable.js +2 -2
- package/Libraries/Components/Touchable/Touchable.win32.js +2 -2
- package/Libraries/Components/Touchable/TouchableBounce.js +4 -4
- package/Libraries/Components/Touchable/TouchableHighlight.js +8 -8
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +7 -7
- package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +7 -7
- package/Libraries/Components/Touchable/TouchableOpacity.js +4 -4
- package/Libraries/Components/Touchable/TouchableWin32.js +1 -1
- package/Libraries/Components/Touchable/TouchableWin32.js.map +1 -1
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +1 -1
- package/Libraries/Components/UnimplementedViews/UnimplementedView.js +1 -1
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +68 -31
- package/Libraries/Components/View/ViewAccessibility.js +7 -7
- package/Libraries/Components/View/ViewAccessibility.win32.js +7 -7
- package/Libraries/Components/View/ViewPropTypes.js +14 -14
- package/Libraries/Components/View/ViewPropTypes.win32.js +16 -16
- package/Libraries/Core/Devtools/parseHermesStack.js +8 -8
- package/Libraries/Core/Devtools/symbolicateStackTrace.js +2 -2
- package/Libraries/Core/ExceptionsManager.js +2 -2
- package/Libraries/Core/ExtendedError.js +3 -3
- package/Libraries/Core/RawEventEmitter.js +1 -1
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Core/Timers/JSTimers.js +3 -2
- package/Libraries/Core/setUpDeveloperTools.js +1 -1
- package/Libraries/Core/setUpErrorHandling.js +4 -2
- package/Libraries/Core/setUpReactDevTools.js +23 -6
- package/Libraries/Core/setUpSegmentFetcher.js +1 -1
- package/Libraries/Debugging/DebuggingOverlay.js +2 -2
- package/Libraries/EventEmitter/NativeEventEmitter.js +7 -9
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +1 -1
- package/Libraries/Image/AssetSourceResolver.js +1 -1
- package/Libraries/Image/Image.android.js +172 -306
- package/Libraries/Image/ImageProps.js +9 -11
- package/Libraries/Image/ImageSource.js +2 -2
- package/Libraries/Image/ImageSourceUtils.js +8 -4
- package/Libraries/Image/ImageTypes.flow.js +2 -2
- package/Libraries/Image/ImageViewNativeComponent.js +7 -16
- package/Libraries/Image/nativeImageSource.js +1 -1
- package/Libraries/Interaction/InteractionManager.js +5 -4
- package/Libraries/Interaction/PanResponder.js +1 -1
- package/Libraries/LayoutAnimation/LayoutAnimation.js +2 -2
- package/Libraries/Linking/Linking.js +1 -1
- package/Libraries/Lists/FlatList.js +3 -3
- package/Libraries/Lists/SectionList.js +1 -1
- package/Libraries/Lists/SectionListModern.js +2 -2
- package/Libraries/LogBox/Data/LogBoxData.js +38 -24
- package/Libraries/LogBox/Data/LogBoxLog.js +43 -112
- package/Libraries/LogBox/Data/parseLogBoxLog.js +21 -117
- package/Libraries/LogBox/LogBox.js +42 -19
- package/Libraries/LogBox/LogBoxInspectorContainer.js +2 -2
- package/Libraries/LogBox/LogBoxNotificationContainer.js +2 -2
- package/Libraries/LogBox/UI/LogBoxButton.js +14 -16
- package/Libraries/LogBox/UI/LogBoxInspector.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +6 -9
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.win32.js +6 -9
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorFooterButton.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorHeaderButton.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js +10 -15
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +25 -18
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.win32.js +15 -16
- package/Libraries/LogBox/UI/LogBoxInspectorSection.js +5 -7
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +8 -10
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.win32.js +11 -13
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +8 -6
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.win32.js +3 -5
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +17 -29
- package/Libraries/LogBox/UI/LogBoxMessage.js +28 -37
- package/Libraries/LogBox/UI/LogBoxNotification.js +1 -1
- package/Libraries/Modal/Modal.js +3 -3
- package/Libraries/NativeComponent/BaseViewConfig.android.js +28 -52
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +19 -21
- package/Libraries/NativeComponent/BaseViewConfig.win32.js +16 -16
- package/Libraries/Network/RCTNetworking.android.js +1 -1
- package/Libraries/Network/RCTNetworking.ios.js +1 -1
- package/Libraries/Network/RCTNetworking.js.flow +1 -1
- package/Libraries/Network/RCTNetworking.win32.js +1 -1
- package/Libraries/Network/RCTNetworkingEventDefinitions.flow.js +1 -1
- package/Libraries/Network/XMLHttpRequest.js +1 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +3 -3
- package/Libraries/Pressability/Pressability.js +5 -5
- package/Libraries/Pressability/Pressability.win32.js +5 -5
- package/Libraries/Pressability/PressabilityDebug.js +1 -1
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -1
- package/Libraries/Pressability/usePressability.js +3 -14
- package/Libraries/PushNotificationIOS/PushNotificationIOS.js +2 -2
- package/Libraries/ReactNative/AppContainer-dev.js +18 -1
- package/Libraries/ReactNative/AppContainer.js +1 -1
- package/Libraries/ReactNative/AppRegistry.flow.js +2 -2
- package/Libraries/ReactNative/AppRegistryImpl.js +2 -2
- package/Libraries/ReactNative/FabricUIManager.js +1 -1
- package/Libraries/ReactNative/RendererImplementation.js +4 -4
- package/Libraries/ReactNative/UIManagerProperties.js +1 -1
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +3 -2
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +3 -2
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +3 -2
- package/Libraries/Renderer/shims/ReactFabric.js +1 -3
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +1 -3
- package/Libraries/Renderer/shims/ReactNative.js +3 -2
- package/Libraries/Renderer/shims/ReactNativeTypes.js +1 -3
- package/Libraries/Renderer/shims/ReactNativeTypes.win32.js +1 -3
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +1 -3
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +1 -3
- package/Libraries/StyleSheet/PointPropType.js +1 -1
- package/Libraries/StyleSheet/Rect.js +1 -1
- package/Libraries/StyleSheet/StyleSheet.d.ts +0 -5
- package/Libraries/StyleSheet/StyleSheet.js +1 -1
- package/Libraries/StyleSheet/StyleSheet.js.flow +1 -1
- package/Libraries/StyleSheet/StyleSheetExports.js +16 -25
- package/Libraries/StyleSheet/StyleSheetExports.js.flow +2 -7
- package/Libraries/StyleSheet/StyleSheetTypes.js +33 -35
- package/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.js +5 -5
- package/Libraries/StyleSheet/private/_TransformStyle.js +7 -7
- package/Libraries/StyleSheet/processBackgroundImage.js +7 -7
- package/Libraries/StyleSheet/processBackgroundPosition.js +4 -4
- package/Libraries/StyleSheet/processBackgroundRepeat.js +4 -4
- package/Libraries/StyleSheet/processBackgroundSize.js +4 -4
- package/Libraries/StyleSheet/processBoxShadow.js +44 -4
- package/Libraries/StyleSheet/processColorArray.js +2 -2
- package/Libraries/StyleSheet/processFilter.js +2 -2
- package/Libraries/Text/Text.js +295 -627
- package/Libraries/Text/Text.win32.js +360 -744
- package/Libraries/Text/TextNativeComponent.js +14 -7
- package/Libraries/Text/TextNativeComponent.win32.js +14 -7
- package/Libraries/Text/TextProps.js +4 -4
- package/Libraries/Text/TextProps.win32.js +4 -4
- package/Libraries/Types/CodegenTypes.js +1 -1
- package/Libraries/Types/CoreEventTypes.js +21 -21
- package/Libraries/Types/CoreEventTypes.win32.js +22 -21
- package/Libraries/Types/ReactDevToolsTypes.js +2 -2
- package/Libraries/Utilities/Appearance.js +6 -1
- package/Libraries/Utilities/Dimensions.js +1 -1
- package/Libraries/Utilities/Dimensions.win32.js +1 -1
- package/Libraries/Utilities/HMRClient.js +32 -5
- package/Libraries/Utilities/IPerformanceLogger.js +4 -4
- package/Libraries/Utilities/codegenNativeCommands.js +4 -4
- package/Libraries/Utilities/codegenNativeComponent.d.ts +2 -0
- package/Libraries/Utilities/codegenNativeComponent.js +2 -2
- package/Libraries/Utilities/logError.js +1 -1
- package/Libraries/Utilities/stringifySafe.js +3 -3
- package/Libraries/Utilities/useMergeRefs.js +2 -2
- package/Libraries/vendor/core/ErrorUtils.js +4 -4
- package/Libraries/vendor/emitter/EventEmitter.js +16 -20
- package/flow/bom.js.flow +18 -17
- package/flow/dom.js.flow +12 -5
- package/flow/global.js +1 -1
- package/index.js +9 -0
- package/index.win32.js +9 -0
- package/index.win32.js.flow +8 -1
- package/jest/RefreshControlMock.js +2 -2
- package/jest/assetFileTransformer.js +8 -3
- package/jest/mockComponent.js +3 -4
- package/jest/mockNativeComponent.js +1 -1
- package/jest/mocks/ActivityIndicator.js +2 -2
- package/jest/mocks/Image.js +2 -2
- package/jest/mocks/Modal.js +2 -2
- package/jest/mocks/RefreshControl.js +3 -3
- package/jest/mocks/RendererProxy.js +2 -2
- package/jest/mocks/ScrollView.js +5 -5
- package/jest/mocks/Text.js +2 -2
- package/jest/mocks/TextInput.js +2 -2
- package/jest/mocks/View.js +2 -2
- package/jest/mocks/ViewNativeComponent.js +1 -1
- package/jest/mocks/requireNativeComponent.js +1 -1
- package/jest/mocks/useColorScheme.js +1 -1
- package/jest/setup.js +68 -31
- package/overrides.json +30 -36
- package/package.json +20 -17
- package/src/private/animated/NativeAnimatedHelper.js +2 -2
- package/src/private/animated/NativeAnimatedHelper.win32.js +2 -2
- package/src/private/animated/createAnimatedPropsMemoHook.js +19 -19
- package/src/private/components/virtualview/VirtualView.js +14 -21
- package/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.js +11 -10
- package/src/private/components/virtualview/VirtualViewNativeComponent.js +4 -4
- package/src/private/devsupport/devmenu/elementinspector/BorderBox.js +2 -2
- package/src/private/devsupport/devmenu/elementinspector/BoxInspector.js +3 -3
- package/src/private/devsupport/devmenu/elementinspector/ElementBox.js +4 -4
- package/src/private/devsupport/devmenu/elementinspector/ElementProperties.js +1 -1
- package/src/private/devsupport/devmenu/elementinspector/Inspector.js +39 -17
- package/src/private/devsupport/devmenu/elementinspector/InspectorOverlay.js +15 -3
- package/src/private/devsupport/devmenu/elementinspector/InspectorPanel.js +2 -2
- package/src/private/devsupport/devmenu/elementinspector/ReactDevToolsOverlay.js +2 -8
- package/src/private/devsupport/devmenu/elementinspector/StyleInspector.js +1 -1
- package/src/private/devsupport/devmenu/elementinspector/resolveBoxStyle.js +1 -1
- package/src/private/devsupport/devmenu/elementinspector/useExternalInspection.js +102 -0
- package/src/private/devsupport/rndevtools/FuseboxSessionObserver.js +12 -25
- package/src/private/devsupport/rndevtools/GlobalStateObserver.js +56 -0
- package/src/private/devsupport/rndevtools/TracingStateObserver.js +28 -0
- package/src/private/featureflags/ReactNativeFeatureFlags.js +71 -79
- package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +2 -2
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +14 -12
- package/src/private/setup/setUpDefaultReactNativeEnvironment.js +6 -0
- package/src/private/specs_DEPRECATED/components/ActivityIndicatorViewNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/AndroidDrawerLayoutNativeComponent.js +3 -3
- package/src/private/specs_DEPRECATED/components/AndroidHorizontalScrollContentViewNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/AndroidSwipeRefreshLayoutNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/components/DebuggingOverlayNativeComponent.js +3 -3
- package/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/PullToRefreshViewNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/RCTInputAccessoryViewNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/RCTModalHostViewNativeComponent.js +3 -3
- package/src/private/specs_DEPRECATED/components/RCTSafeAreaViewNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/SwitchNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/components/UnimplementedNativeViewNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeImageLoaderIOS.js +1 -1
- package/src/private/styles/composeStyles.js +1 -1
- package/src/private/utilities/toError.js +27 -0
- package/src/private/utilities/toExtendedError.js +30 -0
- package/src/private/webapis/dom/events/Event.js +1 -1
- package/src/private/webapis/dom/events/EventHandlerAttributes.js +2 -2
- package/src/private/webapis/dom/events/EventTarget.js +3 -3
- package/src/private/webapis/dom/events/internals/EventInternals.js +2 -2
- package/src/private/webapis/dom/nodes/ReadOnlyElement.js +1 -1
- package/src/private/webapis/dom/nodes/ReadOnlyNode.js +2 -2
- package/src/private/webapis/dom/nodes/specs/NativeDOM.js +14 -14
- package/src/private/webapis/dom/oldstylecollections/HTMLCollection.js +2 -2
- package/src/private/webapis/dom/oldstylecollections/NodeList.js +2 -2
- package/src/private/webapis/geometry/DOMRectList.js +2 -2
- package/src/private/webapis/intersectionobserver/IntersectionObserver.js +8 -8
- package/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js +6 -6
- package/src/private/webapis/mutationobserver/MutationObserver.js +2 -2
- package/src/private/webapis/mutationobserver/MutationRecord.js +2 -2
- package/src/private/webapis/mutationobserver/internals/MutationObserverManager.js +1 -1
- package/src/private/webapis/mutationobserver/specs/NativeMutationObserver.js +3 -3
- package/src/private/webapis/performance/LongTasks.js +3 -3
- package/src/private/webapis/performance/Performance.js +4 -4
- package/src/private/webapis/performance/PerformanceEntry.js +1 -1
- package/src/private/webapis/performance/PerformanceObserver.js +2 -2
- package/src/private/webapis/performance/specs/NativePerformance.js +8 -8
- package/src/private/webapis/structuredClone/structuredClone.js +2 -2
- package/src/types/globals.d.ts +4 -4
- package/src-win/Libraries/Components/EnterString.win32.tsx +2 -2
- package/src-win/Libraries/Components/Touchable/TouchableWin32.tsx +14 -14
- package/src-win/index.win32.js.flow +8 -1
- package/types/index.d.ts +2 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.js +0 -60
- package/Libraries/Components/View/ReactNativeViewAttributes.win32.js +0 -94
- package/Libraries/Image/TextInlineImageNativeComponent.js +0 -49
package/jest/mocks/View.js
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import typeof TView from '../../Libraries/Components/View/View';
|
|
12
11
|
import typeof * as TmockComponent from '../mockComponent';
|
|
13
12
|
import typeof * as TMockNativeMethods from '../MockNativeMethods';
|
|
13
|
+
import typeof TView from 'react-native/Libraries/Components/View/View';
|
|
14
14
|
|
|
15
15
|
const mockComponent =
|
|
16
16
|
jest.requireActual<TmockComponent>('../mockComponent').default;
|
|
@@ -19,7 +19,7 @@ const MockNativeMethods = jest.requireActual<TMockNativeMethods>(
|
|
|
19
19
|
).default;
|
|
20
20
|
|
|
21
21
|
const View = mockComponent(
|
|
22
|
-
'
|
|
22
|
+
'react-native/Libraries/Components/View/View',
|
|
23
23
|
MockNativeMethods, // instanceMethods
|
|
24
24
|
true, // isESModule
|
|
25
25
|
) as TView;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import type {ViewProps} from '
|
|
11
|
+
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
|
|
12
12
|
|
|
13
13
|
import * as React from 'react';
|
|
14
14
|
import {createElement} from 'react';
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import type {HostComponent} from '../../src/private/types/HostComponent';
|
|
12
11
|
import typeof * as TmockNativeComponent from '../mockNativeComponent';
|
|
12
|
+
import type {HostComponent} from 'react-native/src/private/types/HostComponent';
|
|
13
13
|
|
|
14
14
|
const mockNativeComponent = jest.requireActual<TmockNativeComponent>(
|
|
15
15
|
'../mockNativeComponent',
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import type {ColorSchemeName} from '
|
|
11
|
+
import type {ColorSchemeName} from 'react-native/Libraries/Utilities/NativeAppearance';
|
|
12
12
|
|
|
13
13
|
const useColorScheme = jest.fn(() => 'light') as JestMockFn<
|
|
14
14
|
[],
|
package/jest/setup.js
CHANGED
|
@@ -86,55 +86,92 @@ try {
|
|
|
86
86
|
});
|
|
87
87
|
} catch {}
|
|
88
88
|
|
|
89
|
-
// $FlowFixMe[incompatible-type] - `./mocks/AppState` is incomplete.
|
|
90
|
-
mock('m#../Libraries/AppState/AppState', 'm#./mocks/AppState');
|
|
91
|
-
mock('m#../Libraries/BatchedBridge/NativeModules', 'm#./mocks/NativeModules');
|
|
92
89
|
mock(
|
|
93
|
-
'm
|
|
90
|
+
'm#react-native/Libraries/AppState/AppState',
|
|
91
|
+
// $FlowFixMe[incompatible-type] - `./mocks/AppState` is incomplete.
|
|
92
|
+
'm#./mocks/AppState',
|
|
93
|
+
);
|
|
94
|
+
mock(
|
|
95
|
+
'm#react-native/Libraries/BatchedBridge/NativeModules',
|
|
96
|
+
'm#./mocks/NativeModules',
|
|
97
|
+
);
|
|
98
|
+
mock(
|
|
99
|
+
'm#react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo',
|
|
94
100
|
'm#./mocks/AccessibilityInfo',
|
|
95
101
|
);
|
|
96
102
|
mock(
|
|
97
|
-
'm
|
|
103
|
+
'm#react-native/Libraries/Components/ActivityIndicator/ActivityIndicator',
|
|
98
104
|
'm#./mocks/ActivityIndicator',
|
|
99
105
|
);
|
|
100
|
-
mock('m#../Libraries/Components/Clipboard/Clipboard', 'm#./mocks/Clipboard');
|
|
101
106
|
mock(
|
|
102
|
-
'm
|
|
103
|
-
|
|
107
|
+
'm#react-native/Libraries/Components/Clipboard/Clipboard',
|
|
108
|
+
'm#./mocks/Clipboard',
|
|
109
|
+
);
|
|
110
|
+
mock(
|
|
111
|
+
'm#react-native/Libraries/Components/RefreshControl/RefreshControl',
|
|
112
|
+
// $FlowFixMe[incompatible-type] - `react-native/Libraries/Components/RefreshControl/RefreshControl` should export a component type.
|
|
104
113
|
'm#./mocks/RefreshControl',
|
|
105
114
|
);
|
|
106
|
-
// $FlowFixMe[incompatible-exact] - `../Libraries/Components/ScrollView/ScrollView` is... I don't even.
|
|
107
|
-
// $FlowFixMe[incompatible-type]
|
|
108
|
-
mock('m#../Libraries/Components/ScrollView/ScrollView', 'm#./mocks/ScrollView');
|
|
109
|
-
mock('m#../Libraries/Components/TextInput/TextInput', 'm#./mocks/TextInput');
|
|
110
|
-
mock('m#../Libraries/Components/View/View', 'm#./mocks/View');
|
|
111
115
|
mock(
|
|
112
|
-
'm
|
|
116
|
+
'm#react-native/Libraries/Components/ScrollView/ScrollView',
|
|
117
|
+
// $FlowFixMe[incompatible-exact] - `react-native/Libraries/Components/ScrollView/ScrollView` is... I don't even.
|
|
118
|
+
// $FlowFixMe[incompatible-type]
|
|
119
|
+
'm#./mocks/ScrollView',
|
|
120
|
+
);
|
|
121
|
+
mock(
|
|
122
|
+
'm#react-native/Libraries/Components/TextInput/TextInput',
|
|
123
|
+
'm#./mocks/TextInput',
|
|
124
|
+
);
|
|
125
|
+
mock('m#react-native/Libraries/Components/View/View', 'm#./mocks/View');
|
|
126
|
+
mock(
|
|
127
|
+
'm#react-native/Libraries/Components/View/ViewNativeComponent',
|
|
113
128
|
// $FlowFixMe[incompatible-type] - `./mocks/ViewNativeComponent` is incomplete.
|
|
114
129
|
// $FlowFixMe[prop-missing]
|
|
115
130
|
'm#./mocks/ViewNativeComponent',
|
|
116
131
|
);
|
|
117
|
-
mock('m#../Libraries/Core/InitializeCore', 'm#./mocks/InitializeCore');
|
|
118
|
-
mock('m#../Libraries/Core/NativeExceptionsManager');
|
|
119
|
-
mock('m#../Libraries/Image/Image', 'm#./mocks/Image');
|
|
120
|
-
// $FlowFixMe[incompatible-type] - `./mocks/Linking` is incomplete.
|
|
121
|
-
mock('m#../Libraries/Linking/Linking', 'm#./mocks/Linking');
|
|
122
|
-
// $FlowFixMe[incompatible-type] - `../Libraries/Modal/Modal` should export a component type.
|
|
123
|
-
mock('m#../Libraries/Modal/Modal', 'm#./mocks/Modal');
|
|
124
132
|
mock(
|
|
125
|
-
'm
|
|
133
|
+
'm#react-native/Libraries/Core/InitializeCore',
|
|
134
|
+
'm#./mocks/InitializeCore',
|
|
135
|
+
);
|
|
136
|
+
mock('m#react-native/Libraries/Core/NativeExceptionsManager');
|
|
137
|
+
mock('m#react-native/Libraries/Image/Image', 'm#./mocks/Image');
|
|
138
|
+
mock(
|
|
139
|
+
'm#react-native/Libraries/Linking/Linking',
|
|
140
|
+
// $FlowFixMe[incompatible-type] - `./mocks/Linking` is incomplete.
|
|
141
|
+
'm#./mocks/Linking',
|
|
142
|
+
);
|
|
143
|
+
mock(
|
|
144
|
+
'm#react-native/Libraries/Modal/Modal',
|
|
145
|
+
// $FlowFixMe[incompatible-type] - `react-native/Libraries/Modal/Modal` should export a component type.
|
|
146
|
+
'm#./mocks/Modal',
|
|
147
|
+
);
|
|
148
|
+
mock(
|
|
149
|
+
'm#react-native/Libraries/NativeComponent/NativeComponentRegistry',
|
|
126
150
|
// $FlowFixMe[incompatible-type] - `./mocks/NativeComponentRegistry` should export named functions.
|
|
127
151
|
'm#./mocks/NativeComponentRegistry',
|
|
128
152
|
);
|
|
129
|
-
// $FlowFixMe[incompatible-type] - `./mocks/RendererProxy` is incomplete.
|
|
130
|
-
mock('m#../Libraries/ReactNative/RendererProxy', 'm#./mocks/RendererProxy');
|
|
131
153
|
mock(
|
|
132
|
-
'm
|
|
154
|
+
'm#react-native/Libraries/ReactNative/RendererProxy',
|
|
155
|
+
// $FlowFixMe[incompatible-type] - `./mocks/RendererProxy` is incomplete.
|
|
156
|
+
'm#./mocks/RendererProxy',
|
|
157
|
+
);
|
|
158
|
+
mock(
|
|
159
|
+
'm#react-native/Libraries/ReactNative/requireNativeComponent',
|
|
133
160
|
'm#./mocks/requireNativeComponent',
|
|
134
161
|
);
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
mock('m
|
|
162
|
+
mock(
|
|
163
|
+
'm#react-native/Libraries/ReactNative/UIManager',
|
|
164
|
+
// $FlowFixMe[incompatible-type] - `./mocks/UIManager` is incomplete.
|
|
165
|
+
'm#./mocks/UIManager',
|
|
166
|
+
);
|
|
167
|
+
mock('m#react-native/Libraries/Text/Text', 'm#./mocks/Text');
|
|
168
|
+
mock(
|
|
169
|
+
'm#react-native/Libraries/Utilities/useColorScheme',
|
|
170
|
+
// $FlowFixMe[react-rule-hook-incompatible]
|
|
171
|
+
'm#./mocks/useColorScheme',
|
|
172
|
+
);
|
|
173
|
+
mock(
|
|
174
|
+
'm#react-native/Libraries/Vibration/Vibration',
|
|
175
|
+
// $FlowFixMe[incompatible-type]
|
|
176
|
+
'm#./mocks/Vibration',
|
|
177
|
+
);
|
package/overrides.json
CHANGED
|
@@ -7,25 +7,25 @@
|
|
|
7
7
|
"**/__snapshots__/**",
|
|
8
8
|
"src-win/rntypes/**"
|
|
9
9
|
],
|
|
10
|
-
"baseVersion": "0.
|
|
10
|
+
"baseVersion": "0.85.3",
|
|
11
11
|
"overrides": [
|
|
12
12
|
{
|
|
13
13
|
"type": "derived",
|
|
14
14
|
"file": ".flowconfig",
|
|
15
15
|
"baseFile": ".flowconfig",
|
|
16
|
-
"baseHash": "
|
|
16
|
+
"baseHash": "56a63445d9d20e6c25fea831d9d0d41b9c5b6463"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"type": "derived",
|
|
20
20
|
"file": "src-win/index.win32.js",
|
|
21
21
|
"baseFile": "packages/react-native/index.js",
|
|
22
|
-
"baseHash": "
|
|
22
|
+
"baseHash": "36c619cbe063dcd12ab4003886209d00e80ab249"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"type": "derived",
|
|
26
26
|
"file": "src-win/index.win32.js.flow",
|
|
27
27
|
"baseFile": "packages/react-native/index.js.flow",
|
|
28
|
-
"baseHash": "
|
|
28
|
+
"baseHash": "d1e1f6a15bd8659d03fb763a86a4de0c855f05c1"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"type": "platform",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"type": "derived",
|
|
48
48
|
"file": "src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js",
|
|
49
49
|
"baseFile": "packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js",
|
|
50
|
-
"baseHash": "
|
|
50
|
+
"baseHash": "ee6f102be5d4b456d16900499a01abd0ca1ce1ba"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"type": "copy",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"type": "derived",
|
|
67
67
|
"file": "src-win/Libraries/Components/Button.win32.js",
|
|
68
68
|
"baseFile": "packages/react-native/Libraries/Components/Button.js",
|
|
69
|
-
"baseHash": "
|
|
69
|
+
"baseHash": "c3f8d0874549590ba8d2d020fd1c13d604d74be9"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
"type": "platform",
|
|
@@ -91,14 +91,14 @@
|
|
|
91
91
|
"type": "patch",
|
|
92
92
|
"file": "src-win/Libraries/Components/Pressable/Pressable.win32.js",
|
|
93
93
|
"baseFile": "packages/react-native/Libraries/Components/Pressable/Pressable.js",
|
|
94
|
-
"baseHash": "
|
|
94
|
+
"baseHash": "5ff66c1735078860d360204d9e4471c05cf0fb1e",
|
|
95
95
|
"issue": 6240
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"type": "copy",
|
|
99
99
|
"file": "src-win/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js",
|
|
100
100
|
"baseFile": "packages/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js",
|
|
101
|
-
"baseHash": "
|
|
101
|
+
"baseHash": "5eb51a48b73b5c1ccc24fe34fd91c67c01b969d4"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"type": "copy",
|
|
@@ -114,13 +114,13 @@
|
|
|
114
114
|
"type": "derived",
|
|
115
115
|
"file": "src-win/Libraries/Components/TextInput/TextInput.flow.win32.js",
|
|
116
116
|
"baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.flow.js",
|
|
117
|
-
"baseHash": "
|
|
117
|
+
"baseHash": "89dae9a6774a2fd24d7468702a616752e314d727"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"type": "derived",
|
|
121
121
|
"file": "src-win/Libraries/Components/TextInput/TextInput.win32.js",
|
|
122
122
|
"baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
|
|
123
|
-
"baseHash": "
|
|
123
|
+
"baseHash": "cedca6e0b5e98b29759cc1ca806313ffa7937eb2"
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
"type": "patch",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"type": "patch",
|
|
148
148
|
"file": "src-win/Libraries/Components/Touchable/Touchable.win32.js",
|
|
149
149
|
"baseFile": "packages/react-native/Libraries/Components/Touchable/Touchable.js",
|
|
150
|
-
"baseHash": "
|
|
150
|
+
"baseHash": "a9e38223753e718c5410a8ca9973064e699c1ab4"
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"type": "derived",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"type": "derived",
|
|
160
160
|
"file": "src-win/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js",
|
|
161
161
|
"baseFile": "packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js",
|
|
162
|
-
"baseHash": "
|
|
162
|
+
"baseHash": "7adb86e9810269266c8d1f9d252dc541a7030b75"
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
"type": "platform",
|
|
@@ -173,12 +173,6 @@
|
|
|
173
173
|
"type": "platform",
|
|
174
174
|
"file": "src-win/Libraries/Components/Touchable/TouchableWin32.Types.tsx"
|
|
175
175
|
},
|
|
176
|
-
{
|
|
177
|
-
"type": "patch",
|
|
178
|
-
"file": "src-win/Libraries/Components/View/ReactNativeViewAttributes.win32.js",
|
|
179
|
-
"baseFile": "packages/react-native/Libraries/Components/View/ReactNativeViewAttributes.js",
|
|
180
|
-
"baseHash": "096d430d02315c4017c5971daaee5790db6787f6"
|
|
181
|
-
},
|
|
182
176
|
{
|
|
183
177
|
"type": "patch",
|
|
184
178
|
"file": "src-win/Libraries/Components/View/View.win32.js",
|
|
@@ -195,7 +189,7 @@
|
|
|
195
189
|
"type": "derived",
|
|
196
190
|
"file": "src-win/Libraries/Components/View/ViewAccessibility.win32.js",
|
|
197
191
|
"baseFile": "packages/react-native/Libraries/Components/View/ViewAccessibility.js",
|
|
198
|
-
"baseHash": "
|
|
192
|
+
"baseHash": "7f8b076ccf47b528c604d2b1086754c351689b2e"
|
|
199
193
|
},
|
|
200
194
|
{
|
|
201
195
|
"type": "derived",
|
|
@@ -207,7 +201,7 @@
|
|
|
207
201
|
"type": "patch",
|
|
208
202
|
"file": "src-win/Libraries/Components/View/ViewPropTypes.win32.js",
|
|
209
203
|
"baseFile": "packages/react-native/Libraries/Components/View/ViewPropTypes.js",
|
|
210
|
-
"baseHash": "
|
|
204
|
+
"baseHash": "138a0f01dfe3524a61cf585461867fd522e49964",
|
|
211
205
|
"issue": 6240
|
|
212
206
|
},
|
|
213
207
|
{
|
|
@@ -296,32 +290,32 @@
|
|
|
296
290
|
"type": "derived",
|
|
297
291
|
"file": "src-win/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.win32.js",
|
|
298
292
|
"baseFile": "packages/react-native/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js",
|
|
299
|
-
"baseHash": "
|
|
293
|
+
"baseHash": "a40c0f275fe317de0aece23c7c26e923545c7ece"
|
|
300
294
|
},
|
|
301
295
|
{
|
|
302
296
|
"type": "patch",
|
|
303
297
|
"file": "src-win/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js",
|
|
304
298
|
"baseFile": "packages/react-native/Libraries/LogBox/UI/LogBoxInspectorHeader.js",
|
|
305
|
-
"baseHash": "
|
|
299
|
+
"baseHash": "3d342d4c28ce5deafecf22682522fdb275ae41bf",
|
|
306
300
|
"issue": 7952
|
|
307
301
|
},
|
|
308
302
|
{
|
|
309
303
|
"type": "derived",
|
|
310
304
|
"file": "src-win/Libraries/LogBox/UI/LogBoxInspectorReactFrames.win32.js",
|
|
311
305
|
"baseFile": "packages/react-native/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js",
|
|
312
|
-
"baseHash": "
|
|
306
|
+
"baseHash": "12bd90c6572e19e7c23c0cc702d179f04dc8d7bc"
|
|
313
307
|
},
|
|
314
308
|
{
|
|
315
309
|
"type": "derived",
|
|
316
310
|
"file": "src-win/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.win32.js",
|
|
317
311
|
"baseFile": "packages/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js",
|
|
318
|
-
"baseHash": "
|
|
312
|
+
"baseHash": "245082e81b6274f96a8da37d1e9a21fcd0ff0e18"
|
|
319
313
|
},
|
|
320
314
|
{
|
|
321
315
|
"type": "derived",
|
|
322
316
|
"file": "src-win/Libraries/LogBox/UI/LogBoxInspectorStackFrame.win32.js",
|
|
323
317
|
"baseFile": "packages/react-native/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js",
|
|
324
|
-
"baseHash": "
|
|
318
|
+
"baseHash": "95e584184ae16ef23a57f7ebc3fba6b5c54a5268",
|
|
325
319
|
"issue": 5885
|
|
326
320
|
},
|
|
327
321
|
{
|
|
@@ -335,13 +329,13 @@
|
|
|
335
329
|
"type": "derived",
|
|
336
330
|
"file": "src-win/Libraries/NativeComponent/BaseViewConfig.win32.js",
|
|
337
331
|
"baseFile": "packages/react-native/Libraries/NativeComponent/BaseViewConfig.ios.js",
|
|
338
|
-
"baseHash": "
|
|
332
|
+
"baseHash": "5b9617aa1bedd5c70b30dac1f3b35aa535976b54"
|
|
339
333
|
},
|
|
340
334
|
{
|
|
341
335
|
"type": "copy",
|
|
342
336
|
"file": "src-win/Libraries/Network/RCTNetworking.win32.js",
|
|
343
337
|
"baseFile": "packages/react-native/Libraries/Network/RCTNetworking.ios.js",
|
|
344
|
-
"baseHash": "
|
|
338
|
+
"baseHash": "475b803e357811f6989d8d116bb040cfb1735b7c",
|
|
345
339
|
"issue": 4318
|
|
346
340
|
},
|
|
347
341
|
{
|
|
@@ -371,7 +365,7 @@
|
|
|
371
365
|
"type": "patch",
|
|
372
366
|
"file": "src-win/Libraries/Pressability/Pressability.win32.js",
|
|
373
367
|
"baseFile": "packages/react-native/Libraries/Pressability/Pressability.js",
|
|
374
|
-
"baseHash": "
|
|
368
|
+
"baseHash": "623bd2db2402499786aa79161ec7bfa10577a404",
|
|
375
369
|
"issue": 6240
|
|
376
370
|
},
|
|
377
371
|
{
|
|
@@ -400,7 +394,7 @@
|
|
|
400
394
|
"type": "patch",
|
|
401
395
|
"file": "src-win/Libraries/Renderer/shims/ReactNativeTypes.win32.js",
|
|
402
396
|
"baseFile": "packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js",
|
|
403
|
-
"baseHash": "
|
|
397
|
+
"baseHash": "333afc05f5a42a5321196f5f7a14d14c8fd5dd0f",
|
|
404
398
|
"issue": 0
|
|
405
399
|
},
|
|
406
400
|
{
|
|
@@ -431,26 +425,26 @@
|
|
|
431
425
|
"type": "derived",
|
|
432
426
|
"file": "src-win/Libraries/Text/Text.win32.js",
|
|
433
427
|
"baseFile": "packages/react-native/Libraries/Text/Text.js",
|
|
434
|
-
"baseHash": "
|
|
428
|
+
"baseHash": "9e33c80b41f230349924379625a39c9cf68b9d3b"
|
|
435
429
|
},
|
|
436
430
|
{
|
|
437
431
|
"type": "derived",
|
|
438
432
|
"file": "src-win/Libraries/Text/TextNativeComponent.win32.js",
|
|
439
433
|
"baseFile": "packages/react-native/Libraries/Text/TextNativeComponent.js",
|
|
440
|
-
"baseHash": "
|
|
434
|
+
"baseHash": "508e687d6346c5c99bef39d56a6e8230754ba0ef",
|
|
441
435
|
"issue": 7074
|
|
442
436
|
},
|
|
443
437
|
{
|
|
444
438
|
"type": "derived",
|
|
445
439
|
"file": "src-win/Libraries/Text/TextProps.win32.js",
|
|
446
440
|
"baseFile": "packages/react-native/Libraries/Text/TextProps.js",
|
|
447
|
-
"baseHash": "
|
|
441
|
+
"baseHash": "7c4f916e4b08bcffaed10144506ff99b0781fc20"
|
|
448
442
|
},
|
|
449
443
|
{
|
|
450
444
|
"type": "patch",
|
|
451
445
|
"file": "src-win/Libraries/Types/CoreEventTypes.win32.js",
|
|
452
446
|
"baseFile": "packages/react-native/Libraries/Types/CoreEventTypes.js",
|
|
453
|
-
"baseHash": "
|
|
447
|
+
"baseHash": "a171d222c66e809419656decb12be33185f35952",
|
|
454
448
|
"issue": 6240
|
|
455
449
|
},
|
|
456
450
|
{
|
|
@@ -464,7 +458,7 @@
|
|
|
464
458
|
"type": "derived",
|
|
465
459
|
"file": "src-win/Libraries/Utilities/Dimensions.win32.js",
|
|
466
460
|
"baseFile": "packages/react-native/Libraries/Utilities/Dimensions.js",
|
|
467
|
-
"baseHash": "
|
|
461
|
+
"baseHash": "23420f7f7fe6d90fc8c9cc84aaf6424cbf12c0b2"
|
|
468
462
|
},
|
|
469
463
|
{
|
|
470
464
|
"type": "platform",
|
|
@@ -497,13 +491,13 @@
|
|
|
497
491
|
"type": "copy",
|
|
498
492
|
"file": "src-win/Libraries/Utilities/useMergeRefs.js",
|
|
499
493
|
"baseFile": "packages/react-native/Libraries/Utilities/useMergeRefs.js",
|
|
500
|
-
"baseHash": "
|
|
494
|
+
"baseHash": "a4f8be3b9ee884407be60acd32755eea5490ac45"
|
|
501
495
|
},
|
|
502
496
|
{
|
|
503
497
|
"type": "patch",
|
|
504
498
|
"file": "src-win/src/private/animated/NativeAnimatedHelper.win32.js",
|
|
505
499
|
"baseFile": "packages/react-native/src/private/animated/NativeAnimatedHelper.js",
|
|
506
|
-
"baseHash": "
|
|
500
|
+
"baseHash": "b2f5d15fcf7b7b26fbd49e0196037fbb8175bb17",
|
|
507
501
|
"issue": 11041
|
|
508
502
|
},
|
|
509
503
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.85.0-preview.1",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,31 +30,32 @@
|
|
|
30
30
|
"@react-native-community/cli-platform-android": "20.0.0",
|
|
31
31
|
"@react-native-community/cli-platform-ios": "20.0.0",
|
|
32
32
|
"@react-native/assets": "1.0.0",
|
|
33
|
-
"@react-native/assets-registry": "0.
|
|
34
|
-
"@react-native/codegen": "0.
|
|
35
|
-
"@react-native/community-cli-plugin": "0.
|
|
36
|
-
"@react-native/gradle-plugin": "0.
|
|
37
|
-
"@react-native/
|
|
38
|
-
"@react-native/
|
|
39
|
-
"@react-native/
|
|
33
|
+
"@react-native/assets-registry": "0.85.3",
|
|
34
|
+
"@react-native/codegen": "0.85.3",
|
|
35
|
+
"@react-native/community-cli-plugin": "0.85.3",
|
|
36
|
+
"@react-native/gradle-plugin": "0.85.3",
|
|
37
|
+
"@react-native/jest-preset": "0.85.3",
|
|
38
|
+
"@react-native/js-polyfills": "0.85.3",
|
|
39
|
+
"@react-native/normalize-colors": "0.85.3",
|
|
40
|
+
"@react-native/virtualized-lists": "0.85.3",
|
|
40
41
|
"abort-controller": "^3.0.0",
|
|
41
42
|
"anser": "^1.4.9",
|
|
42
43
|
"ansi-regex": "^5.0.0",
|
|
43
44
|
"art": "^0.10.0",
|
|
44
45
|
"babel-jest": "^29.7.0",
|
|
45
|
-
"babel-plugin-syntax-hermes-parser": "0.
|
|
46
|
+
"babel-plugin-syntax-hermes-parser": "0.33.3",
|
|
46
47
|
"base64-js": "^1.5.1",
|
|
47
48
|
"chalk": "^4.0.0",
|
|
48
49
|
"commander": "^12.0.0",
|
|
49
50
|
"event-target-shim": "^5.0.1",
|
|
50
51
|
"flow-enums-runtime": "^0.0.6",
|
|
51
52
|
"glob": "^7.1.1",
|
|
52
|
-
"hermes-compiler": "250829098.0.
|
|
53
|
+
"hermes-compiler": "250829098.0.10",
|
|
53
54
|
"invariant": "^2.2.4",
|
|
54
55
|
"jest-environment-node": "^29.7.0",
|
|
55
56
|
"memoize-one": "^5.0.0",
|
|
56
|
-
"metro-runtime": "^0.
|
|
57
|
-
"metro-source-map": "^0.
|
|
57
|
+
"metro-runtime": "^0.84.3",
|
|
58
|
+
"metro-source-map": "^0.84.3",
|
|
58
59
|
"mkdirp": "^0.5.1",
|
|
59
60
|
"nullthrows": "^1.1.1",
|
|
60
61
|
"pretty-format": "^29.7.0",
|
|
@@ -74,7 +75,8 @@
|
|
|
74
75
|
"devDependencies": {
|
|
75
76
|
"@babel/core": "^7.25.2",
|
|
76
77
|
"@babel/eslint-parser": "^7.25.1",
|
|
77
|
-
"@
|
|
78
|
+
"@babel/preset-env": "^7.25.3",
|
|
79
|
+
"@react-native/metro-config": "0.85.3",
|
|
78
80
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
79
81
|
"@rnw-scripts/eslint-config": "1.2.38",
|
|
80
82
|
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.42",
|
|
@@ -86,19 +88,20 @@
|
|
|
86
88
|
"@types/prop-types": "15.7.1",
|
|
87
89
|
"@types/react": "^19.2.3",
|
|
88
90
|
"eslint": "^8.19.0",
|
|
89
|
-
"flow-bin": "^0.
|
|
91
|
+
"flow-bin": "^0.303.0",
|
|
90
92
|
"jscodeshift": "^0.14.0",
|
|
91
93
|
"just-scripts": "^1.3.3",
|
|
92
94
|
"prettier": "^3.6.2",
|
|
93
95
|
"react": "19.2.3",
|
|
94
|
-
"react-native": "0.
|
|
95
|
-
"react-native-platform-override": "0.
|
|
96
|
+
"react-native": "0.85.3",
|
|
97
|
+
"react-native-platform-override": "0.85.0-preview.1",
|
|
96
98
|
"typescript": "5.0.4"
|
|
97
99
|
},
|
|
98
100
|
"peerDependencies": {
|
|
101
|
+
"@react-native/jest-preset": "0.85.3",
|
|
99
102
|
"@types/react": "^19.1.1",
|
|
100
103
|
"react": "^19.2.3",
|
|
101
|
-
"react-native": "0.
|
|
104
|
+
"react-native": "^0.85.0"
|
|
102
105
|
},
|
|
103
106
|
"beachball": {
|
|
104
107
|
"defaultNpmTag": "preview",
|
|
@@ -103,7 +103,7 @@ function createNativeOperations(): NonNullable<typeof NativeAnimatedModule> {
|
|
|
103
103
|
methodNames.push('connectAnimatedNodeToShadowNodeFamily');
|
|
104
104
|
}
|
|
105
105
|
const nativeOperations: {
|
|
106
|
-
[
|
|
106
|
+
[Values<typeof methodNames>]: (...ReadonlyArray<unknown>) => void,
|
|
107
107
|
} = {};
|
|
108
108
|
if (isSingleOpBatching) {
|
|
109
109
|
for (let ii = 0, length = methodNames.length; ii < length; ii++) {
|
|
@@ -406,7 +406,7 @@ function assertNativeAnimatedModule(): void {
|
|
|
406
406
|
let _warnedMissingNativeAnimated = false;
|
|
407
407
|
|
|
408
408
|
function shouldUseNativeDriver(
|
|
409
|
-
config:
|
|
409
|
+
config: Readonly<{...AnimationConfig, ...}> | EventConfig<unknown>,
|
|
410
410
|
): boolean {
|
|
411
411
|
if (config.useNativeDriver == null) {
|
|
412
412
|
console.warn(
|
|
@@ -103,7 +103,7 @@ function createNativeOperations(): NonNullable<typeof NativeAnimatedModule> {
|
|
|
103
103
|
methodNames.push('connectAnimatedNodeToShadowNodeFamily');
|
|
104
104
|
}
|
|
105
105
|
const nativeOperations: {
|
|
106
|
-
[
|
|
106
|
+
[Values<typeof methodNames>]: (...ReadonlyArray<unknown>) => void,
|
|
107
107
|
} = {};
|
|
108
108
|
if (isSingleOpBatching) {
|
|
109
109
|
for (let ii = 0, length = methodNames.length; ii < length; ii++) {
|
|
@@ -409,7 +409,7 @@ function assertNativeAnimatedModule(): void {
|
|
|
409
409
|
let _warnedMissingNativeAnimated = false;
|
|
410
410
|
|
|
411
411
|
function shouldUseNativeDriver(
|
|
412
|
-
config:
|
|
412
|
+
config: Readonly<{...AnimationConfig, ...}> | EventConfig<unknown>,
|
|
413
413
|
): boolean {
|
|
414
414
|
if (config.useNativeDriver == null) {
|
|
415
415
|
console.warn(
|
|
@@ -24,32 +24,32 @@ type CompositeKey = {
|
|
|
24
24
|
[string]:
|
|
25
25
|
| CompositeKeyComponent
|
|
26
26
|
| AnimatedEvent
|
|
27
|
-
|
|
|
28
|
-
|
|
|
27
|
+
| ReadonlyArray<unknown>
|
|
28
|
+
| Readonly<{[string]: unknown}>,
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
type CompositeKeyComponent =
|
|
32
32
|
| AnimatedNode
|
|
33
|
-
|
|
|
34
|
-
|
|
|
33
|
+
| ReadonlyArray<CompositeKeyComponent | null>
|
|
34
|
+
| Readonly<{[string]: CompositeKeyComponent}>;
|
|
35
35
|
|
|
36
|
-
type $ReadOnlyCompositeKey =
|
|
37
|
-
style?:
|
|
36
|
+
type $ReadOnlyCompositeKey = Readonly<{
|
|
37
|
+
style?: Readonly<{[string]: CompositeKeyComponent}>,
|
|
38
38
|
[string]:
|
|
39
39
|
| $ReadOnlyCompositeKeyComponent
|
|
40
40
|
| AnimatedEvent
|
|
41
|
-
|
|
|
42
|
-
|
|
|
41
|
+
| ReadonlyArray<unknown>
|
|
42
|
+
| Readonly<{[string]: unknown}>,
|
|
43
43
|
}>;
|
|
44
44
|
|
|
45
45
|
type $ReadOnlyCompositeKeyComponent =
|
|
46
46
|
| AnimatedNode
|
|
47
|
-
|
|
|
48
|
-
|
|
|
47
|
+
| ReadonlyArray<$ReadOnlyCompositeKeyComponent | null>
|
|
48
|
+
| Readonly<{[string]: $ReadOnlyCompositeKeyComponent}>;
|
|
49
49
|
|
|
50
50
|
type AnimatedPropsMemoHook = (
|
|
51
51
|
() => AnimatedProps,
|
|
52
|
-
props:
|
|
52
|
+
props: Readonly<{[string]: unknown}>,
|
|
53
53
|
) => AnimatedProps;
|
|
54
54
|
|
|
55
55
|
/**
|
|
@@ -62,14 +62,14 @@ export function createAnimatedPropsMemoHook(
|
|
|
62
62
|
): AnimatedPropsMemoHook {
|
|
63
63
|
return function useAnimatedPropsMemo(
|
|
64
64
|
create: () => AnimatedProps,
|
|
65
|
-
props:
|
|
65
|
+
props: Readonly<{[string]: unknown}>,
|
|
66
66
|
): AnimatedProps {
|
|
67
67
|
const compositeKey = useMemo(
|
|
68
68
|
() => createCompositeKeyForProps(props, allowlist),
|
|
69
69
|
[props],
|
|
70
70
|
);
|
|
71
71
|
|
|
72
|
-
const prevRef = useRef
|
|
72
|
+
const prevRef = useRef<?Readonly<{
|
|
73
73
|
compositeKey: typeof compositeKey,
|
|
74
74
|
node: AnimatedProps,
|
|
75
75
|
}>>();
|
|
@@ -107,7 +107,7 @@ export function createAnimatedPropsMemoHook(
|
|
|
107
107
|
* returns null.
|
|
108
108
|
*/
|
|
109
109
|
export function createCompositeKeyForProps(
|
|
110
|
-
props:
|
|
110
|
+
props: Readonly<{[string]: unknown}>,
|
|
111
111
|
allowlist: ?AnimatedPropsAllowlist,
|
|
112
112
|
): $ReadOnlyCompositeKey | null {
|
|
113
113
|
let compositeKey: CompositeKey | null = null;
|
|
@@ -160,8 +160,8 @@ export function createCompositeKeyForProps(
|
|
|
160
160
|
* If `array` contains no `AnimatedNode` instances, this returns null.
|
|
161
161
|
*/
|
|
162
162
|
function createCompositeKeyForArray(
|
|
163
|
-
array:
|
|
164
|
-
):
|
|
163
|
+
array: ReadonlyArray<unknown>,
|
|
164
|
+
): ReadonlyArray<$ReadOnlyCompositeKeyComponent | null> | null {
|
|
165
165
|
let compositeKey: Array<$ReadOnlyCompositeKeyComponent | null> | null = null;
|
|
166
166
|
|
|
167
167
|
for (let ii = 0, length = array.length; ii < length; ii++) {
|
|
@@ -200,9 +200,9 @@ function createCompositeKeyForArray(
|
|
|
200
200
|
* If `object` contains no `AnimatedNode` instances, this returns null.
|
|
201
201
|
*/
|
|
202
202
|
function createCompositeKeyForObject(
|
|
203
|
-
object:
|
|
203
|
+
object: Readonly<{[string]: unknown}>,
|
|
204
204
|
allowlist?: ?AnimatedStyleAllowlist,
|
|
205
|
-
):
|
|
205
|
+
): Readonly<{[string]: $ReadOnlyCompositeKeyComponent}> | null {
|
|
206
206
|
let compositeKey: {[string]: $ReadOnlyCompositeKeyComponent} | null = null;
|
|
207
207
|
|
|
208
208
|
const keys = Object.keys(object);
|
|
@@ -355,6 +355,6 @@ function areCompositeKeyComponentsEqual(
|
|
|
355
355
|
// this shim when they do.
|
|
356
356
|
// $FlowFixMe[method-unbinding]
|
|
357
357
|
const _hasOwnProp = Object.prototype.hasOwnProperty;
|
|
358
|
-
const hasOwn: (obj:
|
|
358
|
+
const hasOwn: (obj: Readonly<{...}>, prop: string) => boolean =
|
|
359
359
|
// $FlowFixMe[method-unbinding]
|
|
360
360
|
Object.hasOwn ?? ((obj, prop) => _hasOwnProp.call(obj, prop));
|