Skip to content

Commit 1de9a35

Browse files
vonovakfacebook-github-bot
authored andcommitted
document how to export consts from a swift native module
Summary: I documented how to export consts from a swift native module. Closes react#15340 Differential Revision: D5556264 Pulled By: hramos fbshipit-source-id: 0374f1c291e3c15424c8e53fef7ab30c60643165
1 parent 6f4025e commit 1de9a35

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/NativeModulesIOS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,10 @@ class CalendarManager: NSObject {
438438
func addEvent(name: String, location: String, date: NSNumber) -> Void {
439439
// Date is ready to use!
440440
}
441+
442+
override func constantsToExport() -> [String: Any]! {
443+
return ["someKey": "someValue"]
444+
}
441445
442446
}
443447
```

0 commit comments

Comments
 (0)