document how to export consts from a swift native module

Summary:
I documented how to export consts from a swift native module.
Closes https://github.com/facebook/react-native/pull/15340

Differential Revision: D5556264

Pulled By: hramos

fbshipit-source-id: 0374f1c291e3c15424c8e53fef7ab30c60643165
This commit is contained in:
Vojtech Novak 2017-08-03 12:55:52 -07:00 committed by Facebook Github Bot
parent 6f4025e322
commit 1de9a35f14
1 changed files with 4 additions and 0 deletions

View File

@ -438,6 +438,10 @@ class CalendarManager: NSObject {
func addEvent(name: String, location: String, date: NSNumber) -> Void {
// Date is ready to use!
}
override func constantsToExport() -> [String: Any]! {
return ["someKey": "someValue"]
}
}
```