1.0.1 • Published 7 years ago

RCTMessageUI v1.0.1

Weekly downloads
13
License
ISC
Repository
github
Last release
7 years ago

##RCTMessageUI

React native bridge to MessageUI.framework

Installation

Install via npm : npm install RCTMessageUI

Now you need to link the native library to your current project, you can do that manually by placing the .a lib into your project but we recommend you to use rnpm because it will handle iOS and Android libraries for you and it's pretty straight forward

$npm install rnpm -g

$rnpm link

rnpm link will link all dependencies automatically but you will still need to re-build the native app

###Usage !!! important: it will not work in the iOS Simulator, works only on real device

import {MessageUI} from 'RCTMessageUI';

MessageUI.showMessageComposeWithOptions(
            {
                body                   : 'Ana are mere',
                recipients             : ['11211241', 'b@bb.bbb'],
                disableUserAttachments : true
            }, (error, messageComposeResult) => {
                if (error) {
                    console.error(error);
                } else {
                    alert('mailComposeResult : ' + messageComposeResult);
                }
            });