Skip to content

Commit

Permalink
Replace React.AbstractComponent with component type in VScrollViewN…
Browse files Browse the repository at this point in the history
…ativeComponent (facebook#46917)

Summary:

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

Changelog: [Internal]

Differential Revision: D64108764
  • Loading branch information
fabriziocucci authored and facebook-github-bot committed Oct 9, 2024
1 parent f5e9111 commit 213597d
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ import * as React from 'react';
import {forwardRef} from 'react';

// TODO: After upgrading to React 19, remove `forwardRef` from this component.
export const VScrollViewNativeComponent: React.AbstractComponent<
ScrollViewNativeProps,
TScrollViewNativeImperativeHandle,
// $FlowExpectedError[incompatible-type] - Flow cannot model imperative handles, yet.
> = forwardRef(function VScrollViewNativeComponent(
export const VScrollViewNativeComponent: component(
ref: React.RefSetter<TScrollViewNativeImperativeHandle>,
...ScrollViewNativeProps
) = forwardRef(function VScrollViewNativeComponent(
props: ScrollViewNativeProps,
ref: ?React.RefSetter<TScrollViewNativeImperativeHandle | null>,
): React.Node {
Expand Down

0 comments on commit 213597d

Please sign in to comment.