Skip to content

Commit e5ba0f3

Browse files
committed
Don't encourage the use of internal modules
1 parent 97bf9a6 commit e5ba0f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/NativeModulesIOS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ RCT_EXPORT_METHOD(addEvent:(NSString *)name location:(NSString *)location)
5050
Now, from your JavaScript file you can call the method like this:
5151
5252
```javascript
53-
var CalendarManager = require('NativeModules').CalendarManager;
53+
var CalendarManager = require('react-native').NativeModules.CalendarManager;
5454
CalendarManager.addEvent('Birthday Party', '4 Privet Drive, Surrey');
5555
```
5656

0 commit comments

Comments
 (0)