import type { HostComponent, ViewProps } from 'react-native'; import type { DirectEventHandler, Double, } from 'react-native/Libraries/Types/CodegenTypes'; import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; // biome-ignore lint/complexity/noBannedTypes: RN codegen only accepts a plain object type here, not Record<…> export type InternalApplePayConfig = {}; interface NativeComponentDimensions { width: Double; height: Double; } interface NativeProps extends ViewProps { config: InternalApplePayConfig; onDimensionsChanged: DirectEventHandler | null; } export default codegenNativeComponent( 'ApplePay' ) as HostComponent;