From b8850df31bb4ac99418623281604cab12b9d2a74 Mon Sep 17 00:00:00 2001 From: Xing Zheng Date: Wed, 24 Feb 2016 06:19:28 -0800 Subject: [PATCH] typo with in code, replace date.toTime with date.getTime Summary:There is no toTime method on a Date object, It should be getTime. Closes https://github.com/facebook/react-native/pull/6054 Differential Revision: D2971217 fb-gh-sync-id: 4140be25f0704f251cc0e2f47db8fa83992dc0f0 shipit-source-id: 4140be25f0704f251cc0e2f47db8fa83992dc0f0 --- docs/NativeModulesIOS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/NativeModulesIOS.md b/docs/NativeModulesIOS.md index a066d5e2b..db20eda09 100644 --- a/docs/NativeModulesIOS.md +++ b/docs/NativeModulesIOS.md @@ -133,7 +133,7 @@ and call it from JavaScript: ```javascript CalendarManager.addEvent('Birthday Party', { location: '4 Privet Drive, Surrey', - time: date.toTime(), + time: date.getTime(), description: '...' }) ```