Replace React.AbstractComponent with component type in ScrollViewStickyHeader (#46926)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/46926

Prepare for the ref-as-prop typing change in flow.

Changelog: [Internal]

Reviewed By: SamChou19815

Differential Revision: D64111478

fbshipit-source-id: 674316b9545dd12420e50f77cff6ac1c94783d4e
This commit is contained in:
Fabrizio Cucci
2024-10-10 10:59:58 -07:00
committed by Facebook GitHub Bot
parent 5d07c7232c
commit c8fd793cff
2 changed files with 8 additions and 8 deletions
@@ -38,10 +38,10 @@ type Instance = {
...
};
const ScrollViewStickyHeaderWithForwardedRef: React.AbstractComponent<
Props,
Instance,
> = React.forwardRef(function ScrollViewStickyHeader(props, forwardedRef) {
const ScrollViewStickyHeaderWithForwardedRef: component(
ref: React.RefSetter<Instance>,
...props: Props
) = React.forwardRef(function ScrollViewStickyHeader(props, forwardedRef) {
const {
inverted,
scrollViewHeight,
@@ -2396,10 +2396,10 @@ type Instance = {
setNextHeaderY: (number) => void,
...
};
declare const ScrollViewStickyHeaderWithForwardedRef: React.AbstractComponent<
Props,
Instance,
>;
declare const ScrollViewStickyHeaderWithForwardedRef: component(
ref: React.RefSetter<Instance>,
...props: Props
);
declare export default typeof ScrollViewStickyHeaderWithForwardedRef;
"
`;