UNPKG

react-native

Version:

A framework for building native apps using React

37 lines (35 loc) 1.46 kB
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated SignedSource<<06d8e02ea5f304ae98f2e1fd25be4b7b>> * * This file was translated from Flow by scripts/build-types/index.js. * Original file: packages/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js */ import type { LayoutChangeEvent } from "../../Types/CoreEventTypes"; import Animated from "../../Animated/Animated"; import * as React from "react"; export type ScrollViewStickyHeaderProps = Readonly<{ children?: React.ReactNode; nextHeaderLayoutY: number | undefined; onLayout: (event: LayoutChangeEvent) => void; scrollAnimatedValue: Animated.Value; inverted: boolean | undefined; scrollViewHeight: number | undefined; nativeID?: string | undefined; hiddenOnScroll?: boolean | undefined; }>; interface Instance extends React.ElementRef<typeof Animated.View> { readonly setNextHeaderY: ($$PARAM_0$$: number) => void; } declare const ScrollViewStickyHeaderWithForwardedRef: (props: Omit<ScrollViewStickyHeaderProps, keyof { ref: React.Ref<Instance>; }> & { ref: React.Ref<Instance>; }) => React.ReactNode; declare const $$ScrollViewStickyHeader: typeof ScrollViewStickyHeaderWithForwardedRef; declare type $$ScrollViewStickyHeader = typeof $$ScrollViewStickyHeader; export default $$ScrollViewStickyHeader;