diff --git a/types/react-native-communications/index.d.ts b/types/react-native-communications/index.d.ts index a6c572174d..4f8d28564e 100644 --- a/types/react-native-communications/index.d.ts +++ b/types/react-native-communications/index.d.ts @@ -6,6 +6,7 @@ // TypeScript Version: 2.3 export function phonecall(phoneNumber: string, isPrompt: boolean): void; +export function email(): void; export function email(to: string[] | null, cc: string[]| null, bcc: string[] | null, subject: string | null, body: string | null): void; export function text(phoneNumber?: string | null, body?: string | null): void; export function textWithoutEncoding(phoneNumber?: string | null, body?: string | null): void; diff --git a/types/react-native-communications/react-native-communications-tests.ts b/types/react-native-communications/react-native-communications-tests.ts index edad4ad933..136dadd77f 100644 --- a/types/react-native-communications/react-native-communications-tests.ts +++ b/types/react-native-communications/react-native-communications-tests.ts @@ -2,6 +2,7 @@ import { phonecall, email, text, textWithoutEncoding, web } from 'react-native-c phonecall('123456789', true); +email(); email(['a@example.com'], null, ['a@example.com'], 'subject', null); text();