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 { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes'; import type { UnsafeMixed } from './codegenUtils'; type OnMapboxPointAnnotationDeselectedEventType = { type: string; payload: string; }; type OnMapboxPointAnnotationDragEventType = { type: string; payload: string }; type OnMapboxPointAnnotationDragEndEventType = { type: string; payload: string; }; type OnMapboxPointAnnotationDragStartEventType = { type: string; payload: string; }; type OnMapboxPointAnnotationSelectedEventType = { type: string; payload: string; }; export interface NativeProps extends ViewProps { coordinate: UnsafeMixed; draggable: UnsafeMixed; id: UnsafeMixed; anchor: UnsafeMixed; selected: UnsafeMixed; onMapboxPointAnnotationDeselected: DirectEventHandler; onMapboxPointAnnotationDrag: DirectEventHandler; onMapboxPointAnnotationDragEnd: DirectEventHandler; onMapboxPointAnnotationDragStart: DirectEventHandler; onMapboxPointAnnotationSelected: DirectEventHandler; } // @ts-ignore-error - Codegen requires single cast but TypeScript prefers double cast export default codegenNativeComponent( 'RNMBXPointAnnotation', ) as HostComponent;