mirror of
https://github.com/status-im/react-native.git
synced 2025-02-10 08:26:23 +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:
|
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