/** * 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<> * * This file was translated from Flow by scripts/js-api/build-types/index.js. * Original file: packages/react-native/Libraries/Components/TV/TVFocusGuideView.js */ import type { BlurEvent, FocusEvent } from "../../Types/CoreEventTypes"; import type { ViewProps } from "../View/ViewPropTypes"; import type { ComponentOrHandleType } from "./tagForComponentOrHandle"; import * as React from "react"; type TVFocusGuideViewProps = Readonly & { /** * If the view should be "visible". display "flex" if visible, otherwise "none". * Useful for absolute focus guides without children * Defaults to true */ enabled?: boolean | undefined; /** * The views the focus should go to */ destinations?: ComponentOrHandleType[] | undefined; /** * @deprecated Don't use it, no longer necessary. */ safePadding?: "vertical" | "horizontal" | "both" | null | undefined; autoFocus?: boolean | undefined; trapFocusUp?: boolean | undefined; trapFocusDown?: boolean | undefined; trapFocusLeft?: boolean | undefined; trapFocusRight?: boolean | undefined; /** * When set to false, this view and all its subviews will be NOT focusable. */ focusable?: boolean | void | undefined; /** * Fires once when focus enters this focus guide's subtree from outside. * Unlike `onFocus`, which bubbles and fires for every descendant, this does * not fire again when focus moves between descendants. Boundary-crossing * only, same idea as `onMouseEnter` vs `onMouseOver`. */ onFocusEnter?: ((event: FocusEvent) => void) | undefined; /** * Fires once when focus leaves this focus guide's subtree entirely. Does * not fire when focus moves between descendants. Pairs with `onFocusEnter`. */ onFocusLeave?: ((event: BlurEvent) => void) | undefined; }>; export type TVFocusGuideViewImperativeMethods = Readonly<{ setDestinations: (destinations: (ComponentOrHandleType | number)[]) => void; }>; declare function TVFocusGuideView($$PARAM_0$$: TVFocusGuideViewProps): React.ReactNode; declare const $$TVFocusGuideView: typeof TVFocusGuideView; declare type $$TVFocusGuideView = typeof $$TVFocusGuideView; export default $$TVFocusGuideView;