mirror of
https://github.com/status-im/react-native.git
synced 2025-01-12 18:44:25 +00:00
Update NativeModulesIOS.md
Summary: Incorrectly says "seconds" while JS `getTime` returns milliseconds. Documentation fix. N/A Closes https://github.com/facebook/react-native/pull/13719 Differential Revision: D4978003 Pulled By: javache fbshipit-source-id: 6568e90b6e0650078ebc1c8652f71fb94bfe8a59
This commit is contained in:
parent
3a86b4fcb6
commit
cf5c549633
@ -117,7 +117,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.getTime()); // passing date as number of seconds since Unix epoch
|
||||
CalendarManager.addEvent('Birthday Party', '4 Privet Drive, Surrey', date.getTime()); // passing date as number of milliseconds since Unix epoch
|
||||
```
|
||||
|
||||
or
|
||||
|
Loading…
x
Reference in New Issue
Block a user