Skip to content

Commit

Permalink
Replace React.AbstractComponent with component type in ScrollViewSt…
Browse files Browse the repository at this point in the history
…ickyHeader (facebook#46926)

Summary:

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

Changelog: [Internal]

Differential Revision: D64111478
  • Loading branch information
fabriziocucci authored and facebook-github-bot committed Oct 9, 2024
1 parent 565f988 commit b1a0f54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
"
`;
Expand Down

0 comments on commit b1a0f54

Please sign in to comment.