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:
Donnie West
2017-06-30 11:32:30 -04:00
committed by Chirag
parent f311c65f4e
commit 850c0bb03e
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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() {
+3
View File
@@ -0,0 +1,3 @@
import { NativeModules } from 'react-native';
export default NativeModules.RNMail;