@react-native-ohos/sample-package
Version:
react native harmony sample package
17 lines • 850 B
TypeScript
import React from 'react';
import { OutgoingData, IncomingDataCAPI, ArgsOfEmitCommandArgs, SupportedCommandArgs } from './specs/CAPINativeComponent';
export declare type GeneratedSampleComponentCAPIRef = {
emitNativeEvent: (eventType: 'directEvent' | 'bubblingEvent') => void;
emitCommandArgs: (...args: ArgsOfEmitCommandArgs) => void;
};
export declare const GeneratedSampleComponentCAPI: React.ForwardRefExoticComponent<{
hidden?: boolean;
children?: any;
testProps: Omit<OutgoingData, 'colorTest'> & {
colorTest: string;
};
onDirectEvent?: (args: IncomingDataCAPI) => void;
onBubblingEvent?: (args: IncomingDataCAPI) => void;
onReceivedCommandArgs?: (args: SupportedCommandArgs) => void;
} & React.RefAttributes<GeneratedSampleComponentCAPIRef>>;
//# sourceMappingURL=CAPIFabric.d.ts.map