react-native-a11y-order
Version:
ReactNative library for managing screen reader focus ordering
24 lines (19 loc) • 782 B
text/typescript
import { ComponentType } from 'react';
import type { ViewProps } from 'react-native';
import { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
export interface A11yIndexNativeComponentProps extends ViewProps {
orderIndex: Int32;
orderKey: string;
orderFocusType: Int32;
}
export interface NativeCommands {
focus: (viewRef: React.ElementRef<ComponentType>) => void;
}
export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
supportedCommands: ['focus'],
});
export default codegenNativeComponent<A11yIndexNativeComponentProps>(
'A11yIndexView'
);