import type {HostComponent, ViewProps} from 'react-native'; import type { DirectEventHandler, Double, Int32, } from 'react-native/Libraries/Types/CodegenTypes'; import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; export type InsiderAppFrameDismissEvent = Readonly<{ placementId: string; }>; export type InsiderAppFrameStatusEvent = Readonly<{ placementId: string; status: string; previousStatus: string; }>; export type InsiderAppFrameErrorEvent = Readonly<{ placementId: string; code: string; /** Always the canonical text for `code`; the originating error travels in `cause`. */ message: string; /** * The originating platform error's message, or an empty string — codegen event payloads * are non-nullable. */ cause: string; dismissCode: Int32; }>; export type InsiderAppFrameHeightEvent = Readonly<{ placementId: string; height: Double; }>; export type InsiderAppFrameActionEvent = Readonly<{ placementId: string; data: string; }>; export interface NativeProps extends ViewProps { placementId?: string; onStatusChange?: DirectEventHandler; onLoadError?: DirectEventHandler; onHeightChange?: DirectEventHandler; onDismissRequest?: DirectEventHandler; onAction?: DirectEventHandler; } export default codegenNativeComponent( 'InsiderAppFrameView', ) as HostComponent;