Fixed react-native-commications email

This commit is contained in:
Paito Anderson
2017-12-20 12:54:35 -05:00
parent 38098d4037
commit 7cadcdc866
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1,11 +1,12 @@
// 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(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,7 @@ 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(['a@example.com'], null, ['a@example.com'], 'subject', null);
text();
text('123456789');