@office-iss/react-native-win32 0.0.0-canary.289 → 0.0.0-canary.290

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.
Files changed (112) hide show
  1. package/.flowconfig +1 -2
  2. package/CHANGELOG.json +16 -1
  3. package/CHANGELOG.md +13 -5
  4. package/Libraries/Animated/Animated.js.flow +1 -3
  5. package/Libraries/Animated/AnimatedExports.js.flow +12 -0
  6. package/Libraries/Animated/components/AnimatedScrollView.js +2 -1
  7. package/Libraries/Animated/components/AnimatedSectionList.js +1 -1
  8. package/Libraries/Animated/createAnimatedComponent.js +92 -56
  9. package/Libraries/Animated/nodes/AnimatedProps.js +29 -26
  10. package/Libraries/Animated/nodes/AnimatedValueXY.js +3 -1
  11. package/Libraries/AppState/AppState.js +1 -1
  12. package/Libraries/Blob/URL.js +1 -1
  13. package/Libraries/Blob/URLSearchParams.js +106 -31
  14. package/Libraries/Blob/URLSearchParams.js.flow +12 -7
  15. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +1 -1
  16. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +1 -1
  17. package/Libraries/Components/Keyboard/Keyboard.js +1 -1
  18. package/Libraries/Components/Pressable/Pressable.js +14 -3
  19. package/Libraries/Components/Pressable/Pressable.win32.js +14 -3
  20. package/Libraries/Components/ScrollView/ScrollView.d.ts +1 -1
  21. package/Libraries/Components/ScrollView/ScrollView.js +14 -17
  22. package/Libraries/Components/Switch/Switch.d.ts +3 -0
  23. package/Libraries/Components/Switch/Switch.js +1 -1
  24. package/Libraries/Components/TextInput/TextInput.d.ts +64 -33
  25. package/Libraries/Components/TextInput/TextInput.flow.js +15 -16
  26. package/Libraries/Components/TextInput/TextInput.js +34 -27
  27. package/Libraries/Components/TextInput/TextInput.win32.js +34 -27
  28. package/Libraries/Components/TextInput/TextInputState.js +1 -1
  29. package/Libraries/Components/TextInput/TextInputState.win32.js +1 -1
  30. package/Libraries/Components/Touchable/TouchableBounce.js +2 -1
  31. package/Libraries/Components/Touchable/TouchableHighlight.js +1 -1
  32. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +2 -2
  33. package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +2 -2
  34. package/Libraries/Components/Touchable/TouchableOpacity.js +2 -1
  35. package/Libraries/Components/View/ViewAccessibility.js +2 -1
  36. package/Libraries/Components/View/ViewAccessibility.win32.js +2 -1
  37. package/Libraries/Components/View/ViewPropTypes.js +49 -3
  38. package/Libraries/Components/View/ViewPropTypes.win32.js +49 -3
  39. package/Libraries/Core/ReactNativeVersion.js +1 -1
  40. package/Libraries/Debugging/DebuggingOverlayRegistry.js +3 -3
  41. package/Libraries/EventEmitter/NativeEventEmitter.js +4 -2
  42. package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +2 -2
  43. package/Libraries/Image/Image.d.ts +26 -10
  44. package/Libraries/Image/Image.js.flow +3 -3
  45. package/Libraries/Image/ImageBackground.js +2 -0
  46. package/Libraries/Image/ImageProps.js +19 -14
  47. package/Libraries/Interaction/InteractionManager.d.ts +13 -0
  48. package/Libraries/Interaction/InteractionManager.js +1 -1
  49. package/Libraries/Interaction/PanResponder.js +3 -3
  50. package/Libraries/LayoutAnimation/LayoutAnimation.js +2 -2
  51. package/Libraries/Linking/Linking.js +1 -1
  52. package/Libraries/Lists/FlatList.js +7 -10
  53. package/Libraries/Lists/SectionList.js +39 -42
  54. package/Libraries/Lists/SectionListModern.js +22 -31
  55. package/Libraries/Lists/VirtualizedList.js +1 -0
  56. package/Libraries/Lists/VirtualizedSectionList.js +1 -0
  57. package/Libraries/NativeComponent/BaseViewConfig.android.js +1 -0
  58. package/Libraries/NativeComponent/BaseViewConfig.ios.js +1 -0
  59. package/Libraries/NativeComponent/BaseViewConfig.win32.js +1 -0
  60. package/Libraries/Network/RCTNetworking.android.js +1 -1
  61. package/Libraries/Network/RCTNetworking.ios.js +1 -1
  62. package/Libraries/Network/RCTNetworking.js.flow +1 -1
  63. package/Libraries/Network/RCTNetworking.win32.js +1 -1
  64. package/Libraries/NewAppScreen/components/DebugInstructions.js +1 -3
  65. package/Libraries/NewAppScreen/components/Header.js +1 -3
  66. package/Libraries/NewAppScreen/components/HermesBadge.js +1 -3
  67. package/Libraries/NewAppScreen/components/LearnMoreLinks.js +1 -3
  68. package/Libraries/NewAppScreen/components/ReloadInstructions.js +1 -3
  69. package/Libraries/Pressability/Pressability.js +1 -1
  70. package/Libraries/Pressability/Pressability.win32.js +1 -1
  71. package/Libraries/ReactNative/AppContainer-dev.js +2 -2
  72. package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +2 -4
  73. package/Libraries/ReactNative/RendererImplementation.js +4 -0
  74. package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +1 -1
  75. package/Libraries/Renderer/shims/ReactNativeTypes.js +3 -3
  76. package/Libraries/StyleSheet/StyleSheet.js +25 -2
  77. package/Libraries/StyleSheet/StyleSheet.js.flow +24 -2
  78. package/Libraries/StyleSheet/StyleSheetTypes.js +13 -3
  79. package/Libraries/StyleSheet/flattenStyle.js +7 -3
  80. package/Libraries/StyleSheet/private/_TransformStyle.js +3 -3
  81. package/Libraries/Text/Text.d.ts +2 -5
  82. package/Libraries/Text/TextProps.js +3 -2
  83. package/Libraries/Text/TextProps.win32.js +3 -2
  84. package/Libraries/Types/CoreEventTypes.d.ts +6 -1
  85. package/Libraries/Types/CoreEventTypes.js +1 -1
  86. package/Libraries/Types/CoreEventTypes.win32.js +1 -1
  87. package/Libraries/Utilities/DeviceInfo.js +2 -0
  88. package/Libraries/Utilities/Dimensions.js +1 -1
  89. package/Libraries/Utilities/Dimensions.win32.js +1 -1
  90. package/Libraries/Utilities/PlatformTypes.js +9 -3
  91. package/Libraries/Utilities/ReactNativeTestTools.js +1 -1
  92. package/Libraries/vendor/core/ErrorUtils.js +2 -0
  93. package/flow/global.js +2 -0
  94. package/index.js +3 -0
  95. package/index.win32.js +3 -0
  96. package/interface.js +0 -4
  97. package/overrides.json +19 -25
  98. package/package.json +13 -13
  99. package/src/private/animated/NativeAnimatedHelper.js +3 -1
  100. package/src/private/animated/NativeAnimatedHelper.win32.js +3 -1
  101. package/src/private/animated/createAnimatedPropsHook.js +1 -0
  102. package/src/private/animated/createAnimatedPropsMemoHook.js +1 -2
  103. package/src/private/featureflags/ReactNativeFeatureFlags.js +18 -18
  104. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +3 -3
  105. package/src/private/inspector/getInspectorDataForViewAtPoint.js +2 -2
  106. package/src/private/types/HostInstance.js +61 -3
  107. package/src/private/webapis/dom/nodes/ReactNativeElement.js +2 -5
  108. package/src-win/Libraries/Text/Text.d.ts +2 -5
  109. package/types/modules/LaunchScreen.d.ts +9 -1
  110. package/Libraries/Utilities/DeviceInfo.win32.js +0 -19
  111. package/flow/jest.js +0 -1289
  112. package/src/private/utilities/ensureInstance.js +0 -21
@@ -7,7 +7,7 @@
7
7
  * @noformat
8
8
  * @nolint
9
9
  * @flow strict
10
- * @generated SignedSource<<5c76b092e0c981f96ca894e381ee593b>>
10
+ * @generated SignedSource<<2264e9839602043a41f1e13913b43b0f>>
11
11
  */
12
12
 
13
13
  import type {
@@ -84,8 +84,8 @@ export type ViewConfig = $ReadOnly<{
84
84
  }>;
85
85
 
86
86
  export type PartialViewConfig = $ReadOnly<{
87
- bubblingEventTypes?: $PropertyType<ViewConfig, 'bubblingEventTypes'>,
88
- directEventTypes?: $PropertyType<ViewConfig, 'directEventTypes'>,
87
+ bubblingEventTypes?: ViewConfig['bubblingEventTypes'],
88
+ directEventTypes?: ViewConfig['directEventTypes'],
89
89
  supportsRawText?: boolean,
90
90
  uiViewClassName: string,
91
91
  validAttributes?: PartialAttributeConfiguration,
@@ -15,18 +15,25 @@ import type {
15
15
  ____ColorValue_Internal,
16
16
  ____DangerouslyImpreciseStyle_Internal,
17
17
  ____DangerouslyImpreciseStyleProp_Internal,
18
+ ____FontVariant_Internal,
18
19
  ____ImageStyle_Internal,
19
20
  ____ImageStyleProp_Internal,
20
21
  ____TextStyle_Internal,
21
22
  ____TextStyleProp_Internal,
23
+ ____TransformStyle_Internal,
22
24
  ____ViewStyle_Internal,
23
25
  ____ViewStyleProp_Internal,
26
+ NativeColorValue,
24
27
  } from './StyleSheetTypes';
25
28
  const StyleSheet: StyleSheetExports = (
26
29
  require('./StyleSheetExports') as $FlowFixMe
27
30
  ).default;
28
31
 
29
- export type {NativeColorValue} from './StyleSheetTypes';
32
+ export type {
33
+ BoxShadowValue,
34
+ NativeColorValue,
35
+ FilterFunction,
36
+ } from './StyleSheetTypes';
30
37
 
31
38
  /**
32
39
  * This type should be used as the type for anything that is a color. It is
@@ -37,6 +44,22 @@ export type {NativeColorValue} from './StyleSheetTypes';
37
44
  */
38
45
  export type ColorValue = ____ColorValue_Internal;
39
46
 
47
+ /**
48
+ * Expose the opaque type for NativeColorValue.
49
+ * @deprecated Use NativeColorValue instead.
50
+ */
51
+ export type OpaqueColorValue = NativeColorValue;
52
+
53
+ /**
54
+ * This type is an object of the properties related to transforms.
55
+ */
56
+ export type TransformsStyle = ____TransformStyle_Internal;
57
+
58
+ /**
59
+ * This type holds possible values for the `fontVariant` style property.
60
+ */
61
+ export type FontVariant = ____FontVariant_Internal;
62
+
40
63
  /**
41
64
  * This type should be used as the type for a prop that is passed through
42
65
  * to a <View>'s `style` prop. This ensures call sites of the component
@@ -95,7 +118,7 @@ export type DangerouslyImpreciseStyleProp =
95
118
  */
96
119
  export type TypeForStyleKey<
97
120
  +key: $Keys<____DangerouslyImpreciseStyle_Internal>,
98
- > = $ElementType<____DangerouslyImpreciseStyle_Internal, key>;
121
+ > = ____DangerouslyImpreciseStyle_Internal[key];
99
122
 
100
123
  /**
101
124
  * This type is an object of the different possible style
@@ -14,15 +14,22 @@ import type {
14
14
  ____ColorValue_Internal,
15
15
  ____DangerouslyImpreciseStyle_Internal,
16
16
  ____DangerouslyImpreciseStyleProp_Internal,
17
+ ____FontVariant_Internal,
17
18
  ____ImageStyle_Internal,
18
19
  ____ImageStyleProp_Internal,
19
20
  ____TextStyle_Internal,
20
21
  ____TextStyleProp_Internal,
22
+ ____TransformStyle_Internal,
21
23
  ____ViewStyle_Internal,
22
24
  ____ViewStyleProp_Internal,
25
+ NativeColorValue,
23
26
  } from './StyleSheetTypes';
24
27
 
25
- export type {StyleProp} from './StyleSheetTypes';
28
+ export type {
29
+ StyleProp,
30
+ BoxShadowValue,
31
+ FilterFunction,
32
+ } from './StyleSheetTypes';
26
33
 
27
34
  export type StyleSheetProperties = {
28
35
  hairlineWidth: number,
@@ -40,6 +47,21 @@ export type {NativeColorValue} from './StyleSheetTypes';
40
47
  */
41
48
  export type ColorValue = ____ColorValue_Internal;
42
49
 
50
+ /**
51
+ * Expose the opaque type for NativeColorValue.
52
+ */
53
+ export type OpaqueColorValue = NativeColorValue;
54
+
55
+ /**
56
+ * This type is an object of the properties related to transforms.
57
+ */
58
+ export type TransformsStyle = ____TransformStyle_Internal;
59
+
60
+ /**
61
+ * This type holds possible values for the `fontVariant` style property.
62
+ */
63
+ export type FontVariant = ____FontVariant_Internal;
64
+
43
65
  /**
44
66
  * This type should be used as the type for a prop that is passed through
45
67
  * to a <View>'s `style` prop. This ensures call sites of the component
@@ -98,7 +120,7 @@ export type DangerouslyImpreciseStyleProp =
98
120
  */
99
121
  export type TypeForStyleKey<
100
122
  +key: $Keys<____DangerouslyImpreciseStyle_Internal>,
101
- > = $ElementType<____DangerouslyImpreciseStyle_Internal, key>;
123
+ > = ____DangerouslyImpreciseStyle_Internal[key];
102
124
 
103
125
  /**
104
126
  * This type is an object of the different possible style
@@ -10,6 +10,7 @@
10
10
 
11
11
  'use strict';
12
12
 
13
+ import type {AnimatedBaseProps} from '../Animated/createAnimatedComponent';
13
14
  import type AnimatedNode from '../Animated/nodes/AnimatedNode';
14
15
  import type {ImageResizeMode} from './../Image/ImageResizeMode';
15
16
  import type {
@@ -21,6 +22,8 @@ import type {
21
22
  } from './private/_StyleSheetTypesOverrides';
22
23
  import type {____TransformStyle_Internal} from './private/_TransformStyle';
23
24
 
25
+ export type {____TransformStyle_Internal};
26
+
24
27
  declare export opaque type NativeColorValue;
25
28
  export type ____ColorValue_Internal = null | string | number | NativeColorValue;
26
29
  export type ColorArrayValue = null | $ReadOnlyArray<____ColorValue_Internal>;
@@ -871,7 +874,7 @@ export type ____FontWeight_Internal =
871
874
  | 'heavy'
872
875
  | 'black';
873
876
 
874
- export type ____FontVariantArray_Internal = $ReadOnlyArray<
877
+ export type ____FontVariant_Internal =
875
878
  | 'small-caps'
876
879
  | 'oldstyle-nums'
877
880
  | 'lining-nums'
@@ -904,8 +907,10 @@ export type ____FontVariantArray_Internal = $ReadOnlyArray<
904
907
  | 'stylistic-seventeen'
905
908
  | 'stylistic-eighteen'
906
909
  | 'stylistic-nineteen'
907
- | 'stylistic-twenty',
908
- >;
910
+ | 'stylistic-twenty';
911
+
912
+ export type ____FontVariantArray_Internal =
913
+ $ReadOnlyArray<____FontVariant_Internal>;
909
914
 
910
915
  type ____TextStyle_InternalBase = $ReadOnly<{
911
916
  color?: ____ColorValue_Internal,
@@ -986,6 +991,11 @@ export type StyleProp<+T> =
986
991
  export type ____DangerouslyImpreciseStyleProp_Internal = StyleProp<
987
992
  Partial<____DangerouslyImpreciseStyle_Internal>,
988
993
  >;
994
+
995
+ export type ____DangerouslyImpreciseAnimatedStyleProp_Internal = StyleProp<
996
+ Partial<AnimatedBaseProps<____DangerouslyImpreciseStyle_Internal>>,
997
+ >;
998
+
989
999
  export type ____ViewStyleProp_Internal = StyleProp<
990
1000
  $ReadOnly<Partial<____ViewStyle_Internal>>,
991
1001
  >;
@@ -10,10 +10,14 @@
10
10
 
11
11
  'use strict';
12
12
 
13
- import type {DangerouslyImpreciseStyleProp} from './StyleSheet';
14
- import type {____FlattenStyleProp_Internal} from './StyleSheetTypes';
13
+ import type {
14
+ ____DangerouslyImpreciseAnimatedStyleProp_Internal,
15
+ ____FlattenStyleProp_Internal,
16
+ } from './StyleSheetTypes';
15
17
 
16
- function flattenStyle<TStyleProp: DangerouslyImpreciseStyleProp>(
18
+ function flattenStyle<
19
+ TStyleProp: ____DangerouslyImpreciseAnimatedStyleProp_Internal,
20
+ >(
17
21
  style: ?TStyleProp,
18
22
  // $FlowFixMe[underconstrained-implicit-instantiation]
19
23
  ): ?____FlattenStyleProp_Internal<TStyleProp> {
@@ -37,11 +37,11 @@ export type ____TransformStyle_Internal = $ReadOnly<{
37
37
  | {+scale: number | AnimatedNode}
38
38
  | {+scaleX: number | AnimatedNode}
39
39
  | {+scaleY: number | AnimatedNode}
40
- | {+translateX: number | AnimatedNode}
41
- | {+translateY: number | AnimatedNode}
40
+ | {+translateX: number | string | AnimatedNode}
41
+ | {+translateY: number | string | AnimatedNode}
42
42
  | {
43
43
  +translate:
44
- | [number | AnimatedNode, number | AnimatedNode]
44
+ | [number | string | AnimatedNode, number | string | AnimatedNode]
45
45
  | AnimatedNode,
46
46
  }
47
47
  | {+skewX: string | AnimatedNode}
@@ -16,8 +16,7 @@ import {TextStyle, ViewStyle} from '../StyleSheet/StyleSheetTypes';
16
16
  import {
17
17
  GestureResponderEvent,
18
18
  LayoutChangeEvent,
19
- NativeSyntheticEvent,
20
- TextLayoutEventData,
19
+ TextLayoutEvent,
21
20
  } from '../Types/CoreEventTypes';
22
21
  import type {
23
22
  IKeyboardEvent,
@@ -248,9 +247,7 @@ export interface TextProps
248
247
  /**
249
248
  * Invoked on Text layout
250
249
  */
251
- onTextLayout?:
252
- | ((event: NativeSyntheticEvent<TextLayoutEventData>) => void)
253
- | undefined;
250
+ onTextLayout?: ((event: TextLayoutEvent) => void) | undefined;
254
251
 
255
252
  /**
256
253
  * This function is called on press.
@@ -24,7 +24,8 @@ import type {
24
24
  PointerEvent,
25
25
  TextLayoutEvent,
26
26
  } from '../Types/CoreEventTypes';
27
- import type {Node} from 'react';
27
+
28
+ import React from 'react';
28
29
 
29
30
  export type PressRetentionOffset = $ReadOnly<{
30
31
  top: number,
@@ -169,7 +170,7 @@ type TextBaseProps = $ReadOnly<{
169
170
  */
170
171
  'aria-labelledby'?: ?string,
171
172
 
172
- children?: ?Node,
173
+ children?: ?React.Node,
173
174
 
174
175
  /**
175
176
  * When `numberOfLines` is set, this prop defines how text will be
@@ -24,7 +24,8 @@ import type {
24
24
  PointerEvent,
25
25
  TextLayoutEvent,
26
26
  } from '../Types/CoreEventTypes';
27
- import type {Node} from 'react';
27
+
28
+ import React from 'react';
28
29
 
29
30
  export type PressRetentionOffset = $ReadOnly<{
30
31
  top: number,
@@ -182,7 +183,7 @@ type TextBaseProps = $ReadOnly<{
182
183
  */
183
184
  'aria-labelledby'?: ?string,
184
185
 
185
- children?: ?Node,
186
+ children?: ?React.Node,
186
187
 
187
188
  /**
188
189
  * When `numberOfLines` is set, this prop defines how text will be
@@ -33,12 +33,17 @@ interface TextLayoutLine {
33
33
  }
34
34
 
35
35
  /**
36
- * @see TextProps.onTextLayout
36
+ * @deprecated Use `TextLayoutEvent` instead.
37
37
  */
38
38
  export interface TextLayoutEventData extends TargetedEvent {
39
39
  lines: TextLayoutLine[];
40
40
  }
41
41
 
42
+ /**
43
+ * @see TextProps.onTextLayout
44
+ */
45
+ export type TextLayoutEvent = NativeSyntheticEvent<TextLayoutEventData>;
46
+
42
47
  // Similar to React.SyntheticEvent except for nativeEvent
43
48
  export interface NativeSyntheticEvent<T>
44
49
  extends React.BaseSyntheticEvent<T, HostInstance, HostInstance> {}
@@ -76,7 +76,7 @@ export type LayoutChangeEvent = NativeSyntheticEvent<
76
76
  }>,
77
77
  >;
78
78
 
79
- export type TextLayoutEventData = $ReadOnly<{
79
+ type TextLayoutEventData = $ReadOnly<{
80
80
  lines: Array<TextLayoutLine>,
81
81
  }>;
82
82
 
@@ -76,7 +76,7 @@ export type LayoutChangeEvent = NativeSyntheticEvent<
76
76
  }>,
77
77
  >;
78
78
 
79
- export type TextLayoutEventData = $ReadOnly<{
79
+ type TextLayoutEventData = $ReadOnly<{
80
80
  lines: Array<TextLayoutLine>,
81
81
  }>;
82
82
 
@@ -8,6 +8,8 @@
8
8
  * @flow strict-local
9
9
  */
10
10
 
11
+ export type {DeviceInfoConstants} from './NativeDeviceInfo';
12
+
11
13
  import NativeDeviceInfo from './NativeDeviceInfo';
12
14
 
13
15
  export default NativeDeviceInfo;
@@ -19,7 +19,7 @@ import NativeDeviceInfo, {
19
19
  } from './NativeDeviceInfo';
20
20
  import invariant from 'invariant';
21
21
 
22
- export type {DisplayMetrics, DisplayMetricsAndroid};
22
+ export type {DimensionsPayload, DisplayMetrics, DisplayMetricsAndroid};
23
23
 
24
24
  /** @deprecated Use DisplayMetrics */
25
25
  export type ScaledSize = DisplayMetrics;
@@ -17,7 +17,7 @@ import NativeDeviceInfo, {
17
17
  } from './NativeDeviceInfo';
18
18
  import invariant from 'invariant';
19
19
 
20
- export type {DisplayMetrics, DisplayMetricsAndroid};
20
+ export type {DimensionsPayload, DisplayMetrics, DisplayMetricsAndroid};
21
21
 
22
22
  /** @deprecated Use DisplayMetrics */
23
23
  export type ScaledSize = DisplayMetrics;
@@ -17,11 +17,17 @@ export type PlatformOSType =
17
17
  | 'web'
18
18
  | 'native';
19
19
 
20
- export type PlatformSelectSpec<T> = {
21
- default?: T,
22
- [PlatformOSType]: T,
20
+ type OptionalPlatformSelectSpec<T> = {
21
+ [_key in PlatformOSType]?: T,
23
22
  };
24
23
 
24
+ export type PlatformSelectSpec<T> =
25
+ | {
26
+ ...OptionalPlatformSelectSpec<T>,
27
+ default: T,
28
+ }
29
+ | OptionalPlatformSelectSpec<T>;
30
+
25
31
  type IOSPlatform = {
26
32
  __constants: null,
27
33
  OS: 'ios',
@@ -22,7 +22,7 @@ const View = require('../Components/View/View').default;
22
22
  const Text = require('../Text/Text').default;
23
23
  const {VirtualizedList} = require('@react-native/virtualized-lists').default;
24
24
 
25
- export type ReactTestInstance = $PropertyType<ReactTestRendererType, 'root'>;
25
+ export type ReactTestInstance = ReactTestRendererType['root'];
26
26
  export type Predicate = (node: ReactTestInstance) => boolean;
27
27
  /* $FlowFixMe[value-as-type] (>=0.125.1 site=react_native_fb) This comment
28
28
  * suppresses an error found when Flow v0.125.1 was deployed. To see the error,
@@ -10,6 +10,8 @@
10
10
 
11
11
  import type {ErrorUtilsT} from '@react-native/js-polyfills/error-guard';
12
12
 
13
+ export type ErrorUtils = ErrorUtilsT;
14
+
13
15
  /**
14
16
  * The particular require runtime that we are using looks for a global
15
17
  * `ErrorUtils` object and if it exists, then it requires modules with the
package/flow/global.js CHANGED
@@ -86,3 +86,5 @@ declare var global: {
86
86
  // Undeclared properties are implicitly `any`.
87
87
  [string | symbol]: any,
88
88
  };
89
+
90
+ type $PropertyType<T, K> = T[K];
package/index.js CHANGED
@@ -204,6 +204,9 @@ module.exports = {
204
204
  get I18nManager() {
205
205
  return require('./Libraries/ReactNative/I18nManager').default;
206
206
  },
207
+ /**
208
+ * @deprecated
209
+ */
207
210
  get InteractionManager() {
208
211
  return require('./Libraries/Interaction/InteractionManager').default;
209
212
  },
package/index.win32.js CHANGED
@@ -292,6 +292,9 @@ module.exports = {
292
292
  get I18nManager(): I18nManager {
293
293
  return require('./Libraries/ReactNative/I18nManager').default;
294
294
  },
295
+ /**
296
+ * @deprecated
297
+ */
295
298
  get InteractionManager(): InteractionManager {
296
299
  return require('./Libraries/Interaction/InteractionManager').default;
297
300
  },
package/interface.js CHANGED
@@ -19,7 +19,3 @@
19
19
  /* eslint-disable no-unused-vars */
20
20
 
21
21
  declare var __DEV__: boolean;
22
-
23
- declare var __REACT_DEVTOOLS_GLOBAL_HOOK__: any; /*?{
24
- inject: ?((stuff: Object) => void)
25
- };*/
package/overrides.json CHANGED
@@ -7,19 +7,19 @@
7
7
  "**/__snapshots__/**",
8
8
  "src-win/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.80.0-nightly-20250317-fc7385c1e",
10
+ "baseVersion": "0.80.0-nightly-20250331-398ac1f71",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
14
14
  "file": ".flowconfig",
15
15
  "baseFile": ".flowconfig",
16
- "baseHash": "b8b53bf5315c0b91d0f69c3fe9274797a55b993f"
16
+ "baseHash": "5b774dab8f68093cccdd7609b16bde8546765414"
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": "7a10369d15e8b09ef772d8f229cbfc712d074cbf"
22
+ "baseHash": "8de9394a317351d4d0e582de3f138e6374456823"
23
23
  },
24
24
  {
25
25
  "type": "platform",
@@ -41,7 +41,7 @@
41
41
  "type": "derived",
42
42
  "file": "src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js",
43
43
  "baseFile": "packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js",
44
- "baseHash": "fa025a1dabfb8c73f72cab48393ef1720273690d"
44
+ "baseHash": "5a43c9cf537c5cb89e7f634e45be708f4b021493"
45
45
  },
46
46
  {
47
47
  "type": "copy",
@@ -85,7 +85,7 @@
85
85
  "type": "patch",
86
86
  "file": "src-win/Libraries/Components/Pressable/Pressable.win32.js",
87
87
  "baseFile": "packages/react-native/Libraries/Components/Pressable/Pressable.js",
88
- "baseHash": "d213d6885bf028350b8f4c79bdcb847289317d86",
88
+ "baseHash": "09575f26ef614b81330d27d6cb950580774e3c1f",
89
89
  "issue": 6240
90
90
  },
91
91
  {
@@ -108,13 +108,13 @@
108
108
  "type": "derived",
109
109
  "file": "src-win/Libraries/Components/TextInput/TextInput.win32.js",
110
110
  "baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
111
- "baseHash": "f762096a46203b6bae385806087b7b7cb5744f16"
111
+ "baseHash": "b4e722883e25dfa4864a1285b577c5adfc90ce9d"
112
112
  },
113
113
  {
114
114
  "type": "patch",
115
115
  "file": "src-win/Libraries/Components/TextInput/TextInputState.win32.js",
116
116
  "baseFile": "packages/react-native/Libraries/Components/TextInput/TextInputState.js",
117
- "baseHash": "5603046411826837d1f8003f2d6784221bdef674"
117
+ "baseHash": "400af173e846317c705487f51f3cb165e7378a4f"
118
118
  },
119
119
  {
120
120
  "type": "platform",
@@ -147,7 +147,7 @@
147
147
  "type": "derived",
148
148
  "file": "src-win/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js",
149
149
  "baseFile": "packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js",
150
- "baseHash": "c64be122b6011941423d60bc1aa03f5dab8fd7b1"
150
+ "baseHash": "2f2263f5e6c7a2bd827b065db20d1ba632561774"
151
151
  },
152
152
  {
153
153
  "type": "platform",
@@ -183,7 +183,7 @@
183
183
  "type": "derived",
184
184
  "file": "src-win/Libraries/Components/View/ViewAccessibility.win32.js",
185
185
  "baseFile": "packages/react-native/Libraries/Components/View/ViewAccessibility.js",
186
- "baseHash": "7b90ff2ca0ede95e456afd76aeb859f539ade3ff"
186
+ "baseHash": "c057d139f953c09d6f1021d5842840873e878db8"
187
187
  },
188
188
  {
189
189
  "type": "derived",
@@ -195,7 +195,7 @@
195
195
  "type": "patch",
196
196
  "file": "src-win/Libraries/Components/View/ViewPropTypes.win32.js",
197
197
  "baseFile": "packages/react-native/Libraries/Components/View/ViewPropTypes.js",
198
- "baseHash": "dbab30f1cad27a647149a61e1d63f7b81e6aed2e",
198
+ "baseHash": "714722715a4562ef22a7f630e45781e80506a6bd",
199
199
  "issue": 6240
200
200
  },
201
201
  {
@@ -317,13 +317,13 @@
317
317
  "type": "derived",
318
318
  "file": "src-win/Libraries/NativeComponent/BaseViewConfig.win32.js",
319
319
  "baseFile": "packages/react-native/Libraries/NativeComponent/BaseViewConfig.ios.js",
320
- "baseHash": "1f6068ed8762edc516d9679832fee7f12a31858e"
320
+ "baseHash": "3ba8fe1a60d744e057e856bc43e2df28f4fd7f66"
321
321
  },
322
322
  {
323
323
  "type": "copy",
324
324
  "file": "src-win/Libraries/Network/RCTNetworking.win32.js",
325
325
  "baseFile": "packages/react-native/Libraries/Network/RCTNetworking.ios.js",
326
- "baseHash": "cdda150c411ef03de0f52d5dbbd3976d094d136b",
326
+ "baseHash": "4b96609d7e8d0596d2960aacfda35af73cec1085",
327
327
  "issue": 4318
328
328
  },
329
329
  {
@@ -353,7 +353,7 @@
353
353
  "type": "patch",
354
354
  "file": "src-win/Libraries/Pressability/Pressability.win32.js",
355
355
  "baseFile": "packages/react-native/Libraries/Pressability/Pressability.js",
356
- "baseHash": "97027444d74f5a2f03a966753c23f86145f3fc0b",
356
+ "baseHash": "b52df7d819237b8acdd08f84631e3c257a9cb390",
357
357
  "issue": 6240
358
358
  },
359
359
  {
@@ -400,7 +400,7 @@
400
400
  "type": "derived",
401
401
  "file": "src-win/Libraries/Text/Text.d.ts",
402
402
  "baseFile": "packages/react-native/Libraries/Text/Text.d.ts",
403
- "baseHash": "26bf1ec0ad4cae2049298d3ec95b387fa2fe854b"
403
+ "baseHash": "b5f44957bc61497fcb7203934bdbc6ca9725cf42"
404
404
  },
405
405
  {
406
406
  "type": "derived",
@@ -419,13 +419,13 @@
419
419
  "type": "derived",
420
420
  "file": "src-win/Libraries/Text/TextProps.win32.js",
421
421
  "baseFile": "packages/react-native/Libraries/Text/TextProps.js",
422
- "baseHash": "fadd5d092aa22ca59d2c33b0ac0191fe90f4f123"
422
+ "baseHash": "1646b5a9467049adeb7d9e070913ab327214b04d"
423
423
  },
424
424
  {
425
425
  "type": "patch",
426
426
  "file": "src-win/Libraries/Types/CoreEventTypes.win32.js",
427
427
  "baseFile": "packages/react-native/Libraries/Types/CoreEventTypes.js",
428
- "baseHash": "038c14d702490acd25dab824b1b10f5db42eece8",
428
+ "baseHash": "ed736df6081d2fbbf54a646b8373bf485449255a",
429
429
  "issue": 6240
430
430
  },
431
431
  {
@@ -435,17 +435,11 @@
435
435
  "baseHash": "dfaab027e0fe3a2d7b6dccd92c1de2a558a5d36c",
436
436
  "issue": 4629
437
437
  },
438
- {
439
- "type": "derived",
440
- "file": "src-win/Libraries/Utilities/DeviceInfo.win32.js",
441
- "baseFile": "packages/react-native/Libraries/Utilities/DeviceInfo.js",
442
- "baseHash": "e40e5c968968ee7c3115df57e6c07f8383719ee2"
443
- },
444
438
  {
445
439
  "type": "derived",
446
440
  "file": "src-win/Libraries/Utilities/Dimensions.win32.js",
447
441
  "baseFile": "packages/react-native/Libraries/Utilities/Dimensions.js",
448
- "baseHash": "1c9f7f698bba91e98afb5cc8ec3511a30343f3bd"
442
+ "baseHash": "07b59b2dd822c45eb9bccba8da0ce361eeb67bc1"
449
443
  },
450
444
  {
451
445
  "type": "platform",
@@ -471,7 +465,7 @@
471
465
  "type": "patch",
472
466
  "file": "src-win/Libraries/Utilities/PlatformTypes.js",
473
467
  "baseFile": "packages/react-native/Libraries/Utilities/PlatformTypes.js",
474
- "baseHash": "95e01d9774ac3afdcdacdc049e9c647dbec3055d",
468
+ "baseHash": "323895a47d9a31a5502843aae5aa833d225abb08",
475
469
  "issue": 14686
476
470
  },
477
471
  {
@@ -484,7 +478,7 @@
484
478
  "type": "patch",
485
479
  "file": "src-win/src/private/animated/NativeAnimatedHelper.win32.js",
486
480
  "baseFile": "packages/react-native/src/private/animated/NativeAnimatedHelper.js",
487
- "baseHash": "c511868b72abd4e0e7d0b07e0453ea56687ffddb",
481
+ "baseHash": "f07ba42819770210251c4c38db4399b7c07d96e8",
488
482
  "issue": 11041
489
483
  },
490
484
  {