react-native 0.87.0-rc.2 → 0.87.0-rc.3

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 (85) hide show
  1. package/Libraries/Core/ReactNativeVersion.js +1 -1
  2. package/React/Base/RCTVersion.m +1 -1
  3. package/ReactAndroid/gradle.properties +1 -1
  4. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
  5. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  6. package/ReactCommon/jsinspector-modern/HostTargetTraceRecording.cpp +10 -7
  7. package/ReactCommon/jsinspector-modern/tracing/HostTracingProfile.h +14 -1
  8. package/ReactCommon/jsinspector-modern/tracing/TraceRecordingState.h +11 -0
  9. package/ReactCommon/react/nativemodule/dom/NativeDOM.cpp +10 -4
  10. package/package.json +7 -7
  11. package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +7 -7
  12. package/types_generated/Libraries/Alert/Alert.d.ts +6 -6
  13. package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +2 -2
  14. package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +3 -3
  15. package/types_generated/Libraries/Animated/animations/Animation.d.ts +7 -7
  16. package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +5 -5
  17. package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +49 -49
  18. package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +13 -13
  19. package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +3 -3
  20. package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +3 -3
  21. package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +4 -4
  22. package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +2 -2
  23. package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +9 -9
  24. package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +3 -3
  25. package/types_generated/Libraries/Blob/BlobTypes.d.ts +4 -4
  26. package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +3 -3
  27. package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +3 -3
  28. package/types_generated/Libraries/Components/Button.d.ts +5 -5
  29. package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +3 -3
  30. package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +5 -5
  31. package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +6 -6
  32. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +3 -3
  33. package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +3 -3
  34. package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +20 -20
  35. package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +4 -4
  36. package/types_generated/Libraries/Components/Switch/Switch.d.ts +3 -3
  37. package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +5 -5
  38. package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +4 -4
  39. package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +3 -3
  40. package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +2 -2
  41. package/types_generated/Libraries/Components/View/View.d.ts +3 -3
  42. package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +12 -12
  43. package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +10 -10
  44. package/types_generated/Libraries/Core/ExtendedError.d.ts +10 -10
  45. package/types_generated/Libraries/Image/ImageProps.d.ts +13 -13
  46. package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +5 -5
  47. package/types_generated/Libraries/Lists/FlatList.d.ts +13 -13
  48. package/types_generated/Libraries/Lists/SectionList.d.ts +4 -4
  49. package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +2 -2
  50. package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +2 -2
  51. package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +2 -2
  52. package/types_generated/Libraries/Modal/Modal.d.ts +4 -4
  53. package/types_generated/Libraries/Network/FormData.d.ts +5 -5
  54. package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +4 -4
  55. package/types_generated/Libraries/Pressability/Pressability.d.ts +5 -5
  56. package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +11 -11
  57. package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +4 -4
  58. package/types_generated/Libraries/ReactNative/IPerformanceLogger.flow.d.ts +5 -5
  59. package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +34 -34
  60. package/types_generated/Libraries/Share/Share.d.ts +11 -11
  61. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +3 -3
  62. package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +182 -182
  63. package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +3 -3
  64. package/types_generated/Libraries/Text/Text.d.ts +3 -3
  65. package/types_generated/Libraries/Text/TextProps.d.ts +5 -5
  66. package/types_generated/Libraries/TurboModule/RCTExport.d.ts +2 -2
  67. package/types_generated/Libraries/Types/CoreEventTypes.d.ts +8 -8
  68. package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +6 -6
  69. package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +5 -5
  70. package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +2 -2
  71. package/types_generated/src/private/assets/AssetRegistry.d.ts +2 -2
  72. package/types_generated/src/private/components/virtualcollection/VirtualCollectionView.d.ts +5 -5
  73. package/types_generated/src/private/components/virtualcollection/column/VirtualColumn.d.ts +3 -3
  74. package/types_generated/src/private/components/virtualcollection/row/VirtualRow.d.ts +3 -3
  75. package/types_generated/src/private/components/virtualview/VirtualView.d.ts +7 -7
  76. package/types_generated/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.d.ts +5 -5
  77. package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +5 -5
  78. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +7 -7
  79. package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +5 -5
  80. package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +8 -8
  81. package/types_generated/src/private/types/HostComponent.d.ts +3 -3
  82. package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +2 -2
  83. package/types_generated/src/private/webapis/dom/events/Event.d.ts +4 -4
  84. package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +8 -8
  85. package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +3 -3
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<80d2e45055c6fd4420bfe4cbb6b00950>>
7
+ * @generated SignedSource<<33bdeef78c820699fadea6c9130ffffc>>
8
8
  *
9
9
  * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
10
  * Original file: packages/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.js
@@ -18,19 +18,19 @@ export type PushNotificationPermissions = {
18
18
  };
19
19
  type PresentLocalNotificationDetails = {
20
20
  alertBody: string;
21
- alertAction?: string;
22
- alertTitle?: string;
23
- soundName?: string;
24
- category?: string;
25
- userInfo?: Object;
26
- applicationIconBadgeNumber?: number;
27
- fireDate?: number;
28
- isSilent?: boolean;
21
+ alertAction?: string | undefined;
22
+ alertTitle?: string | undefined;
23
+ soundName?: string | undefined;
24
+ category?: string | undefined;
25
+ userInfo?: Object | undefined;
26
+ applicationIconBadgeNumber?: number | undefined;
27
+ fireDate?: number | undefined;
28
+ isSilent?: boolean | undefined;
29
29
  };
30
30
  type ScheduleLocalNotificationDetails = Omit<PresentLocalNotificationDetails, keyof {
31
- repeatInterval?: "year" | "month" | "week" | "day" | "hour" | "minute";
31
+ repeatInterval?: "year" | "month" | "week" | "day" | "hour" | "minute" | undefined;
32
32
  }> & {
33
- repeatInterval?: "year" | "month" | "week" | "day" | "hour" | "minute";
33
+ repeatInterval?: "year" | "month" | "week" | "day" | "hour" | "minute" | undefined;
34
34
  };
35
35
  export type ContentAvailable = 1 | null | void;
36
36
  export type FetchResult = {
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<35a87be1231250402e878ae18738792b>>
7
+ * @generated SignedSource<<20ac63d668b0607bd64c067acf2ddbcd>>
8
8
  *
9
9
  * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
10
  * Original file: packages/react-native/Libraries/ReactNative/AppRegistry.flow.js
@@ -21,9 +21,9 @@ export type ComponentProvider = () => React.ComponentType<any>;
21
21
  export type ComponentProviderInstrumentationHook = (component_: ComponentProvider, scopedPerformanceLogger: IPerformanceLogger) => React.ComponentType<any>;
22
22
  export type AppConfig = {
23
23
  appKey: string;
24
- component?: ComponentProvider;
25
- run?: Runnable;
26
- section?: boolean;
24
+ component?: ComponentProvider | undefined;
25
+ run?: Runnable | undefined;
26
+ section?: boolean | undefined;
27
27
  };
28
28
  export type AppParameters = {
29
29
  initialProps: Readonly<{
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<f2e29762d97689e5acafe266dbece1ef>>
7
+ * @generated SignedSource<<d3c84adb46c93a1e1da79bef11bfbe5e>>
8
8
  *
9
9
  * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
10
  * Original file: packages/react-native/Libraries/ReactNative/IPerformanceLogger.flow.js
@@ -16,10 +16,10 @@ export type Extras = {
16
16
  };
17
17
  export type Timespan = {
18
18
  startTime: number;
19
- endTime?: number;
20
- totalTime?: number;
21
- startExtras?: Extras;
22
- endExtras?: Extras;
19
+ endTime?: number | undefined;
20
+ totalTime?: number | undefined;
21
+ startExtras?: Extras | undefined;
22
+ endExtras?: Extras | undefined;
23
23
  };
24
24
  /**
25
25
  * @deprecated The scoped performance logger argument passed to the
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<dc3cd069a99d625b945028c5fbe9b5b2>>
7
+ * @generated SignedSource<<492e7071bb9c34fa67a5ec9757844e57>>
8
8
  *
9
9
  * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
10
  * Original file: packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js
@@ -13,27 +13,27 @@
13
13
  import type { HostInstance as PublicInstance, MeasureOnSuccessCallback, PublicRootInstance, PublicTextInstance } from "react-native";
14
14
  import * as React from "react";
15
15
  export type AttributeType<T, V> = true | Readonly<{
16
- diff?: (arg1: T, arg2: T) => boolean;
17
- process?: (arg1: V) => T;
16
+ diff?: ((arg1: T, arg2: T) => boolean) | undefined;
17
+ process?: ((arg1: V) => T) | undefined;
18
18
  }>;
19
19
  export type AnyAttributeType = AttributeType<any, any>;
20
20
  export type AttributeConfiguration = Readonly<{
21
21
  [propName: string]: AnyAttributeType | void;
22
22
  style?: Readonly<{
23
23
  [propName: string]: AnyAttributeType;
24
- }>;
24
+ }> | undefined;
25
25
  }>;
26
26
  export type ViewConfig = Readonly<{
27
27
  Commands?: Readonly<{
28
28
  [commandName: string]: number;
29
- }>;
29
+ }> | undefined;
30
30
  Constants?: Readonly<{
31
31
  [name: string]: unknown;
32
- }>;
33
- Manager?: string;
32
+ }> | undefined;
33
+ Manager?: string | undefined;
34
34
  NativeProps?: Readonly<{
35
35
  [propName: string]: string;
36
- }>;
36
+ }> | undefined;
37
37
  baseModuleName?: string | undefined;
38
38
  bubblingEventTypes?: Readonly<{
39
39
  [eventName: string]: Readonly<{
@@ -43,22 +43,22 @@ export type ViewConfig = Readonly<{
43
43
  skipBubbling?: boolean | undefined;
44
44
  }>;
45
45
  }>;
46
- }>;
46
+ }> | undefined;
47
47
  directEventTypes?: Readonly<{
48
48
  [eventName: string]: Readonly<{
49
49
  registrationName: string;
50
50
  }>;
51
- }>;
52
- supportsRawText?: boolean;
51
+ }> | undefined;
52
+ supportsRawText?: boolean | undefined;
53
53
  uiViewClassName: string;
54
54
  validAttributes: AttributeConfiguration;
55
55
  }>;
56
56
  export type PartialViewConfig = Readonly<{
57
- bubblingEventTypes?: ViewConfig["bubblingEventTypes"];
58
- directEventTypes?: ViewConfig["directEventTypes"];
59
- supportsRawText?: boolean;
57
+ bubblingEventTypes?: ViewConfig["bubblingEventTypes"] | undefined;
58
+ directEventTypes?: ViewConfig["directEventTypes"] | undefined;
59
+ supportsRawText?: boolean | undefined;
60
60
  uiViewClassName: string;
61
- validAttributes?: AttributeConfiguration;
61
+ validAttributes?: AttributeConfiguration | undefined;
62
62
  }>;
63
63
  type InspectorDataProps = Readonly<{
64
64
  [propName: string]: string;
@@ -68,7 +68,7 @@ type InspectorDataGetter = ($$PARAM_0$$: <TElementType extends React.ElementType
68
68
  props: InspectorDataProps;
69
69
  }>;
70
70
  export type InspectorData = Readonly<{
71
- closestInstance?: unknown;
71
+ closestInstance?: unknown | undefined;
72
72
  hierarchy: Array<{
73
73
  name: string | undefined;
74
74
  getInspectorData: InspectorDataGetter;
@@ -79,27 +79,27 @@ export type InspectorData = Readonly<{
79
79
  }>;
80
80
  export type TouchedViewDataAtPoint = Readonly<{
81
81
  pointerY: number;
82
- touchedViewTag?: number;
82
+ touchedViewTag?: number | undefined;
83
83
  frame: Readonly<{
84
84
  top: number;
85
85
  left: number;
86
86
  width: number;
87
87
  height: number;
88
88
  }>;
89
- closestPublicInstance?: PublicInstance;
89
+ closestPublicInstance?: PublicInstance | undefined;
90
90
  } & InspectorData>;
91
91
  export type RenderRootOptions = {
92
- onUncaughtError?: (error: unknown, errorInfo: {
92
+ onUncaughtError?: ((error: unknown, errorInfo: {
93
93
  readonly componentStack?: string | undefined;
94
- }) => void;
95
- onCaughtError?: (error: unknown, errorInfo: {
94
+ }) => void) | undefined;
95
+ onCaughtError?: ((error: unknown, errorInfo: {
96
96
  readonly componentStack?: string | undefined;
97
97
  readonly errorBoundary?: React.Component<any, any> | undefined;
98
- }) => void;
99
- onRecoverableError?: (error: unknown, errorInfo: {
98
+ }) => void) | undefined;
99
+ onRecoverableError?: ((error: unknown, errorInfo: {
100
100
  readonly componentStack?: string | undefined;
101
- }) => void;
102
- onDefaultTransitionIndicator?: () => void | (() => void);
101
+ }) => void) | undefined;
102
+ onDefaultTransitionIndicator?: (() => void | (() => void)) | undefined;
103
103
  };
104
104
  export declare type Node = symbol & {
105
105
  __Node__: string;
@@ -140,16 +140,16 @@ export type ReactFabricEvent = {
140
140
  export type LayoutAnimationType = "spring" | "linear" | "easeInEaseOut" | "easeIn" | "easeOut" | "keyboard";
141
141
  export type LayoutAnimationProperty = "opacity" | "scaleX" | "scaleY" | "scaleXY";
142
142
  export type LayoutAnimationAnimationConfig = Readonly<{
143
- duration?: number;
144
- delay?: number;
145
- springDamping?: number;
146
- initialVelocity?: number;
147
- type?: LayoutAnimationType;
148
- property?: LayoutAnimationProperty;
143
+ duration?: number | undefined;
144
+ delay?: number | undefined;
145
+ springDamping?: number | undefined;
146
+ initialVelocity?: number | undefined;
147
+ type?: LayoutAnimationType | undefined;
148
+ property?: LayoutAnimationProperty | undefined;
149
149
  }>;
150
150
  export type LayoutAnimationConfig = Readonly<{
151
151
  duration: number;
152
- create?: LayoutAnimationAnimationConfig;
153
- update?: LayoutAnimationAnimationConfig;
154
- delete?: LayoutAnimationAnimationConfig;
152
+ create?: LayoutAnimationAnimationConfig | undefined;
153
+ update?: LayoutAnimationAnimationConfig | undefined;
154
+ delete?: LayoutAnimationAnimationConfig | undefined;
155
155
  }>;
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<eba89ede9c7f224690187a5016b0624d>>
7
+ * @generated SignedSource<<ab22ca40253d24901edca40c9baa0a3d>>
8
8
  *
9
9
  * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
10
  * Original file: packages/react-native/Libraries/Share/Share.js
@@ -12,24 +12,24 @@
12
12
 
13
13
  import type { ColorValue } from "../StyleSheet/StyleSheet";
14
14
  export type ShareContent = {
15
- title?: string;
15
+ title?: string | undefined;
16
16
  url: string;
17
- message?: string;
17
+ message?: string | undefined;
18
18
  } | {
19
- title?: string;
20
- url?: string;
19
+ title?: string | undefined;
20
+ url?: string | undefined;
21
21
  message: string;
22
22
  };
23
23
  export type ShareOptions = {
24
- dialogTitle?: string;
25
- excludedActivityTypes?: Array<string>;
26
- tintColor?: ColorValue;
27
- subject?: string;
28
- anchor?: number;
24
+ dialogTitle?: string | undefined;
25
+ excludedActivityTypes?: Array<string> | undefined;
26
+ tintColor?: ColorValue | undefined;
27
+ subject?: string | undefined;
28
+ anchor?: number | undefined;
29
29
  };
30
30
  export type ShareAction = {
31
31
  action: "sharedAction" | "dismissedAction";
32
- activityType?: string | null;
32
+ activityType?: string | null | undefined;
33
33
  };
34
34
  /**
35
35
  * Opens a dialog to share text content.
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<ddf64a4575e57c8893e662b2d6c78a09>>
7
+ * @generated SignedSource<<0e5d4999e8e49d7e2ca973b7f6725dc3>>
8
8
  *
9
9
  * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
10
  * Original file: packages/react-native/Libraries/StyleSheet/PlatformColorValueTypesIOS.js
@@ -14,8 +14,8 @@ import type { ColorValue } from "./StyleSheet";
14
14
  export type DynamicColorIOSTuple = {
15
15
  light: ColorValue;
16
16
  dark: ColorValue;
17
- highContrastLight?: ColorValue;
18
- highContrastDark?: ColorValue;
17
+ highContrastLight?: ColorValue | undefined;
18
+ highContrastDark?: ColorValue | undefined;
19
19
  };
20
20
  /**
21
21
  * Specify color to display depending on the current system appearance settings