import { codegenNativeComponent, type CodegenTypes, type HostComponent, type ViewProps, } from "react-native"; import type { UnsafeMixed } from "../../../types/codegen/UnsafeMixed"; type NativeScheme = "xyz" | "tms"; type NativeHitbox = { top?: CodegenTypes.WithDefault; right?: CodegenTypes.WithDefault; bottom?: CodegenTypes.WithDefault; left?: CodegenTypes.WithDefault; }; type NativePressEvent = { lngLat: UnsafeMixed< [longitude: CodegenTypes.Double, latitude: CodegenTypes.Double] >; point: UnsafeMixed<[x: CodegenTypes.Double, y: CodegenTypes.Double]>; features: UnsafeMixed; }; export interface NativeProps extends ViewProps { id: string; url?: string; tiles?: string[]; minzoom?: CodegenTypes.WithDefault; maxzoom?: CodegenTypes.WithDefault; scheme?: CodegenTypes.WithDefault; attribution?: string; hitbox?: NativeHitbox; hasOnPress: boolean; onPress?: CodegenTypes.BubblingEventHandler; } export default codegenNativeComponent( "MLRNVectorSource", ) as HostComponent;