From 9dc9648504a04f55fa689fdc6cf48623bc46da11 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Sat, 13 Jun 2015 12:05:01 -0700 Subject: [PATCH] [Docs] Fix missing parameter in NativeModules addEvent date example --- docs/NativeModulesIOS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/NativeModulesIOS.md b/docs/NativeModulesIOS.md index 3f6fd4a73..cd6c21f89 100644 --- a/docs/NativeModulesIOS.md +++ b/docs/NativeModulesIOS.md @@ -103,13 +103,13 @@ 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', date.toTime()); // passing date as number of seconds since Unix epoch +CalendarManager.addEvent('Birthday Party', '4 Privet Drive, Surrey', date.toTime()); // passing date as number of seconds since Unix epoch ``` or ```javascript -CalendarManager.addEvent('Birthday Party', date.toISOString()); // passing date as ISO-8601 string +CalendarManager.addEvent('Birthday Party', '4 Privet Drive, Surrey', date.toISOString()); // passing date as ISO-8601 string ``` And both values would get converted correctly to the native `NSDate`. A bad value, like an `Array`, would generate a helpful "RedBox" error message.