From ab654b129f13af6ad35830e7fd664f4bb6f3b9d5 Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Wed, 11 Nov 2015 11:06:40 +0800 Subject: [PATCH] fix typo fix: date.toTime() => date.getTime() --- docs/NativeModulesIOS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/NativeModulesIOS.md b/docs/NativeModulesIOS.md index abb704d87ec..f3b8510c433 100644 --- a/docs/NativeModulesIOS.md +++ b/docs/NativeModulesIOS.md @@ -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