mirror of
https://github.com/status-im/react-native.git
synced 2025-02-05 14:13:26 +00:00
commit
14b36b472e
@ -103,7 +103,7 @@ RCT_EXPORT_METHOD(addEvent:(NSString *)name location:(NSString *)location date:(
|
||||
You would then call this from JavaScript by using either:
|
||||
|
||||
```javascript
|
||||
CalendarManager.addEvent('Birthday Party', '4 Privet Drive, Surrey', date.toTime()); // passing date as number of seconds since Unix epoch
|
||||
CalendarManager.addEvent('Birthday Party', '4 Privet Drive, Surrey', date.getTime()); // passing date as number of seconds since Unix epoch
|
||||
```
|
||||
|
||||
or
|
||||
|
Loading…
x
Reference in New Issue
Block a user