import type { HostComponent, ViewProps } from 'react-native'; import type { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes'; import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; import { PaymentMethodMessagingElementAppearance, PaymentMethodMessagingElementConfiguration, PaymentMethodMessagingElementState, } from '../types/components/PaymentMethodMessagingElementComponent'; import { UnsafeMixed } from './utils'; interface StateChangeEvent { result: UnsafeMixed; } export interface NativeProps extends ViewProps { appearance?: UnsafeMixed; configuration: UnsafeMixed; onStateChange: DirectEventHandler; } type ComponentType = HostComponent; export default codegenNativeComponent( 'PaymentMethodMessagingElementView' ) as ComponentType;