/** * 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<<46be5941a35ac0e122bab16b9d5b2c76>> * * This file was translated from Flow by scripts/js-api/build-types/index.js. * Original file: packages/react-native/Libraries/Components/TV/TVTextScrollView.js */ import type $$IMPORT_TYPEOF_1$$ from "../ScrollView/ScrollView"; type Props = typeof $$IMPORT_TYPEOF_1$$; import * as React from "react"; /** * Convenience wrapper to create a scroll view that will scroll correctly * using swipe gestures on tvOS, even if the scroll view has no focusable * subviews. * * The main use case would be when a large scrolling block of text needs * to be presented to the user. * * Props: * */ declare class TVTextScrollView extends React.Component & { /** * The duration of the scroll animation when a swipe is detected. * Default value is 0.3 s */ scrollDuration?: number | undefined; /** * Scrolling distance when a swipe is detected * Default value is half the visible height (vertical scroller) * or width (horizontal scroller) */ pageSize?: number | undefined; /** * If true, will scroll to start when focus moves out past the beginning * of the scroller * Defaults to true */ snapToStart?: boolean | undefined; /** * If true, will scroll to end when focus moves out past the end of the * scroller * Defaults to true */ snapToEnd?: boolean | undefined; /** * Called when the scroller comes into focus (e.g. for highlighting) */ onFocus?: ((evt: Event) => void) | undefined; /** * Called when the scroller goes out of focus */ onBlur?: ((evt: Event) => void) | undefined; }> { componentDidMount(): void; componentWillUnmount(): void; render(): any; } export default TVTextScrollView;