Merge pull request #1817 from facebook/amasad-docs-patch

Don't encourage the use of internal modules
This commit is contained in:
James Ide 2015-06-30 13:13:13 -07:00
commit 5a206d2fee

View File

@ -50,7 +50,7 @@ RCT_EXPORT_METHOD(addEvent:(NSString *)name location:(NSString *)location)
Now, from your JavaScript file you can call the method like this:
```javascript
var CalendarManager = require('NativeModules').CalendarManager;
var CalendarManager = require('react-native').NativeModules.CalendarManager;
CalendarManager.addEvent('Birthday Party', '4 Privet Drive, Surrey');
```