react-native-a11y
Version:
Improvements of a11y for ReactNative, this library improve work with reader and keyboard focus and reader in general.
27 lines (26 loc) • 926 B
TypeScript
import React from "react";
import { TextInput, TextInputProps, StyleProp, ViewStyle } from "react-native";
import type { OnFocusChangeFn } from "./KeyboardFocusTextInput.types";
declare const focusMap: {
default: number;
press: number;
auto: number;
};
declare const blurMap: {
default: number;
disable: number;
auto: number;
};
export type KeyboardFocusTextInputProps = TextInputProps & {
focusType?: keyof typeof focusMap;
blurType?: keyof typeof blurMap;
containerStyle?: StyleProp<ViewStyle>;
onFocusChange?: OnFocusChangeFn;
};
export declare const KeyboardFocusTextInput: React.ForwardRefExoticComponent<TextInputProps & {
focusType?: "auto" | "default" | "press" | undefined;
blurType?: "auto" | "default" | "disable" | undefined;
containerStyle?: StyleProp<ViewStyle>;
onFocusChange?: OnFocusChangeFn | undefined;
} & React.RefAttributes<TextInput>>;
export {};