import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; import type { ViewProps } from 'react-native'; import type { ComponentType } from 'react'; import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands'; export interface NativeProps extends ViewProps { accessible: boolean; } export interface NativeCommands { focus: (viewRef: React.ElementRef) => void; } export const Commands: NativeCommands = codegenNativeCommands({ supportedCommands: ['focus'], }); export default codegenNativeComponent('A11yFocusView');