From cf5c549633850529068591af170c385dcd06cafa Mon Sep 17 00:00:00 2001 From: Liron Yahdav Date: Mon, 1 May 2017 05:59:06 -0700 Subject: [PATCH] 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 --- docs/NativeModulesIOS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/NativeModulesIOS.md b/docs/NativeModulesIOS.md index 579fa56fb..33e121e14 100644 --- a/docs/NativeModulesIOS.md +++ b/docs/NativeModulesIOS.md @@ -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