Skip to content

Commit

Permalink
Add spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
callaars committed Oct 25, 2024
1 parent 1cc3efd commit 9ad4585
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/NativeEmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import { TurboModuleRegistry } from "react-native";
export interface Spec extends TurboModule {
open: (title: string, newTask: boolean) => Promise<boolean>;
compose: (title: string, to: string, subject: string, body: string, cc: string, bcc: string) => void;
getEmailClients: () => Promise<{
androidPackageName: string;
title: string;
prefix: string;
iOSAppName: string;
id: string;
}[]>;
}

export default (TurboModuleRegistry.get<Spec>("Email"): ?Spec);

0 comments on commit 9ad4585

Please sign in to comment.