import type { ViewProps } from 'react-native'; import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; // @ts-ignore - CI environment type resolution issue for CodegenTypes import { DirectEventHandler, Double, } from 'react-native/Libraries/Types/CodegenTypes'; import type { UnsafeMixed } from './codegenUtils'; export type OnMapSteadyEvent = { reason: 'steady' | 'timeout'; // ms since last camera change when reason === 'steady' idleDurationMs?: Double; // e.g., 'pan' | 'pinch' | 'rotate' | 'pitch' lastGestureType?: string | null | undefined; // Unix epoch in milliseconds timestamp: Double; }; export interface NativeProps extends ViewProps { quietPeriodMs?: UnsafeMixed; maxIntervalMs?: UnsafeMixed; hasOnMapSteady: UnsafeMixed; onMapSteady?: DirectEventHandler; } export default codegenNativeComponent( 'RNMBXCameraGestureObserver', );