diff --git a/releases/next/docs/native-modules-ios.html b/releases/next/docs/native-modules-ios.html index 973cc785904..d345932dbc0 100644 --- a/releases/next/docs/native-modules-ios.html +++ b/releases/next/docs/native-modules-ios.html @@ -183,6 +183,10 @@ RCTRootView *rootView // Date is ready to use! } + override func constantsToExport() -> [String: Any]! { + return ["someKey": "someValue"] + } + }
NOTE: It is important to use the @objc modifiers to ensure the class and functions are exported properly to the Objective-C runtime.
Then create a private implementation file that will register the required information with the React Native bridge: