UNPKG

879 BSource Map (JSON)View Raw
1{"version":3,"file":"MailComposer.js","sourceRoot":"","sources":["../src/MailComposer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,EAAE,oBAAoB,EAAE,GAAG,aAAa,CAAC;AAkB/C,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,OAAuB;IACxD,OAAO,oBAAoB,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;AACpD,CAAC","sourcesContent":["import { NativeModules } from 'react-native';\n\nconst { ExponentMailComposer } = NativeModules;\n\ntype ComposeOptions = {\n recipients?: string[],\n ccRecipients?: string[],\n bccRecipients?: string[],\n subject?: string,\n body?: string,\n isHtml?: boolean,\n attachments?: string[],\n};\n\ntype ComposeResult = {\n status: ComposeStatus,\n};\n\ntype ComposeStatus = 'sent' | 'saved' | 'cancelled';\n\nexport async function composeAsync(options: ComposeOptions): Promise<ComposeResult> {\n return ExponentMailComposer.composeAsync(options);\n}\n"]}
\No newline at end of file