Merge pull request #22339 from PaitoAnderson/master

Fixed react-native-commications email
This commit is contained in:
Paul van Brenk
2017-12-29 12:07:16 -08:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -1,11 +1,13 @@
// Type definitions for react-native-communications 2.2
// Project: https://github.com/anarchicknight/react-native-communications
// Definitions by: HuHuanming <https://github.com/huhuanming>
// Paito <https://github.com/PaitoAnderson>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
export function phonecall(phoneNumber: string, isPrompt: boolean): void;
export function email(to: string, cc: string, bcc: string, subject: string, body: string): 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;
export function web(address?: string | null): void;
@@ -2,7 +2,8 @@ import { phonecall, email, text, textWithoutEncoding, web } from 'react-native-c
phonecall('123456789', true);
email('a@example.com', 'a@example.com', 'a@example.com', 'subject', 'body');
email();
email(['a@example.com'], null, ['a@example.com'], 'subject', null);
text();
text('123456789');