import type { HostComponent, ViewProps } from 'react-native'; import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; // @ts-ignore - CI environment type resolution issue for CodegenTypes import type { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes'; import type { UnsafeMixed } from './codegenUtils'; type OnImageMissingEventType = { type: string; payloadRenamed: { imageKey: string }; }; export interface NativeProps extends ViewProps { images: UnsafeMixed; nativeImages: UnsafeMixed>; hasOnImageMissing: UnsafeMixed; onImageMissing: DirectEventHandler; } // @ts-ignore-error - Codegen requires single cast but TypeScript prefers double cast export default codegenNativeComponent( 'RNMBXImages', ) as HostComponent;