mirror of
https://github.com/status-im/react-native-mail.git
synced 2026-08-31 03:31:13 +00:00
Create an index.js file and default export (#66)
With this change, consumers of this library will be able to just `import RNMail from 'react-native-mail'` instead of manually pulling the package from NativeModules. This will provide react-native-mail the same basic interface as other React Native Libraries
This commit is contained in:
@@ -97,7 +97,7 @@ public class MainApplication extends Application implements ReactApplication {
|
||||
|
||||
## Example
|
||||
```javascript
|
||||
var Mailer = require('NativeModules').RNMail;
|
||||
var Mailer = require('react-native-mail');
|
||||
|
||||
var MailExampleApp = React.createClass({
|
||||
handleHelp: function() {
|
||||
|
||||
Reference in New Issue
Block a user