mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Fixed react-native-commications email
This commit is contained in:
+2
-1
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user