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
@@ -29,7 +29,7 @@ export default class ReactNativeVersion {
29
29
  static major: number = 0;
30
30
  static minor: number = 87;
31
31
  static patch: number = 0;
32
- static prerelease: string | null = 'rc.2';
32
+ static prerelease: string | null = 'rc.3';
33
33
 
34
34
  static getVersionString(): string {
35
35
  return `${this.major}.${this.minor}.${this.patch}${this.prerelease != null ? `-${this.prerelease}` : ''}`;
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(87),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"rc.2",
27
+ RCTVersionPrerelease: @"rc.3",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.87.0-rc.2
1
+ VERSION_NAME=0.87.0-rc.3
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
  react.internal.hermesPublishingGroup=com.facebook.hermes
4
4
 
@@ -15,6 +15,6 @@ public object ReactNativeVersion {
15
15
  "major" to 0,
16
16
  "minor" to 87,
17
17
  "patch" to 0,
18
- "prerelease" to "rc.2"
18
+ "prerelease" to "rc.3"
19
19
  )
20
20
  }
@@ -22,7 +22,7 @@ struct ReactNativeVersionType {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 87;
24
24
  int32_t Patch = 0;
25
- std::string_view Prerelease = "rc.2";
25
+ std::string_view Prerelease = "rc.3";
26
26
  };
27
27
 
28
28
  constexpr ReactNativeVersionType ReactNativeVersion;
@@ -64,13 +64,16 @@ tracing::HostTracingProfile HostTargetTraceRecording::stop() {
64
64
  auto startTime = *startTime_;
65
65
  startTime_.reset();
66
66
 
67
- return tracing::HostTracingProfile{
68
- .processId = oscompat::getCurrentProcessId(),
69
- .startTime = startTime,
70
- .frameTimings = frameTimings_.pruneExpiredAndExtract(),
71
- .instanceTracingProfiles = std::move(state.instanceTracingProfiles),
72
- .runtimeSamplingProfiles = std::move(state.runtimeSamplingProfiles),
73
- };
67
+ // Member-wise assignment instead of designated initializers:
68
+ // HostTracingProfile declares its special members (move-only) and is no
69
+ // longer an aggregate.
70
+ tracing::HostTracingProfile profile;
71
+ profile.processId = oscompat::getCurrentProcessId();
72
+ profile.startTime = startTime;
73
+ profile.frameTimings = frameTimings_.pruneExpiredAndExtract();
74
+ profile.instanceTracingProfiles = std::move(state.instanceTracingProfiles);
75
+ profile.runtimeSamplingProfiles = std::move(state.runtimeSamplingProfiles);
76
+ return profile;
74
77
  }
75
78
 
76
79
  void HostTargetTraceRecording::recordFrameTimings(
@@ -23,9 +23,22 @@ namespace facebook::react::jsinspector_modern::tracing {
23
23
  * messages.
24
24
  */
25
25
  struct HostTracingProfile {
26
+ HostTracingProfile() = default;
27
+
28
+ // Explicitly move-only: FrameTimingSequence and RuntimeSamplingProfile are
29
+ // not copyable, so the implicit copy constructor is ill-formed the moment it
30
+ // is instantiated. Plain C++ never instantiates it, but Swift's C++ interop
31
+ // does when these headers are reached from an imported module, turning it
32
+ // into a hard compile error (Xcode 26.3).
33
+ HostTracingProfile(const HostTracingProfile &) = delete;
34
+ HostTracingProfile &operator=(const HostTracingProfile &) = delete;
35
+ HostTracingProfile(HostTracingProfile &&) = default;
36
+ HostTracingProfile &operator=(HostTracingProfile &&) = default;
37
+ ~HostTracingProfile() = default;
38
+
26
39
  // The ID of the OS-level process that this Trace Recording is associated
27
40
  // with.
28
- ProcessId processId;
41
+ ProcessId processId{};
29
42
 
30
43
  // The timestamp at which this Trace Recording started.
31
44
  HighResTimeStamp startTime;
@@ -31,6 +31,17 @@ struct TraceRecordingState {
31
31
  {
32
32
  }
33
33
 
34
+ // Explicitly move-only: RuntimeSamplingProfile is not copyable, so the
35
+ // implicit copy constructor is ill-formed the moment it is instantiated.
36
+ // Plain C++ never instantiates it, but Swift's C++ interop (ClangImporter)
37
+ // does when a consumer imports these headers as part of a module, turning
38
+ // it into a hard compile error (Xcode 26.3).
39
+ TraceRecordingState(const TraceRecordingState &) = delete;
40
+ TraceRecordingState &operator=(const TraceRecordingState &) = delete;
41
+ TraceRecordingState(TraceRecordingState &&) = default;
42
+ TraceRecordingState &operator=(TraceRecordingState &&) = default;
43
+ ~TraceRecordingState() = default;
44
+
34
45
  // The mode of this Trace Recording.
35
46
  tracing::Mode mode;
36
47
 
@@ -198,10 +198,6 @@ jsi::Value NativeDOM::getParentNode(
198
198
  }
199
199
 
200
200
  auto shadowNode = getShadowNode(rt, nativeNodeReference);
201
- if (isRootShadowNode(*shadowNode)) {
202
- // The parent of the root node is the document.
203
- return jsi::Value{shadowNode->getSurfaceId()};
204
- }
205
201
 
206
202
  auto currentRevision =
207
203
  getCurrentShadowTreeRevision(rt, shadowNode->getSurfaceId());
@@ -209,6 +205,16 @@ jsi::Value NativeDOM::getParentNode(
209
205
  return jsi::Value::undefined();
210
206
  }
211
207
 
208
+ // The parent of the surface's root node is the document. Only the actual
209
+ // root node qualifies: nested nodes that carry the `RootNodeKind` trait
210
+ // (e.g. <Modal>, portals/overlays) still have a real parent in the shadow
211
+ // tree and must report it. Otherwise capture/bubble event propagation is
212
+ // silently severed at that boundary (a listener on an ancestor rendered
213
+ // above the modal would never receive descendant focus/blur, etc.).
214
+ if (ShadowNode::sameFamily(*currentRevision, *shadowNode)) {
215
+ return jsi::Value{shadowNode->getSurfaceId()};
216
+ }
217
+
212
218
  auto parentShadowNode = dom::getParentNode(currentRevision, *shadowNode);
213
219
  if (parentShadowNode == nullptr) {
214
220
  return jsi::Value::undefined();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.87.0-rc.2",
3
+ "version": "0.87.0-rc.3",
4
4
  "description": "A framework for building native apps using React",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -148,12 +148,12 @@
148
148
  }
149
149
  },
150
150
  "dependencies": {
151
- "@react-native/asset-utils": "0.87.0-rc.2",
152
- "@react-native/codegen": "0.87.0-rc.2",
153
- "@react-native/community-cli-plugin": "0.87.0-rc.2",
154
- "@react-native/gradle-plugin": "0.87.0-rc.2",
155
- "@react-native/normalize-colors": "0.87.0-rc.2",
156
- "@react-native/virtualized-lists": "0.87.0-rc.2",
151
+ "@react-native/asset-utils": "0.87.0-rc.3",
152
+ "@react-native/codegen": "0.87.0-rc.3",
153
+ "@react-native/community-cli-plugin": "0.87.0-rc.3",
154
+ "@react-native/gradle-plugin": "0.87.0-rc.3",
155
+ "@react-native/normalize-colors": "0.87.0-rc.3",
156
+ "@react-native/virtualized-lists": "0.87.0-rc.3",
157
157
  "anser": "^1.4.9",
158
158
  "ansi-regex": "^5.0.0",
159
159
  "babel-plugin-syntax-hermes-parser": "0.36.1",
@@ -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<<85b7cfe8ea207e39bd6cb23287788913>>
7
+ * @generated SignedSource<<c9df6a2ec502499b961157efa0dd4654>>
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/ActionSheetIOS/ActionSheetIOS.js
@@ -16,14 +16,14 @@ export type ActionSheetIOSOptions = Readonly<{
16
16
  title?: string | undefined;
17
17
  message?: string | undefined;
18
18
  options: Array<string>;
19
- destructiveButtonIndex?: (number | undefined) | (Array<number> | undefined);
19
+ destructiveButtonIndex?: (number | undefined) | (Array<number> | undefined) | undefined;
20
20
  cancelButtonIndex?: number | undefined;
21
21
  anchor?: number | undefined;
22
- tintColor?: ColorValue | ProcessedColorValue;
23
- cancelButtonTintColor?: ColorValue | ProcessedColorValue;
24
- disabledButtonTintColor?: ColorValue | ProcessedColorValue;
25
- userInterfaceStyle?: string;
26
- disabledButtonIndices?: Array<number>;
22
+ tintColor?: ColorValue | ProcessedColorValue | undefined;
23
+ cancelButtonTintColor?: ColorValue | ProcessedColorValue | undefined;
24
+ disabledButtonTintColor?: ColorValue | ProcessedColorValue | undefined;
25
+ userInterfaceStyle?: string | undefined;
26
+ disabledButtonIndices?: Array<number> | undefined;
27
27
  }>;
28
28
  export type ShareActionSheetIOSOptions = Readonly<{
29
29
  message?: string | undefined;
@@ -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<<74606e61aaa0d9b687fd7ef5d69e0b73>>
7
+ * @generated SignedSource<<91c4fbdaf5ce348ce30173be24dc7367>>
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/Alert/Alert.js
@@ -19,16 +19,16 @@ export type AlertType = "default" | "plain-text" | "secure-text" | "login-passwo
19
19
  */
20
20
  export type AlertButtonStyle = "default" | "cancel" | "destructive";
21
21
  export type AlertButton = {
22
- text?: string;
23
- onPress?: (((value?: string) => any) | undefined) | (Function | undefined);
24
- isPreferred?: boolean;
25
- style?: AlertButtonStyle;
22
+ text?: string | undefined;
23
+ onPress?: (((value?: string) => any) | undefined) | (Function | undefined) | undefined;
24
+ isPreferred?: boolean | undefined;
25
+ style?: AlertButtonStyle | undefined;
26
26
  };
27
27
  export type AlertButtons = Array<AlertButton>;
28
28
  export type AlertOptions = {
29
29
  /** @platform android */
30
30
  cancelable?: boolean | undefined;
31
- userInterfaceStyle?: "unspecified" | "light" | "dark";
31
+ userInterfaceStyle?: "unspecified" | "light" | "dark" | undefined;
32
32
  /** @platform android */
33
33
  onDismiss?: (() => void) | undefined;
34
34
  };
@@ -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<<2cf0278a72a69b6234a64ab49fe55c97>>
7
+ * @generated SignedSource<<156c6b4bd89b4931acd61ed1d1291a7e>>
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/Animated/AnimatedEvent.js
@@ -20,7 +20,7 @@ export type Mapping = {
20
20
  export type EventConfig<T> = {
21
21
  listener?: (($$PARAM_0$$: NativeSyntheticEvent<T>) => unknown) | undefined;
22
22
  useNativeDriver: boolean;
23
- platformConfig?: PlatformConfig;
23
+ platformConfig?: PlatformConfig | undefined;
24
24
  };
25
25
  export declare function attachNativeEventImpl(viewRef: any, eventName: string, argMapping: ReadonlyArray<null | undefined | Mapping>, platformConfig: null | undefined | PlatformConfig): {
26
26
  detach: () => void;
@@ -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<<e3d018f015da82e8612fdefab2a9d37e>>
7
+ * @generated SignedSource<<6191fe499d9fba3ac96ba27e46a87695>>
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/Animated/AnimatedImplementation.js
@@ -65,14 +65,14 @@ declare const timingImpl: (value: AnimatedValue | AnimatedValueXY | AnimatedColo
65
65
  declare const decayImpl: (value: AnimatedValue | AnimatedValueXY | AnimatedColor, config: DecayAnimationConfig) => CompositeAnimation;
66
66
  declare const sequenceImpl: (animations: Array<CompositeAnimation>) => CompositeAnimation;
67
67
  type ParallelConfig = {
68
- stopTogether?: boolean;
68
+ stopTogether?: boolean | undefined;
69
69
  };
70
70
  declare const parallelImpl: (animations: Array<CompositeAnimation>, config?: null | undefined | ParallelConfig) => CompositeAnimation;
71
71
  declare const delayImpl: (time: number) => CompositeAnimation;
72
72
  declare const staggerImpl: (time: number, animations: Array<CompositeAnimation>) => CompositeAnimation;
73
73
  type LoopAnimationConfig = {
74
74
  iterations: number;
75
- resetBeforeIteration?: boolean;
75
+ resetBeforeIteration?: boolean | undefined;
76
76
  };
77
77
  declare const loopImpl: (animation: CompositeAnimation, $$PARAM_1$$?: LoopAnimationConfig) => CompositeAnimation;
78
78
  declare function forkEventImpl(event: (null | undefined | AnimatedEvent) | (null | undefined | Function), listener: Function): AnimatedEvent | Function;
@@ -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<<4fb9efab93fb4702e15de0553054091f>>
7
+ * @generated SignedSource<<75b3486fbb3158cfb8bcab03e5ad45f0>>
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/Animated/animations/Animation.js
@@ -14,17 +14,17 @@ import type { PlatformConfig } from "../AnimatedPlatformConfig";
14
14
  import type AnimatedValue from "../nodes/AnimatedValue";
15
15
  export type EndResult = {
16
16
  finished: boolean;
17
- value?: number;
18
- offset?: number;
17
+ value?: number | undefined;
18
+ offset?: number | undefined;
19
19
  };
20
20
  export type EndCallback = (result: EndResult) => void;
21
21
  export type AnimationConfig = Readonly<{
22
- isInteraction?: boolean;
22
+ isInteraction?: boolean | undefined;
23
23
  useNativeDriver: boolean;
24
- platformConfig?: PlatformConfig;
24
+ platformConfig?: PlatformConfig | undefined;
25
25
  onComplete?: EndCallback | undefined;
26
- iterations?: number;
27
- isLooping?: boolean;
26
+ iterations?: number | undefined;
27
+ isLooping?: boolean | undefined;
28
28
  debugID?: string | undefined;
29
29
  }>;
30
30
  declare class Animation {
@@ -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<<7385fd5e71640f4c18287ec1c64d91b7>>
7
+ * @generated SignedSource<<87d33b318553204c4cfbb4837dfeff3b>>
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/Animated/animations/DecayAnimation.js
@@ -18,20 +18,20 @@ export type DecayAnimationConfig = Readonly<Omit<AnimationConfig, keyof {
18
18
  x: number;
19
19
  y: number;
20
20
  }>;
21
- deceleration?: number;
21
+ deceleration?: number | undefined;
22
22
  }> & {
23
23
  velocity: number | Readonly<{
24
24
  x: number;
25
25
  y: number;
26
26
  }>;
27
- deceleration?: number;
27
+ deceleration?: number | undefined;
28
28
  }>;
29
29
  export type DecayAnimationConfigSingle = Readonly<Omit<AnimationConfig, keyof {
30
30
  velocity: number;
31
- deceleration?: number;
31
+ deceleration?: number | undefined;
32
32
  }> & {
33
33
  velocity: number;
34
- deceleration?: number;
34
+ deceleration?: number | undefined;
35
35
  }>;
36
36
  declare class DecayAnimation extends Animation {
37
37
  constructor(config: DecayAnimationConfigSingle);
@@ -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<<3dda2d155d27c59b481c3344b24c8c00>>
7
+ * @generated SignedSource<<8d1ddb1f144198187d21b409ceca53cd>>
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/Animated/animations/SpringAnimation.js
@@ -26,21 +26,21 @@ export type SpringAnimationConfig = Readonly<Omit<AnimationConfig, keyof {
26
26
  b: number;
27
27
  a: number;
28
28
  } | AnimatedColor | AnimatedInterpolation<number>;
29
- overshootClamping?: boolean;
30
- restDisplacementThreshold?: number;
31
- restSpeedThreshold?: number;
29
+ overshootClamping?: boolean | undefined;
30
+ restDisplacementThreshold?: number | undefined;
31
+ restSpeedThreshold?: number | undefined;
32
32
  velocity?: number | Readonly<{
33
33
  x: number;
34
34
  y: number;
35
- }>;
36
- bounciness?: number;
37
- speed?: number;
38
- tension?: number;
39
- friction?: number;
40
- stiffness?: number;
41
- damping?: number;
42
- mass?: number;
43
- delay?: number;
35
+ }> | undefined;
36
+ bounciness?: number | undefined;
37
+ speed?: number | undefined;
38
+ tension?: number | undefined;
39
+ friction?: number | undefined;
40
+ stiffness?: number | undefined;
41
+ damping?: number | undefined;
42
+ mass?: number | undefined;
43
+ delay?: number | undefined;
44
44
  }> & {
45
45
  toValue: number | AnimatedValue | {
46
46
  x: number;
@@ -51,50 +51,50 @@ export type SpringAnimationConfig = Readonly<Omit<AnimationConfig, keyof {
51
51
  b: number;
52
52
  a: number;
53
53
  } | AnimatedColor | AnimatedInterpolation<number>;
54
- overshootClamping?: boolean;
55
- restDisplacementThreshold?: number;
56
- restSpeedThreshold?: number;
54
+ overshootClamping?: boolean | undefined;
55
+ restDisplacementThreshold?: number | undefined;
56
+ restSpeedThreshold?: number | undefined;
57
57
  velocity?: number | Readonly<{
58
58
  x: number;
59
59
  y: number;
60
- }>;
61
- bounciness?: number;
62
- speed?: number;
63
- tension?: number;
64
- friction?: number;
65
- stiffness?: number;
66
- damping?: number;
67
- mass?: number;
68
- delay?: number;
60
+ }> | undefined;
61
+ bounciness?: number | undefined;
62
+ speed?: number | undefined;
63
+ tension?: number | undefined;
64
+ friction?: number | undefined;
65
+ stiffness?: number | undefined;
66
+ damping?: number | undefined;
67
+ mass?: number | undefined;
68
+ delay?: number | undefined;
69
69
  }>;
70
70
  export type SpringAnimationConfigSingle = Readonly<Omit<AnimationConfig, keyof {
71
71
  toValue: number;
72
- overshootClamping?: boolean;
73
- restDisplacementThreshold?: number;
74
- restSpeedThreshold?: number;
75
- velocity?: number;
76
- bounciness?: number;
77
- speed?: number;
78
- tension?: number;
79
- friction?: number;
80
- stiffness?: number;
81
- damping?: number;
82
- mass?: number;
83
- delay?: number;
72
+ overshootClamping?: boolean | undefined;
73
+ restDisplacementThreshold?: number | undefined;
74
+ restSpeedThreshold?: number | undefined;
75
+ velocity?: number | undefined;
76
+ bounciness?: number | undefined;
77
+ speed?: number | undefined;
78
+ tension?: number | undefined;
79
+ friction?: number | undefined;
80
+ stiffness?: number | undefined;
81
+ damping?: number | undefined;
82
+ mass?: number | undefined;
83
+ delay?: number | undefined;
84
84
  }> & {
85
85
  toValue: number;
86
- overshootClamping?: boolean;
87
- restDisplacementThreshold?: number;
88
- restSpeedThreshold?: number;
89
- velocity?: number;
90
- bounciness?: number;
91
- speed?: number;
92
- tension?: number;
93
- friction?: number;
94
- stiffness?: number;
95
- damping?: number;
96
- mass?: number;
97
- delay?: number;
86
+ overshootClamping?: boolean | undefined;
87
+ restDisplacementThreshold?: number | undefined;
88
+ restSpeedThreshold?: number | undefined;
89
+ velocity?: number | undefined;
90
+ bounciness?: number | undefined;
91
+ speed?: number | undefined;
92
+ tension?: number | undefined;
93
+ friction?: number | undefined;
94
+ stiffness?: number | undefined;
95
+ damping?: number | undefined;
96
+ mass?: number | undefined;
97
+ delay?: number | undefined;
98
98
  }>;
99
99
  declare type SpringAnimationInternalState = symbol & {
100
100
  __SpringAnimationInternalState__: string;
@@ -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<<39dac0e67f437705c8562476e4ff745a>>
7
+ * @generated SignedSource<<38370d2065d999c7ba0074e6b74c9f8f>>
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/Animated/animations/TimingAnimation.js
@@ -22,28 +22,28 @@ export type TimingAnimationConfig = Readonly<Omit<AnimationConfig, keyof {
22
22
  x: number;
23
23
  y: number;
24
24
  }> | AnimatedValueXY | RgbaValue | AnimatedColor | AnimatedInterpolation<number>;
25
- easing?: (value: number) => number;
26
- duration?: number;
27
- delay?: number;
25
+ easing?: ((value: number) => number) | undefined;
26
+ duration?: number | undefined;
27
+ delay?: number | undefined;
28
28
  }> & {
29
29
  toValue: number | AnimatedValue | Readonly<{
30
30
  x: number;
31
31
  y: number;
32
32
  }> | AnimatedValueXY | RgbaValue | AnimatedColor | AnimatedInterpolation<number>;
33
- easing?: (value: number) => number;
34
- duration?: number;
35
- delay?: number;
33
+ easing?: ((value: number) => number) | undefined;
34
+ duration?: number | undefined;
35
+ delay?: number | undefined;
36
36
  }>;
37
37
  export type TimingAnimationConfigSingle = Readonly<Omit<AnimationConfig, keyof {
38
38
  toValue: number;
39
- easing?: (value: number) => number;
40
- duration?: number;
41
- delay?: number;
39
+ easing?: ((value: number) => number) | undefined;
40
+ duration?: number | undefined;
41
+ delay?: number | undefined;
42
42
  }> & {
43
43
  toValue: number;
44
- easing?: (value: number) => number;
45
- duration?: number;
46
- delay?: number;
44
+ easing?: ((value: number) => number) | undefined;
45
+ duration?: number | undefined;
46
+ delay?: number | undefined;
47
47
  }>;
48
48
  declare class TimingAnimation extends Animation {
49
49
  constructor(config: TimingAnimationConfigSingle);
@@ -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<<8c632390670213fd78073b0243c08f19>>
7
+ * @generated SignedSource<<b991f718f6691ce93e9df150a6ace36c>>
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/Animated/components/AnimatedFlatList.js
@@ -14,9 +14,9 @@ import type { AnimatedProps } from "../createAnimatedComponent";
14
14
  import FlatList, { type FlatListProps } from "../../Lists/FlatList";
15
15
  import * as React from "react";
16
16
  declare const $$AnimatedFlatList: <ItemT = any>(props: Omit<AnimatedProps<FlatListProps<ItemT>>, keyof {
17
- ref?: React.Ref<FlatList<ItemT>>;
17
+ ref?: React.Ref<FlatList<ItemT>> | undefined;
18
18
  }> & {
19
- ref?: React.Ref<FlatList<ItemT>>;
19
+ ref?: React.Ref<FlatList<ItemT>> | undefined;
20
20
  }) => React.ReactNode;
21
21
  declare type $$AnimatedFlatList = typeof $$AnimatedFlatList;
22
22
  export default $$AnimatedFlatList;
@@ -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<<a9fe4d54975316cfdb1f3e9503be8088>>
7
+ * @generated SignedSource<<7c6df5569674a95c777c4e8c2d778827>>
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/Animated/components/AnimatedSectionList.js
@@ -14,9 +14,9 @@ import type { AnimatedProps } from "../createAnimatedComponent";
14
14
  import SectionList, { type SectionListProps } from "../../Lists/SectionList";
15
15
  import * as React from "react";
16
16
  declare const $$AnimatedSectionList: <ItemT = any, SectionT = any>(props: Omit<AnimatedProps<SectionListProps<ItemT, SectionT>>, keyof {
17
- ref?: React.Ref<SectionList<ItemT, SectionT>>;
17
+ ref?: React.Ref<SectionList<ItemT, SectionT>> | undefined;
18
18
  }> & {
19
- ref?: React.Ref<SectionList<ItemT, SectionT>>;
19
+ ref?: React.Ref<SectionList<ItemT, SectionT>> | undefined;
20
20
  }) => React.ReactNode;
21
21
  declare type $$AnimatedSectionList = typeof $$AnimatedSectionList;
22
22
  export default $$AnimatedSectionList;
@@ -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<<e8e5c16b1838a7cb9e45118d291d537a>>
7
+ * @generated SignedSource<<a597b1043a858c8c1524cbc4e181a58e>>
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/Animated/createAnimatedComponent.js
@@ -29,15 +29,15 @@ type Builtin = (...$$REST$$: ReadonlyArray<never>) => unknown | Date | Error | R
29
29
  export type WithAnimatedValue<T> = T extends Builtin | Nullable ? T : T extends Primitive ? T | AnimatedNode | AnimatedAddition | AnimatedSubtraction | AnimatedDivision | AnimatedMultiplication | AnimatedModulo | AnimatedDiffClamp | AnimatedValue | AnimatedInterpolation<number | string> | AnimatedInterpolation<number> | AnimatedInterpolation<string> | AnimatedInterpolation<NativeColorValue> : T extends ReadonlyArray<infer P> ? ReadonlyArray<WithAnimatedValue<P>> : T extends {} ? { readonly [K in keyof T]: WithAnimatedValue<T[K]> } : T;
30
30
  type NonAnimatedProps = "ref" | "innerViewRef" | "scrollViewRef" | "testID" | "disabled" | "accessibilityLabel";
31
31
  type PassThroughProps = Readonly<{
32
- passthroughAnimatedPropExplicitValues?: ViewProps | null;
32
+ passthroughAnimatedPropExplicitValues?: ViewProps | null | undefined;
33
33
  }>;
34
34
  type LooseOmit<O extends {}, K extends keyof any> = Pick<O, Exclude<keyof O, K>>;
35
35
  export type AnimatedProps<Props extends {}> = LooseOmit<{ [K in keyof Props]: K extends NonAnimatedProps ? Props[K] : WithAnimatedValue<Props[K]> }, "ref"> & PassThroughProps;
36
36
  export type AnimatedBaseProps<Props extends {}> = LooseOmit<{ [K in keyof Props]: K extends NonAnimatedProps ? Props[K] : WithAnimatedValue<Props[K]> }, "ref">;
37
37
  export type AnimatedComponentType<Props extends {}, Instance = unknown> = (props: Omit<AnimatedProps<Props>, keyof {
38
- ref?: React.Ref<Instance>;
38
+ ref?: React.Ref<Instance> | undefined;
39
39
  }> & {
40
- ref?: React.Ref<Instance>;
40
+ ref?: React.Ref<Instance> | undefined;
41
41
  }) => React.ReactNode;
42
42
  declare function createAnimatedComponent<TInstance extends React.ComponentType<any>>(Component: TInstance): AnimatedComponentType<Readonly<React.JSX.LibraryManagedAttributes<TInstance, React.ComponentProps<TInstance>>>, React.ComponentRef<TInstance>>;
43
43
  export default createAnimatedComponent;
@@ -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<<7be00e4ef13ea56e94b4510b9b9d8426>>
7
+ * @generated SignedSource<<56270fc68e01189b82c657099fc13998>>
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/Animated/nodes/AnimatedColor.js
@@ -36,7 +36,7 @@ type RgbaAnimatedValue = {
36
36
  export type InputValue = null | undefined | (RgbaValue | RgbaAnimatedValue | ColorValue);
37
37
  export declare function getRgbaValueAndNativeColor(value: RgbaValue | ColorValue): Readonly<{
38
38
  rgbaValue: RgbaValue;
39
- nativeColor?: NativeColorValue;
39
+ nativeColor?: NativeColorValue | undefined;
40
40
  }>;
41
41
  declare class AnimatedColor extends AnimatedWithChildren {
42
42
  r: AnimatedValue;