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 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:
committed by
Facebook GitHub Bot
parent
5d07c7232c
commit
c8fd793cff
+4
-4
@@ -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;
|
||||
"
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user