import { codegenNativeComponent, type CodegenTypes, type HostComponent, type ViewProps, } from "react-native"; import type { UnsafeMixed } from "../../../types/codegen/UnsafeMixed"; 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; data: string; maxzoom?: CodegenTypes.WithDefault; buffer?: CodegenTypes.WithDefault; tolerance?: CodegenTypes.WithDefault; lineMetrics?: CodegenTypes.WithDefault; cluster?: CodegenTypes.WithDefault; clusterRadius?: CodegenTypes.WithDefault; clusterMaxZoom?: CodegenTypes.WithDefault; clusterMinPoints?: CodegenTypes.WithDefault; clusterProperties?: UnsafeMixed; hitbox?: NativeHitbox; hasOnPress: boolean; onPress?: CodegenTypes.BubblingEventHandler; } export default codegenNativeComponent( "MLRNGeoJSONSource", ) as HostComponent;