mirror of
https://github.com/status-im/react-native.git
synced 2025-02-06 14:43:49 +00:00
Merge pull request #1817 from facebook/amasad-docs-patch
Don't encourage the use of internal modules
This commit is contained in:
commit
5a206d2fee
@ -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:
|
Now, from your JavaScript file you can call the method like this:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var CalendarManager = require('NativeModules').CalendarManager;
|
var CalendarManager = require('react-native').NativeModules.CalendarManager;
|
||||||
CalendarManager.addEvent('Birthday Party', '4 Privet Drive, Surrey');
|
CalendarManager.addEvent('Birthday Party', '4 Privet Drive, Surrey');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user