nitro-codegen
Version:
The code-generator for react-native-nitro-modules.
20 lines (19 loc) • 695 B
TypeScript
import type { SourceImport } from '../SourceFile.js';
interface Props {
/**
* The name of the Hybrid Object under which it should be registered and exposed to JS to.
*/
hybridObjectName: string;
/**
* The name of the Swift class that will be default-constructed
*/
swiftClassName: string;
}
interface SwiftHybridObjectRegistration {
cppCode: string;
swiftFunction: string;
requiredImports: SourceImport[];
}
export declare function getHybridObjectConstructorCall(hybridObjectName: string): string;
export declare function createSwiftHybridObjectRegistration({ hybridObjectName, swiftClassName, }: Props): SwiftHybridObjectRegistration;
export {};