mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Replace React.AbstractComponent with component type in VScrollViewNativeComponent (#46917)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46917 Prepare for the ref-as-prop typing change in flow. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D64108764 fbshipit-source-id: 44cf9316a03bb18b658aeb45b7d951ad346ae3f0
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f86a14e4ad
commit
6e2b9daf7d
+4
-5
@@ -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>,
|
||||
...props: ScrollViewNativeProps
|
||||
) = forwardRef(function VScrollViewNativeComponent(
|
||||
props: ScrollViewNativeProps,
|
||||
ref: ?React.RefSetter<TScrollViewNativeImperativeHandle | null>,
|
||||
): React.Node {
|
||||
|
||||
Reference in New Issue
Block a user