Skip to content

Commit b8850df

Browse files
xing-zhengfacebook-github-bot-8
authored andcommitted
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 #6054 Differential Revision: D2971217 fb-gh-sync-id: 4140be25f0704f251cc0e2f47db8fa83992dc0f0 shipit-source-id: 4140be25f0704f251cc0e2f47db8fa83992dc0f0
1 parent 9a70ff0 commit b8850df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/NativeModulesIOS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ and call it from JavaScript:
133133
```javascript
134134
CalendarManager.addEvent('Birthday Party', {
135135
location: '4 Privet Drive, Surrey',
136-
time: date.toTime(),
136+
time: date.getTime(),
137137
description: '...'
138138
})
139139
```

0 commit comments

Comments
 (0)