UNPKG

react-native-a11y

Version:

Improvements of a11y for ReactNative, this library improve work with reader and keyboard focus and reader in general.

24 lines (23 loc) 1.04 kB
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ import React from "react"; import { GestureResponderEvent, View } from "react-native"; import { OnKeyPressFn } from "../KeyboardFocusView"; export declare const Pressable: React.ForwardRefExoticComponent<import("react-native").ViewProps & { onFocusChange?: import("../KeyboardFocusView").OnFocusChangeFn | undefined; onKeyUpPress: OnKeyPressFn; onKeyDownPress: OnKeyPressFn; canBeFocused?: boolean | undefined; } & { focusStyle?: import("../KeyboardFocusView").FocusStyle; onPress?: ((e: import("../KeyboardFocusView/RCA11yFocusWrapper").OnKeyPress | GestureResponderEvent) => void) | undefined; onLongPress?: ((e: import("../KeyboardFocusView/RCA11yFocusWrapper").OnKeyPress | GestureResponderEvent) => void) | undefined; withView?: boolean | undefined; } & React.RefAttributes<View>>;