From 8b5e2ea68387288c76e556428465d1965f0fcc05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Ma=C5=82ecki?= Date: Tue, 14 Jan 2025 07:16:41 -0800 Subject: [PATCH] Replace ExactReactElement_DEPRECATED in ScrollViewStickyHeader (#48659) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48659 Changelog: [Internal] - Replaced ExactReactElement_DEPRECATED with React.Node as a children type in ScrollViewStickyHeader Reviewed By: fabriziocucci Differential Revision: D68151420 fbshipit-source-id: d4406de67176ae1fea95b8b2ea85f41dc7f5045e --- .../Libraries/Components/ScrollView/ScrollViewStickyHeader.js | 2 +- .../Libraries/__tests__/__snapshots__/public-api-test.js.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js b/packages/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js index 1615f3fe0b9..2c11d50c849 100644 --- a/packages/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +++ b/packages/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js @@ -19,7 +19,7 @@ import * as React from 'react'; import {useCallback, useEffect, useMemo, useRef, useState} from 'react'; export type Props = $ReadOnly<{ - children?: ExactReactElement_DEPRECATED<$FlowFixMe>, + children?: React.Node, nextHeaderLayoutY: ?number, onLayout: (event: LayoutEvent) => void, scrollAnimatedValue: Animated.Value, diff --git a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap index 18454723d2e..1123b59a8be 100644 --- a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap +++ b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap @@ -2449,7 +2449,7 @@ exports[`public API should not change unintentionally Libraries/Components/Scrol exports[`public API should not change unintentionally Libraries/Components/ScrollView/ScrollViewStickyHeader.js 1`] = ` "export type Props = $ReadOnly<{ - children?: ExactReactElement_DEPRECATED<$FlowFixMe>, + children?: React.Node, nextHeaderLayoutY: ?number, onLayout: (event: LayoutEvent) => void, scrollAnimatedValue: Animated.Value,