import type { HostComponent, ViewProps } from 'react-native'; import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; import { DirectEventHandler, Double, Int32, // @ts-ignore - CI environment type resolution issue for CodegenTypes } from 'react-native/Libraries/Types/CodegenTypes'; import type { UnsafeMixed } from './codegenUtils'; type OnMapboxShapeSourcePressEventType = { type: string; payload: string }; export interface NativeProps extends ViewProps { id: UnsafeMixed; existing: UnsafeMixed; url: UnsafeMixed; shape: UnsafeMixed; cluster: UnsafeMixed; clusterRadius: UnsafeMixed; clusterMaxZoomLevel: UnsafeMixed; clusterProperties: UnsafeMixed; maxZoomLevel: UnsafeMixed; buffer: UnsafeMixed; tolerance: UnsafeMixed; lineMetrics: UnsafeMixed; hasPressListener: UnsafeMixed; hitbox: UnsafeMixed; onMapboxShapeSourcePress: DirectEventHandler; } // @ts-ignore-error - Codegen requires single cast but TypeScript prefers double cast export default codegenNativeComponent( 'RNMBXShapeSource', ) as HostComponent;