import type { HostComponent, ViewProps } from 'react-native'; import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; import { DirectEventHandler, Double, } from 'react-native/Libraries/Types/CodegenTypes'; import type { UnsafeMixed } from './codegenUtils'; type OnMapboxVectorSourcePressEventType = { type: string; payload: string }; export interface NativeProps extends ViewProps { id: UnsafeMixed; existing: UnsafeMixed; url: UnsafeMixed; tileUrlTemplates: UnsafeMixed>; attribution: UnsafeMixed; maxZoomLevel: UnsafeMixed; minZoomLevel: UnsafeMixed; tms: UnsafeMixed; hasPressListener: UnsafeMixed; hitbox: UnsafeMixed; onMapboxVectorSourcePress: DirectEventHandler; } export default codegenNativeComponent( 'RNMBXVectorSource', ) as HostComponent;