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
This commit is contained in:
Xing Zheng 2016-02-24 06:19:28 -08:00 committed by facebook-github-bot-8
parent 9a70ff0263
commit b8850df31b
1 changed files with 1 additions and 1 deletions

View File

@ -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: '...'
})
```