diff --git a/docs/nativemodulesios.html b/docs/nativemodulesios.html index f06f22b051e..b6f983486ea 100644 --- a/docs/nativemodulesios.html +++ b/docs/nativemodulesios.html @@ -20,7 +20,7 @@ CalendarManager.}
But by using the automatic type conversion feature, we can skip the manual conversion step completely, and just write:
You would then call this from JavaScript by using either:
or
And both values would get converted correctly to the native NSDate. A bad value, like an Array, would generate a helpful "RedBox" error message.
As CalendarManager.addEvent method gets more and more complex, the number of arguments will grow. Some of them might be optional. In this case it's worth considering changing the API a little bit to accept a dictionary of event attributes, like this:
You would then call this from JavaScript by using either:
or
And both values would get converted correctly to the native NSDate. A bad value, like an Array, would generate a helpful "RedBox" error message.
As CalendarManager.addEvent method gets more and more complex, the number of arguments will grow. Some of them might be optional. In this case it's worth considering changing the API a little bit to accept a dictionary of event attributes, like this: