mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 13:44:04 +00:00
Don't encourage the use of internal modules
This commit is contained in:
parent
97bf9a6b4d
commit
e5ba0f388b
@ -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');
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user