@ua/react-native-airship
Version:
Airship plugin for React Native apps.
26 lines • 987 B
TypeScript
import type { HostComponent, ViewProps } from 'react-native';
import type { BubblingEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
type MessageLoadStartedEvent = Readonly<{
messageId: string;
}>;
type MessageLoadFinishedEvent = Readonly<{
messageId: string;
}>;
type MessageLoadErrorEvent = Readonly<{
messageId: string;
retryable: boolean;
error: string;
}>;
type MessageClosedEvent = Readonly<{
messageId: string;
}>;
interface NativeProps extends ViewProps {
messageId: string;
onLoadStarted: BubblingEventHandler<MessageLoadStartedEvent, 'topLoadStarted'>;
onLoadFinished: BubblingEventHandler<MessageLoadFinishedEvent, 'topLoadFinished'>;
onLoadError: BubblingEventHandler<MessageLoadErrorEvent, 'topLoadError'>;
onClose: BubblingEventHandler<MessageClosedEvent, 'topClose'>;
}
declare const _default: HostComponent<NativeProps>;
export default _default;
//# sourceMappingURL=RNAirshipMessageViewNativeComponent.d.ts.map